@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, textarea { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --ink: #183b31;
    --ink-deep: #102c25;
    --forest: #28624d;
    --forest-bright: #34765e;
    --moss: #9db29a;
    --fern-pale: #dce6d9;
    --paper: #f5f1e7;
    --paper-warm: #eee7d8;
    --white: #fffdf8;
    --coral: #b44d3c;
    --coral-deep: #963c2f;
    --coral-on-dark: #ffc2b0;
    --text-muted: #526d64;
    --text-on-dark: #d6e1da;
    --line: rgba(24, 59, 49, .16);
    --shadow: 0 28px 70px rgba(24, 59, 49, .17);
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
    --content: 1160px;
  }

  body {
    min-width: 320px;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    z-index: 20;
  }

  a { color: inherit; text-underline-offset: .18em; }
  a:hover { color: var(--coral-deep); }
  :focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

  h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: var(--ink-deep);
  }
  h1 { font-size: clamp(3.7rem, 8.4vw, 8.8rem); }
  h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
  h3 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
  p + p { margin-top: 1em; }
}

@layer layout {
  .shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
  .site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 24px;
  }
  .brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
  .brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 24px rgba(24,59,49,.16); }
  .nav { display: flex; align-items: center; gap: 24px; font-size: .91rem; font-weight: 650; }
  .nav a { text-decoration: none; }

  .hero {
    position: relative;
    overflow: clip;
    padding: 64px 0 120px;
  }
  .hero::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -160px;
    top: -90px;
    border-radius: 50%;
    border: 1px solid rgba(40,98,77,.14);
    box-shadow: inset 0 0 0 70px rgba(220,230,217,.23), inset 0 0 0 140px rgba(40,98,77,.04);
    z-index: -1;
  }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr); align-items: center; gap: clamp(46px, 8vw, 110px); }
  .eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: var(--forest); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .eyebrow::before { content: ""; width: 35px; height: 1px; background: currentColor; }
  .hero h1 span { display: block; color: var(--coral); font-style: italic; }
  .hero-copy { max-width: 770px; }
  .hero-copy > p { max-width: 640px; margin-top: 30px; font-size: clamp(1.13rem, 1.7vw, 1.34rem); line-height: 1.58; color: var(--text-muted); }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
  .microcopy { margin-top: 16px; color: var(--text-muted); font-size: .86rem; }

  .phone-stage { position: relative; min-height: 680px; display: grid; place-items: center; isolation: isolate; }
  .phone-stage::before {
    content: "";
    position: absolute;
    width: min(410px, 96%); height: 540px;
    border-radius: 48% 52% 46% 54% / 42% 48% 52% 58%;
    background: radial-gradient(circle at 46% 38%, rgba(255,253,248,.98) 0 27%, rgba(220,230,217,.92) 28% 64%, rgba(157,178,154,.3) 65% 100%);
    box-shadow: inset 0 0 0 1px rgba(40,98,77,.08);
    transform: rotate(-6deg);
    z-index: -1;
  }
  .phone { position: relative; width: min(310px, 72vw); border-radius: 43px; border: 9px solid var(--ink-deep); overflow: hidden; line-height: 0; box-shadow: 0 35px 80px rgba(16,44,37,.2); background: var(--ink-deep); transform: rotate(1.4deg); }
  .phone img { width: 100%; height: auto; object-fit: contain; }
  .bird-mark { position: absolute; right: 8px; bottom: 13%; width: 92px; opacity: .7; transform: rotate(-8deg); z-index: 2; }

  .marquee { overflow: hidden; background: var(--ink-deep); color: var(--paper); border-block: 1px solid rgba(255,255,255,.12); }
  .marquee-track { display: flex; width: max-content; gap: 38px; padding-block: 15px; animation: drift 30s linear infinite; font-family: var(--serif); font-size: 1.07rem; font-style: italic; }
  .marquee-track span::after { content: "✦"; margin-left: 38px; color: var(--coral-on-dark); font-style: normal; }

  .section { padding-block: clamp(90px, 12vw, 160px); }
  .section-intro { display: grid; grid-template-columns: .65fr 1fr; gap: 60px; align-items: end; margin-bottom: 70px; }
  .section-intro p { max-width: 570px; color: var(--text-muted); font-size: 1.08rem; }
  .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .feature { padding: 34px 34px 12px 0; border-right: 1px solid var(--line); }
  .feature + .feature { padding-left: 34px; }
  .feature:last-child { border-right: 0; }
  .feature-number { display: block; margin-bottom: 42px; font-family: var(--serif); color: var(--coral); font-size: 1.35rem; font-style: italic; }
  .feature p { margin-top: 16px; color: var(--text-muted); }

  .showcase { background: var(--forest); color: var(--white); overflow: clip; }
  .showcase h2, .showcase h3 { color: var(--white); }
  .showcase-grid { display: grid; grid-template-columns: .8fr 1.3fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
  .showcase-copy p { margin-top: 27px; max-width: 500px; color: var(--text-on-dark); }
  .showcase .eyebrow { color: var(--coral-on-dark); }
  .profile-list { margin-top: 42px; display: grid; gap: 0; }
  .profile-row { display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding-block: 17px; border-top: 1px solid rgba(255,255,255,.18); }
  .profile-row:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
  .profile-row span { color: var(--coral-on-dark); font-family: var(--serif); font-style: italic; }
  .profile-row strong { display: block; color: var(--white); }
  .profile-row small { color: var(--text-on-dark); }
  .phones { display: flex; align-items: center; justify-content: center; gap: 0; min-height: 680px; padding-block: 20px; }
  .phones .phone { width: min(274px, 52vw); border-width: 8px; box-shadow: 0 34px 75px rgba(5,26,20,.28); }
  .phones .phone:first-child { transform: translateX(24px) rotate(-3.5deg) translateY(26px); z-index: 1; }
  .phones .phone:last-child { transform: translateX(-24px) rotate(3.5deg) translateY(-18px); z-index: 2; }

  .privacy-band { position: relative; text-align: center; }
  .privacy-band::before { content: "“"; display: block; height: 92px; font-family: var(--serif); color: var(--coral); font-size: 9rem; line-height: .8; }
  .privacy-band h2 { max-width: 910px; margin-inline: auto; }
  .privacy-band p { max-width: 670px; margin: 30px auto 0; color: var(--text-muted); }
  .centered-actions { justify-content: center; }

  .final-cta { padding-block: 100px; background: var(--paper-warm); }
  .final-cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
  .final-cta h2 { max-width: 760px; }
  .final-cta-title { margin-top: 22px; }
  .final-cta h2 em { color: var(--coral); font-weight: inherit; }

  .site-footer { padding: 46px 0 30px; background: var(--ink-deep); color: var(--text-on-dark); }
  .footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
  .footer-brand { color: var(--white); }
  .footer-brand p { margin-top: 12px; max-width: 410px; font-size: .9rem; color: var(--text-on-dark); }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; font-size: .88rem; }
  .footer-links a { text-decoration: none; }
  .copyright { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: var(--text-on-dark); }

  .document-hero { padding: 70px 0 50px; border-bottom: 1px solid var(--line); }
  .document-hero h1 { max-width: 950px; font-size: clamp(3.1rem, 7vw, 6.5rem); }
  .document-hero p { max-width: 700px; margin-top: 22px; color: var(--text-muted); }
  .document-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 70px; padding-block: 70px 120px; }
  .document-nav { position: sticky; top: 28px; align-self: start; display: grid; gap: 8px; font-size: .86rem; }
  .document-nav a { padding: 5px 0; text-decoration: none; color: var(--text-muted); }
  .document { min-width: 0; }
  .document section + section { margin-top: 54px; }
  .document h2 { font-size: clamp(2rem, 4vw, 3rem); }
  .document h3 { margin-top: 30px; font-size: 1.45rem; }
  .document h2 + p, .document h3 + p, .document h2 + ul, .document h3 + ul { margin-top: 16px; }
  .document ul { padding-left: 1.25em; }
  .document li + li { margin-top: 8px; }
  .document .note { margin-top: 25px; padding: 22px 24px; border-left: 3px solid var(--coral); background: var(--paper-warm); }
  .document .meta { margin-top: 24px; color: var(--text-muted); font-size: .88rem; }
  .credit-group + .credit-group { margin-top: 50px; }
  .credit-item { padding: 23px 0; border-bottom: 1px solid var(--line); }
  .credit-item:first-of-type { border-top: 1px solid var(--line); }
  .credit-item h3 { margin: 0; font-family: var(--sans); font-size: 1.03rem; font-weight: 750; letter-spacing: -.01em; }
  .credit-meta { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 8px; color: var(--text-muted); font-size: .85rem; }
  .credit-item details { margin-top: 10px; font-size: .84rem; color: var(--text-muted); }
  .credit-links { margin-top: 10px; }
  .credit-item summary { cursor: pointer; color: var(--forest); font-weight: 650; }
  .faq + .faq { border-top: 1px solid var(--line); }
  .faq { padding: 26px 0; }
  .faq h3 { margin: 0; font-family: var(--sans); font-size: 1.08rem; font-weight: 760; letter-spacing: -.015em; }
  .faq p { margin-top: 9px; color: var(--text-muted); }
}

