:root {
  --bg: #f5f4ef;
  --surface: #fff;
  --surface-subtle: #efeee8;
  --text: #20221f;
  --text-secondary: #686c64;
  --text-muted: #92958d;
  --border: #deded6;
  --border-strong: #cacbc1;
  --brand: #39735a;
  --brand-dark: #285742;
  --brand-light: #dce9e1;
  --warning: #9a5c2d;
  --danger: #a84b45;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 12px; color: #fff; background: var(--brand-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(57,115,90,.38); outline-offset: 3px; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(245,244,239,.96); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-size: 22px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.brand img { border: 1px solid var(--border); border-radius: 7px; }
.site-navigation { display: flex; justify-content: center; gap: 28px; }
.site-navigation a { color: var(--text-secondary); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-navigation a:hover { color: var(--brand); }
.header-login { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; color: var(--brand-dark); border: 1px solid var(--border-strong); border-radius: 5px; font-size: 14px; font-weight: 700; text-decoration: none; }
.header-login:hover { background: var(--surface); }
.menu-button { display: none; }

.hero { padding: clamp(68px,9vw,116px) 0 76px; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); align-items: center; gap: clamp(48px,7vw,96px); }
.section-label { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 720; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(48px,6.4vw,76px); font-weight: 670; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.hero-intro { max-width: 650px; margin: 25px 0 0; color: var(--text-secondary); font-size: clamp(18px,2vw,21px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 31px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 6px; font-size: 15px; font-weight: 720; text-decoration: none; }
.button-primary { color: #fff; background: var(--brand); border: 1px solid var(--brand); }
.button-primary:hover { background: var(--brand-dark); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px 23px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 13px; }
.hero-points li::before { width: 6px; height: 6px; content: ''; background: var(--brand); border-radius: 50%; }

.home-brief { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: 18px 20px 0 var(--brand-light); }
.home-brief::before { position: absolute; z-index: -1; inset: -19px auto auto -22px; width: 94px; height: 94px; content: ''; border-top: 2px solid var(--brand); border-left: 2px solid var(--brand); }
.brief-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-strong); }
.brief-heading span, .brief-heading strong { display: block; }
.brief-heading div > span { color: var(--text-muted); font-size: 12px; }
.brief-heading div > strong { margin-top: 2px; font-size: 19px; }
.brief-status { padding: 4px 7px; color: var(--warning); background: #f4e9de; border-radius: 4px; font-size: 11px; font-weight: 700; }
.brief-summary { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 15px 0; border-bottom: 1px solid var(--border-strong); }
.brief-summary div { padding-inline: 13px; border-left: 1px solid var(--border); }
.brief-summary div:first-child { padding-left: 0; border-left: 0; }
.brief-summary dt { color: var(--text-muted); font-size: 10px; }
.brief-summary dd { margin: 2px 0 0; font-size: 13px; font-weight: 720; }
.brief-section { padding-top: 17px; }
.brief-section h2 { margin: 0 0 6px; font-size: 14px; }
.brief-row { min-height: 53px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; border-top: 1px solid var(--border); font-size: 12px; }
.brief-row > span:nth-child(2) strong, .brief-row small { display: block; }
.brief-row small { margin-top: 1px; color: var(--text-muted); }
.brief-row > :last-child { color: var(--text-secondary); font-size: 11px; }
.check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 3px; }
.check.done { color: #fff; background: var(--brand); border-color: var(--brand); font-size: 11px; }
.systems { display: grid; grid-template-columns: repeat(3,1fr); column-gap: 16px; }
.systems h2 { grid-column: 1/-1; }
.systems > div { display: grid; gap: 1px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 11px; }
.systems > div span { color: var(--text-muted); }

.trust-strip { border-block: 1px solid var(--border-strong); }
.trust-strip p { margin: 0; padding: 18px 0; color: var(--text-secondary); text-align: center; }
.trust-strip strong { color: var(--text); }
.section { padding: clamp(76px,9vw,116px) 0; }
.section-heading { max-width: 680px; }
.section-heading h2, .access-copy h2, .closing h2 { margin: 0; font-size: clamp(34px,4.5vw,52px); font-weight: 650; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.section-heading > p:last-child, .access-copy > p { margin: 19px 0 0; color: var(--text-secondary); font-size: 17px; }

.feature-list { margin-top: 52px; border-top: 1px solid var(--border-strong); }
.feature-list article { min-height: 145px; display: grid; grid-template-columns: 55px minmax(250px,.8fr) 1fr; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-strong); }
.feature-number { color: var(--brand); font: 650 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-list h3 { margin: 0; font-size: 21px; font-weight: 680; }
.feature-list article > div p { max-width: 520px; margin: 5px 0 0; color: var(--text-secondary); }
.feature-list ul { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px 18px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 5px 0; color: var(--text-secondary); border-bottom: 1px solid var(--border); font-size: 13px; }

.rhythm { background: var(--surface-subtle); border-block: 1px solid var(--border); }
.rhythm-layout { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(450px,1.15fr); gap: clamp(60px,9vw,120px); align-items: start; }
.sticky-heading { position: sticky; top: 105px; }
.rhythm-steps { margin: 0; padding: 0; border-top: 1px solid var(--border-strong); list-style: none; }
.rhythm-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--border-strong); }
.rhythm-steps li > span { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-size: 12px; font-weight: 700; }
.rhythm-steps h3 { margin: 1px 0 5px; font-size: 19px; }
.rhythm-steps p { margin: 0; color: var(--text-secondary); }

.access-layout { display: grid; grid-template-columns: minmax(330px,.85fr) minmax(500px,1.15fr); align-items: center; gap: clamp(60px,9vw,120px); }
.access-copy .text-link { margin-top: 25px; }
.access-table { border-top: 1px solid var(--border-strong); }
.access-row { min-height: 59px; display: grid; grid-template-columns: 1.25fr 1fr .9fr; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
.access-row span { color: var(--text-secondary); }
.access-header { min-height: 41px; color: var(--text-muted); font-size: 11px; font-weight: 700; }

.custom { background: var(--brand-dark); }
.custom-layout { display: grid; grid-template-columns: minmax(500px,1.1fr) minmax(340px,.9fr); align-items: center; gap: clamp(55px,8vw,100px); }
.custom .section-label { color: #bcd0c4; }
.custom .section-heading h2 { color: #fff; }
.custom .section-heading > p:last-child { color: #cedbd3; }
.custom-example { color: var(--text); background: var(--surface); border: 1px solid #122f22; border-radius: 6px; }
.custom-toolbar { min-height: 59px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--border-strong); }
.custom-toolbar span { color: var(--text-muted); font-size: 11px; }
.custom-row { min-height: 55px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 12px; padding: 8px 17px; border-bottom: 1px solid var(--border); font-size: 13px; }
.custom-row:last-child { border-bottom: 0; }
.custom-row span, .custom-row time { color: var(--text-secondary); }
.custom-head { min-height: 39px; color: var(--text-muted); background: var(--surface-subtle); font-size: 10px; font-weight: 700; }

.faq-layout { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(500px,1.25fr); align-items: start; gap: clamp(60px,9vw,120px); }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-list details { border-bottom: 1px solid var(--border-strong); }
.faq-list summary { position: relative; padding: 21px 42px 21px 0; font-weight: 680; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 20px; right: 3px; content: '+'; color: var(--brand); font-size: 21px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 670px; margin: -5px 42px 21px 0; color: var(--text-secondary); }

.closing { padding: 60px 0; color: #fff; background: var(--brand); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing .section-label { color: #cfe0d6; }
.closing h2 { max-width: 780px; font-size: clamp(31px,4vw,46px); }
.button-light { flex: 0 0 auto; color: var(--brand-dark); background: #fff; border: 1px solid #fff; }
.button-light:hover { background: var(--brand-light); }

.site-footer { color: #d5ded8; background: #1d3228; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .5fr .5fr; gap: 60px; padding-block: 55px 44px; }
.footer-brand { color: #fff; }
.footer-grid > div > p { max-width: 460px; margin: 17px 0 0; color: #aebdb4; font-size: 14px; }
.footer-grid nav { display: grid; align-content: start; gap: 8px; }
.footer-grid nav strong { margin-bottom: 5px; color: #fff; font-size: 13px; }
.footer-grid nav a { width: max-content; color: #aebdb4; font-size: 13px; text-decoration: none; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 17px; color: #8fa098; border-top: 1px solid #3a4d43; font-size: 12px; }
.not-found { min-height: 100vh; display: grid; place-items: start; align-content: center; gap: 14px; width: min(650px,calc(100% - 30px)); margin: auto; }
.not-found .brand { margin-bottom: 35px; }
.not-found .section-label { margin: 0; }
.not-found h1 { max-width: 600px; margin: 0; font-size: clamp(38px,7vw,62px); line-height: 1; letter-spacing: -.05em; }
.not-found > p:not(.section-label) { margin: 0 0 8px; color: var(--text-secondary); }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .home-brief { width: min(700px,100%); }
  .feature-list article { grid-template-columns: 45px 1fr; }
  .feature-list ul { grid-column: 2; }
  .rhythm-layout, .access-layout, .custom-layout, .faq-layout { grid-template-columns: 1fr; gap: 46px; }
  .sticky-heading { position: static; }
  .custom-example { order: 2; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 30px,var(--shell)); }
  .header-inner { min-height: 62px; grid-template-columns: auto 1fr auto; gap: 14px; }
  .brand { font-size: 20px; }
  .brand img { width: 34px; height: 34px; }
  .menu-button { width: 40px; height: 40px; display: grid; align-content: center; justify-content: center; gap: 4px; margin-left: auto; padding: 0; background: transparent; border: 0; cursor: pointer; }
  .menu-button > span:not(.sr-only) { width: 21px; height: 2px; display: block; background: var(--text); }
  .site-navigation { position: absolute; inset: 62px 0 auto; display: none; flex-direction: column; gap: 0; padding: 8px 15px 14px; background: var(--bg); border-bottom: 1px solid var(--border-strong); }
  .site-navigation.is-open { display: flex; }
  .site-navigation a { min-height: 43px; display: flex; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--border); }
  .header-login { min-height: 36px; padding-inline: 10px; }
  .hero { padding: 61px 0 62px; }
  .hero h1 { font-size: clamp(43px,13vw,61px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-brief { padding: 17px; box-shadow: 9px 10px 0 var(--brand-light); }
  .home-brief::before { display: none; }
  .brief-summary { grid-template-columns: repeat(2,1fr); row-gap: 13px; }
  .brief-summary div:nth-child(3) { padding-left: 0; border-left: 0; }
  .systems { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .feature-list { margin-top: 38px; }
  .feature-list article { grid-template-columns: 34px 1fr; gap: 12px; }
  .feature-list ul { grid-template-columns: 1fr; }
  .access-row { grid-template-columns: 1.2fr 1fr; }
  .access-row > :last-child { display: none; }
  .custom-row { grid-template-columns: 1fr 1fr; }
  .custom-row > :last-child { display: none; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 24px; }
  .footer-grid > div { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
