.how-it-works {
  --routine-ink: #15365d;
  --routine-muted: #2f485b;
  --routine-green: #13765e;
  color: var(--routine-ink);
  background: #fafaf7;
  padding-top: 74px;
  scroll-margin-top: 0;
}
.routine-container { width: calc(100% - 112px); max-width: 1176px; margin-inline: auto; }
.how-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; margin-bottom: 38px; }
.how-intro h2 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.18; letter-spacing: -.045em; margin: 0; font-weight: 700; }
.how-intro h2 span { color: var(--routine-green); }
.how-intro p { max-width: 570px; margin: 0; font-size: 16px; line-height: 1.85; color: var(--routine-muted); font-weight: 500; }
.how-intro p strong { color: var(--routine-ink); font-weight: 700; }
.arrival-feature { background: #15365d; color: #fff; border-radius: 18px; padding: 49px 52px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 62px; align-items: center; }
.routine-eyebrow { margin: 0 0 19px; font-size: 12px; line-height: 1.5; letter-spacing: .095em; text-transform: uppercase; font-weight: 800; color: var(--routine-green); }
.arrival-feature .routine-eyebrow { color: #a8d9c9; }
.arrival-copy h3 { max-width: 490px; margin: 0 0 21px; font-size: clamp(29px, 3.1vw, 42px); line-height: 1.22; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.arrival-copy > p:not(.routine-eyebrow) { font-size: 15px; line-height: 1.8; margin: 0; max-width: 445px; color: #edf3f7; font-weight: 500; }
.notice-types { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 28px; margin: 29px 0 0; }
.notice-types > div { border-top: 1px solid #ffffff2b; padding-top: 11px; }
.notice-types dt { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.notice-types dd { font-size: 12px; line-height: 1.6; margin: 0; color: #dde7ee; font-weight: 500; }
.arrival-demo { margin: 0; width: 100%; max-width: 357px; justify-self: end; }
.arrival-chat { color: #1d3944; background: #e9eee5; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 26px #061f3620; }
.arrival-chat-header { display: flex; gap: 12px; align-items: center; background: #fff; padding: 18px 21px; border-bottom: 1px solid #15365d0c; }
.arrival-chat-logo { width: 54px; height: 32px; flex: 0 0 54px; }
.arrival-chat-header > div { border-left: 1px solid #15365d19; padding-left: 13px; }
.arrival-chat-header strong { display: block; font-size: 13px; font-weight: 700; }
.arrival-chat-header span { display: block; color: #3b5c53; font-size: 11px; margin-top: 3px; }
.arrival-chat-body { padding: 19px 22px 30px; }
.arrival-chat-day { display: block; width: fit-content; margin: 0 auto 20px; font-size: 10px; color: #5f756b; background: #ffffff8f; padding: 5px 11px; border-radius: 5px; }
.arrival-message { background: white; border-radius: 0 10px 10px 10px; padding: 16px 17px 11px; position: relative; }
.arrival-message::before { content: ''; position: absolute; top: 0; left: -6px; width: 7px; height: 9px; background: white; clip-path: polygon(0 0,100% 0,100% 100%); }
.arrival-message p { margin: 0; font-size: 13px; line-height: 1.85; }
.arrival-message p + p { margin-top: 8px; }
.arrival-message strong { color: #15365d; font-weight: 700; }
.arrival-message-time { display: block; text-align: right; font-size: 9px; margin-top: 10px; color: #71867f; }
.arrival-message-time > span { margin-left: 5px; color: #347e93; letter-spacing: -2px; }
.arrival-demo figcaption { font-size: 11px; color: #d2e0e9; line-height: 1.6; margin-top: 13px; text-align: center; font-weight: 500; }
.permissions-feature { display: grid; grid-template-columns: .93fr 1.07fr; grid-template-areas: 'visual heading' 'visual details'; gap: 28px 72px; padding-block: 91px 86px; align-items: start; }
.permissions-intro { grid-area: heading; }
.permissions-intro h3 { font-size: clamp(30px, 3vw, 39px); line-height: 1.24; font-weight: 700; letter-spacing: -.045em; margin: 0 0 17px; max-width: 525px; text-wrap: balance; }
.permissions-intro > p:last-child { color: var(--routine-muted); font-size: 15px; line-height: 1.85; max-width: 485px; margin: 0; font-weight: 500; }
.permissions-visual { grid-area: visual; align-self: center; margin: 0; min-width: 0; }
.permissions-image { display: block; width: 100%; max-width: 470px; height: auto; margin: 0 auto; }
.permissions-visual figcaption { max-width: 355px; margin: 22px auto 0; padding: 15px 0; border-top: 1px solid #15365d29; border-bottom: 1px solid #15365d29; display: flex; align-items: center; gap: 13px; }
.approval-mark { width: 32px; height: 32px; background: #e6eee7; color: var(--routine-green); display: grid; place-items: center; border-radius: 50%; flex: 0 0 32px; }
.approval-mark svg { width: 17px; height: 17px; }
.permissions-visual figcaption strong { display: block; font-size: 12px; font-weight: 700; }
.permissions-visual figcaption p { font-size: 12px; line-height: 1.6; margin: 3px 0 0; color: var(--routine-muted); font-weight: 500; }
.permissions-details { grid-area: details; display: grid; gap: 25px; }
.permission-detail { border-top: 1px solid #15365d20; padding-top: 21px; }
.permission-detail h4 { margin: 0 0 9px; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.permission-detail p { color: var(--routine-muted); font-size: 14px; line-height: 1.85; margin: 0; font-weight: 500; }
.permission-situation { display: block; color: #0f644f; font-size: 12px; line-height: 1.7; margin-top: 10px; font-weight: 600; }
.attendance-feature { background: #edf2f3; border-block: 1px solid #15365d0a; padding-block: 68px 62px; }
.attendance-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; margin-bottom: 33px; }
.attendance-heading h3 { max-width: 440px; margin: 0; font-size: clamp(29px, 2.9vw, 38px); font-weight: 700; line-height: 1.24; letter-spacing: -.045em; text-wrap: balance; }
.attendance-heading > p { color: var(--routine-muted); font-size: 15px; line-height: 1.85; max-width: 460px; margin: 0 0 3px; font-weight: 500; }
.attendance-report { margin: 0; border: 1px solid #15365d17; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px #15365d05; overflow: hidden; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 29px; }
.report-overline { display: block; color: #465c68; font-size: 11px; margin-bottom: 6px; font-weight: 500; }
.report-toolbar h4 { font-size: 19px; letter-spacing: -.035em; line-height: 1.3; margin: 0; font-weight: 700; }
.report-toolbar h4 > span { font-size: 12px; color: #3d5361; letter-spacing: 0; font-weight: 500; margin-left: 12px; white-space: nowrap; }
.download-example { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; line-height: 1.5; font-weight: 700; color: var(--routine-green); border: 1px solid #13765e40; padding: 10px 13px; border-radius: 5px; transition: background .18s; white-space: nowrap; }
.download-example svg { width: 16px; height: 16px; }
.download-example:hover { background: #eef5ef; }
.report-table { width: calc(100% - 58px); table-layout: fixed; border-collapse: collapse; text-align: left; margin: 0 29px; }
.report-table th { font-size: 12px; font-weight: 600; color: #3d5361; background: #f4f6f6; padding: 13px 15px; line-height: 1.5; }
.report-table td { font-size: 13px; color: #2f475b; padding: 16px 15px; line-height: 1.5; border-bottom: 1px solid #e7eced; font-variant-numeric: tabular-nums; }
.report-table th:first-child { width: 36%; border-radius: 5px 0 0 5px; }
.report-table th:nth-child(2), .report-table th:nth-child(3) { width: 19%; }
.report-table th:last-child { width: 26%; border-radius: 0 5px 5px 0; }
.report-table td:first-child { font-weight: 600; color: #15365d; }
.report-table tr:last-child td { border-bottom: 0; }
.report-status { display: inline-flex; align-items: center; gap: 7px; color: var(--routine-green); font-size: 11px; }
.report-status::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.report-status.is-late { color: #83631e; }
.report-status.is-absent { color: #92605c; }
.report-note { color: #465c68; font-size: 11px; line-height: 1.7; margin: 0; padding: 15px 29px 20px; border-top: 1px solid #e7eced; font-weight: 500; }
.announcements-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; padding-block: 83px 48px; }
.announcements-copy h3 { font-size: clamp(30px, 2.9vw, 39px); font-weight: 700; line-height: 1.28; letter-spacing: -.045em; margin: 0 0 21px; max-width: 480px; text-wrap: balance; }
.announcements-copy > p:not(.routine-eyebrow) { font-size: 15px; line-height: 1.85; color: var(--routine-muted); max-width: 440px; margin: 0; font-weight: 500; }
.announcements-copy > p + p:not(.routine-eyebrow) { margin-top: 14px; }
.announcement-demo { margin: 0; background: #e8eee7; padding: 30px 32px 20px; border-radius: 15px; }
.school-note { background: #fbf8ee; border-top: 4px solid #4c8974; box-shadow: 0 5px 14px #15365d08; padding: 25px 27px; color: #15365d; }
.school-note-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid #15365d20; }
.school-note-header > span { font-size: 10px; font-weight: 600; line-height: 1.5; }
.school-note-header svg { width: 26px; height: 26px; color: var(--routine-green); }
.school-note-date { display: block; font-size: 11px; color: #485a52; margin-top: 22px; font-weight: 500; }
.school-note h4 { font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -.035em; margin: 10px 0 13px; }
.school-note > p { font-size: 14px; line-height: 1.85; color: #334b40; margin: 0; font-weight: 500; }
.school-note-signature { display: block; margin-top: 27px; padding-top: 15px; border-top: 1px solid #15365d20; font-size: 10px; color: #485a52; font-weight: 500; }
.announcement-demo figcaption { font-size: 11px; text-align: center; line-height: 1.6; color: #3e594b; margin-top: 14px; font-weight: 500; }
.manifesto { background-color: #f5f5ef; border-top: 1px solid #15365d0b; }
.manifesto-halo { background: #e5ece7; }
.manifesto-halo::after { display: none; }
@media (max-width: 1180px) {
  .routine-container { width: calc(100% - 72px); }
  .how-intro { gap: 45px; }
  .arrival-feature { padding: 39px 35px; gap: 35px; grid-template-columns: 1.05fr .95fr; }
  .arrival-copy h3 { font-size: 34px; font-weight: 700; }
  .permissions-feature { gap: 25px 42px; padding-block: 72px; }
  .permissions-intro h3 { font-size: 34px; font-weight: 700; }
  .attendance-heading { gap: 48px; }
  .announcements-feature { gap: 58px; padding-block: 72px 42px; }
  .announcement-demo { padding: 25px 24px 18px; }
  .school-note { padding: 23px; }
}
@media (max-width: 850px) {
  .how-it-works { padding-top: 49px; }
  .routine-container { width: calc(100% - 44px); max-width: 630px; }
  .how-intro { grid-template-columns: 1fr; gap: 21px; }
  .how-intro h2 { font-size: 36px; }
  .how-intro p { max-width: 570px; font-size: 15px; font-weight: 500; }
  .arrival-feature { grid-template-columns: 1fr; padding: 36px; gap: 34px; }
  .arrival-copy h3 { max-width: 475px; font-size: 36px; font-weight: 700; }
  .arrival-copy > p:not(.routine-eyebrow) { max-width: 500px; font-weight: 500; color: #edf3f7; }
  .notice-types { gap: 17px 24px; }
  .arrival-demo { justify-self: center; max-width: 385px; }
  .arrival-chat-body { padding-bottom: 25px; }
  .permissions-feature { grid-template-columns: 1fr; grid-template-areas: 'heading' 'visual' 'details'; gap: 30px; padding-block: 58px; }
  .permissions-intro h3 { max-width: 520px; font-size: 35px; font-weight: 700; }
  .permissions-intro > p:last-child { max-width: 570px; font-weight: 500; }
  .permissions-visual { width: min(100%, 420px); justify-self: center; }
  .permissions-image { max-height: 340px; object-fit: contain; }
  .permissions-visual figcaption { margin-top: 13px; }
  .permissions-details { gap: 23px; }
  .permission-detail p { font-size: 15px; font-weight: 500; }
  .attendance-feature { padding-block: 49px 43px; }
  .attendance-heading { grid-template-columns: 1fr; gap: 19px; margin-bottom: 26px; }
  .attendance-heading h3 { max-width: 475px; font-size: 35px; font-weight: 700; }
  .attendance-heading > p { max-width: 570px; font-weight: 500; }
  .announcements-feature { grid-template-columns: 1fr; gap: 29px; padding-block: 56px 36px; }
  .announcements-copy h3 { max-width: 530px; font-size: 35px; font-weight: 700; }
  .announcements-copy > p:not(.routine-eyebrow) { max-width: 570px; font-weight: 500; }
  .announcement-demo { width: min(100%, 450px); justify-self: center; padding: 28px 30px 19px; }
}
@media (max-width: 480px) {
  .how-it-works { padding-top: 40px; }
  .routine-container { width: calc(100% - 40px); }
  .how-intro { gap: 17px; }
  .how-intro h2 { font-size: 32px; }
  .how-intro p { font-size: 14px; line-height: 1.85; font-weight: 500; }
  .arrival-feature { width: calc(100% - 24px); padding: 30px 23px 25px; border-radius: 13px; gap: 27px; }
  .routine-eyebrow { font-size: 11px; margin-bottom: 15px; font-weight: 800; }
  .arrival-copy h3 { font-size: 30px; font-weight: 700; }
  .arrival-copy > p:not(.routine-eyebrow) { font-size: 14px; font-weight: 500; color: #edf3f7; }
  .notice-types { margin-top: 23px; gap: 17px 20px; }
  .notice-types dt { font-size: 13px; }
  .notice-types dd { font-size: 11px; font-weight: 500; color: #dde7ee; }
  .arrival-chat-header { padding: 15px 17px; }
  .arrival-chat-body { padding: 16px 17px 22px; }
  .arrival-message { padding: 14px 14px 10px; }
  .arrival-message p { font-size: 12px; }
  .arrival-demo figcaption { font-size: 10px; font-weight: 500; color: #d2e0e9; }
  .permissions-feature { padding-block: 44px 45px; gap: 24px; }
  .permissions-intro h3 { font-size: 30px; font-weight: 700; }
  .permissions-intro > p:last-child { font-size: 14px; font-weight: 500; }
  .permissions-image { max-height: 290px; }
  .permissions-visual figcaption { padding-block: 13px; }
  .permissions-visual figcaption strong { font-size: 11px; }
  .permissions-visual figcaption p { font-size: 11px; font-weight: 500; }
  .permission-detail { padding-top: 18px; }
  .permission-detail h4 { font-size: 17px; }
  .permission-detail p { font-size: 14px; font-weight: 500; }
  .permission-situation { font-size: 11px; font-weight: 600; color: #0f644f; }
  .attendance-feature { padding-block: 42px 35px; }
  .attendance-heading h3 { font-size: 30px; font-weight: 700; }
  .attendance-heading > p { font-size: 14px; font-weight: 500; }
  .report-toolbar { padding: 20px 17px 18px; flex-wrap: wrap; gap: 14px; }
  .report-overline { font-size: 10px; font-weight: 500; color: #465c68; }
  .report-toolbar h4 { font-size: 18px; }
  .report-toolbar h4 > span { font-size: 10px; margin-left: 8px; font-weight: 500; color: #3d5361; }
  .download-example { font-size: 10px; padding: 8px 10px; }
  .download-example svg { width: 14px; height: 14px; }
  .report-table { width: calc(100% - 24px); margin-inline: 12px; }
  .report-table th { padding: 10px 6px; font-size: 10px; font-weight: 600; color: #3d5361; }
  .report-table td { padding: 14px 6px; font-size: 11px; color: #2f475b; }
  .report-table th:first-child { width: 32%; }
  .report-table th:nth-child(2), .report-table th:nth-child(3) { width: 19%; }
  .report-table th:last-child { width: 30%; }
  .report-status { gap: 5px; font-size: 9px; }
  .report-status::before { width: 4px; height: 4px; flex-basis: 4px; }
  .report-note { padding: 13px 17px 16px; font-size: 10px; font-weight: 500; color: #465c68; }
  .announcements-feature { padding-block: 44px 28px; gap: 25px; }
  .announcements-copy h3 { font-size: 30px; font-weight: 700; }
  .announcements-copy > p:not(.routine-eyebrow) { font-size: 14px; font-weight: 500; }
  .announcement-demo { padding: 22px 20px 16px; border-radius: 12px; }
  .school-note { padding: 21px 20px; }
  .school-note h4 { font-size: 23px; }
  .school-note > p { font-size: 13px; font-weight: 500; color: #334b40; }
  .school-note-signature { margin-top: 23px; font-weight: 500; color: #485a52; }
  .announcement-demo figcaption { font-size: 10px; font-weight: 500; color: #3e594b; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-example { transition: none; }
}