@layer components {
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 750; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
  .button:hover { transform: translateY(-2px); color: inherit; }
  .button-primary { background: var(--coral); color: var(--white); box-shadow: 0 13px 30px rgba(191,93,73,.22); }
  .button-primary:hover { background: var(--coral-deep); color: var(--white); }
  .button-secondary { border-color: var(--line); background: rgba(255,253,248,.48); }
  .button-secondary:hover { background: var(--white); }
  .button-dark { background: var(--ink-deep); color: var(--white); }
  .button-dark:hover { color: var(--white); background: var(--forest); }
  .pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .77rem; font-weight: 700; }
  .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(220,116,92,.13); }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .skip-link { position: fixed; left: 12px; top: 12px; transform: translateY(-160%); z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 8px; }
  .skip-link:focus { transform: none; }
}

@keyframes drift { to { transform: translateX(-50%); } }

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

@media (max-width: 840px) {
  .nav a[href^="#"] { display: none; }
  .hero { padding-top: 38px; }
  .hero-grid, .showcase-grid, .section-intro { grid-template-columns: 1fr; }
  .hero-grid { gap: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions { justify-content: center; }
  .hero-copy > p { margin-inline: auto; }
  .phone-stage { min-height: 590px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-number { margin-bottom: 18px; }
  .phones { min-height: 620px; }
  .final-cta-grid { align-items: flex-start; flex-direction: column; }
  .document-layout { grid-template-columns: 1fr; gap: 40px; }
  .document-nav { position: static; display: flex; flex-wrap: wrap; gap: 5px 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 420px) {
  .nav .button { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--content)); }
  .site-header { padding-block: 17px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .nav { gap: 10px; }
  .nav .button { min-height: 42px; padding: 9px 15px; font-size: .8rem; }
  .hero { padding: 35px 0 80px; }
  .hero::after { width: 430px; height: 430px; right: -240px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); overflow-wrap: anywhere; }
  .hero h1 span { font-size: .88em; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .phone-stage { min-height: 590px; }
  .phone { width: 255px; border-width: 7px; border-radius: 37px; }
  .section { padding-block: 86px; }
  .section-intro { gap: 25px; margin-bottom: 45px; }
  .phones { min-height: 500px; transform: scale(.84); margin-inline: -30px; }
  .showcase-grid { gap: 15px; }
  .privacy-band::before { height: 65px; font-size: 7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .document-hero { padding: 48px 0 34px; }
  .document-layout { padding: 45px 0 80px; }
}
