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

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

@layer base {
  :root {
    --paper: #f1efe7;
    --paper-deep: #e7e3d8;
    --ink: #171714;
    --muted: #66645d;
    --line: #cbc7bb;
    --signal: #1f7a50;
    --signal-bright: #8ee0b6;
    --night: #11110f;
    --night-soft: #1a1a17;
    --night-ink: #e7e3d8;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Manrope", sans-serif;
  }

  body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }
  ::selection { background: var(--signal); color: #fff; }
  :focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
}

@layer layout {
  .skip-link {
    position: fixed;
    z-index: 100;
    inset: 10px auto auto 10px;
    translate: 0 -150%;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 12px;
  }
  .skip-link:focus { translate: 0; }

  .site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 70px;
    padding: 0 34px;
    border-bottom: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease;
  }
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border-color: var(--line);
    backdrop-filter: blur(14px);
  }
  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    font-family: var(--serif);
    font-size: 25px;
    text-decoration: none;
  }
  .wordmark-mark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--signal);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1;
  }
  .site-nav { display: flex; gap: 30px; }
  .site-nav a, .header-cta {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .site-nav a { color: var(--muted); }
  .site-nav a:hover { color: var(--ink); }
  .header-cta { justify-self: end; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

  .hero {
    position: relative;
    isolation: isolate;
    min-height: 94svh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .hero-copy {
    position: relative;
    z-index: 3;
    width: min(760px, calc(100% - 48px));
    padding: 172px 0 150px 7vw;
  }
  .eyebrow, .section-kicker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--signal);
  }
  .eyebrow span { color: var(--muted); }
  .hero h1 {
    max-width: 710px;
    margin-top: 26px;
    font-family: var(--serif);
    font-size: 88px;
    font-weight: 400;
    line-height: 0.92;
  }
  .hero h1 em { color: var(--signal); font-weight: 400; }
  .hero-lede { max-width: 590px; margin-top: 30px; color: #3f3e39; font-size: 18px; line-height: 1.65; }
  .hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 34px; }
  .hero-meta { margin-top: 15px; color: var(--muted); font-size: 11px; }
  .hero-next {
    position: absolute;
    z-index: 4;
    left: 7vw;
    bottom: 26px;
    display: flex;
    justify-content: space-between;
    width: min(310px, 75vw);
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
  }

  .context-field {
    position: absolute;
    z-index: 1;
    top: 110px;
    right: 0;
    width: 48%;
    height: calc(100% - 110px);
    border-left: 1px solid var(--line);
    background-color: var(--paper-deep);
    background-image: repeating-linear-gradient(0deg, transparent 0 55px, color-mix(in srgb, var(--line) 45%, transparent) 55px 56px);
  }
  .context-note { position: absolute; top: 18%; left: 9%; width: 52%; }
  .context-label { display: block; margin-bottom: 28px; color: var(--muted); font-size: 10px; font-weight: 600; }
  .context-fragment {
    display: block;
    width: 100%;
    margin: 0 0 25px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: color-mix(in srgb, var(--ink) 35%, transparent);
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.22;
    text-align: left;
    cursor: pointer;
    transition: color 220ms ease, border-color 220ms ease;
  }
  .context-fragment.is-active { color: var(--ink); border-color: var(--signal); }
  .context-route { position: absolute; top: 25%; left: 62%; width: 19%; color: var(--signal); }
  .route-line { display: block; width: 100%; height: 1px; background: currentColor; transform-origin: left; }
  .route-status { display: block; margin-top: 7px; font-size: 9px; text-transform: uppercase; }
  .agent-index { position: absolute; top: 18%; right: 5%; display: grid; gap: 52px; }
  .agent-index span { color: var(--muted); font-size: 11px; transition: color 180ms ease, translate 180ms ease; }
  .agent-index span.is-reading { color: var(--signal); translate: -4px 0; }

  .section { padding: 130px 7vw; }
  .problem-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 8vw; margin-top: 45px; }
  .problem h2, .how > h2, .privacy h2, .closing h2, .agents h2, .product-copy h2, .review-copy h2 {
    font-family: var(--serif);
    font-size: 62px;
    font-weight: 400;
    line-height: 1.02;
  }
  .problem-copy { max-width: 520px; color: var(--muted); font-size: 20px; }
  .problem-copy p + p { margin-top: 28px; }
  .problem-copy .problem-answer { color: var(--ink); font-family: var(--serif); font-size: 31px; line-height: 1.2; }
  .repetition { margin-top: 100px; border-top: 1px solid var(--line); }
  .repetition-label { display: block; padding: 14px 0; color: var(--muted); font-size: 10px; text-transform: uppercase; }
  .repetition p { padding: 18px 0; border-top: 1px solid var(--line); color: color-mix(in srgb, var(--muted) 55%, transparent); font-family: var(--serif); font-size: 36px; text-decoration: line-through; text-decoration-thickness: 1px; }
  .repetition-break { display: flex; align-items: center; gap: 16px; padding: 24px 0; color: var(--signal); font-size: 13px; font-weight: 600; }
  .repetition-break span { width: 52px; height: 1px; background: var(--signal); }

  .product-band { padding: 90px 0 0; overflow: hidden; background: var(--night); color: var(--night-ink); }
  .product-copy { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 0 7vw 70px; }
  .product-copy .section-kicker { align-self: start; color: var(--signal-bright); }
  .product-copy h2 { max-width: 800px; text-align: right; }
  .product-visual { position: relative; border-top: 1px solid #33332e; }
  .product-visual img { width: 100%; max-height: 820px; object-fit: cover; object-position: center top; }
  .product-visual figcaption { position: absolute; left: 3vw; bottom: 20px; color: #aaa89f; font-size: 10px; text-transform: uppercase; }

  .review-feature {
    padding: 125px 7vw 105px;
    border-bottom: 1px solid #b8c7ba;
    background: #dfe8df;
  }
  .review-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr); gap: 9vw; align-items: end; }
  .review-copy h2 { max-width: 650px; margin-top: 34px; }
  .review-copy > p:not(.section-kicker) { max-width: 620px; margin-top: 28px; color: #4d5b50; font-size: 18px; }
  .review-copy .text-link { margin-top: 30px; }
  .review-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #aab9ac; }
  .review-steps li { display: grid; grid-template-columns: 46px 150px 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid #aab9ac; }
  .review-steps span { color: var(--signal); font-family: var(--serif); font-size: 20px; }
  .review-steps strong { font-family: var(--serif); font-size: 23px; font-weight: 400; }
  .review-steps p { color: #536056; font-size: 13px; }
  .review-visual { margin-top: 72px; overflow: hidden; border: 1px solid #aab9ac; background: var(--paper); box-shadow: 0 24px 70px color-mix(in srgb, #173922 15%, transparent); }
  .review-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
  .review-visual figcaption { display: flex; justify-content: space-between; gap: 24px; padding: 13px 16px; border-top: 1px solid #aab9ac; color: #536056; font-size: 10px; text-transform: uppercase; }

  .how > h2 { max-width: 900px; margin-top: 40px; }
  .steps { margin: 100px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
  .steps li { display: grid; grid-template-columns: 0.35fr 0.8fr 1fr; gap: 35px; align-items: baseline; padding: 35px 0; border-bottom: 1px solid var(--line); }
  .step-number { color: var(--signal); font-family: var(--serif); font-size: 24px; }
  .steps h3 { font-family: var(--serif); font-size: 36px; font-weight: 400; }
  .steps p { max-width: 560px; color: var(--muted); }

  .agents { background: var(--signal); color: #f4f3ec; }
  .agents-inner { padding: 110px 7vw; }
  .agents .section-kicker { color: #c9f4db; }
  .agents h2 { max-width: 800px; margin-top: 34px; }
  .agent-list { display: flex; flex-wrap: wrap; gap: 0; margin: 80px 0 45px; border-top: 1px solid #ffffff61; }
  .agent-list span { flex: 1 1 180px; padding: 18px 20px 18px 0; border-bottom: 1px solid #ffffff61; font-size: 13px; }

  .privacy { display: grid; grid-template-columns: 1fr 0.8fr; gap: 10vw; background: var(--paper-deep); }
  .privacy h2 { margin-top: 38px; }
  .privacy-details > p { color: var(--muted); font-size: 19px; }
  code { font-family: ui-monospace, monospace; color: var(--ink); }
  .privacy dl { margin-top: 60px; border-top: 1px solid var(--line); }
  .privacy dl div { display: grid; grid-template-columns: 1fr 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .privacy dt { color: var(--muted); }
  .privacy dd { text-align: right; }

  .closing { padding: 145px 7vw 120px; text-align: center; }
  .closing-mark { color: var(--signal); font-family: var(--serif); font-size: 32px; }
  .closing h2 { margin-top: 28px; font-size: 72px; }
  .closing-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; }
  .closing-note { margin-top: 22px; color: var(--muted); font-size: 11px; }

  .site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 28px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
  .site-footer .wordmark { color: var(--ink); }
  .site-footer p { text-align: center; }
  .site-footer > div { display: flex; justify-content: flex-end; gap: 22px; }
}

@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, translate 150ms ease;
  }
  .button:hover { translate: 0 -2px; }
  .button-primary { background: var(--ink); color: var(--paper); }
  .button-primary:hover { background: var(--signal); border-color: var(--signal); }
  .button-secondary { background: transparent; color: var(--ink); }
  .button-secondary:hover { background: var(--paper-deep); }
  .text-link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 600; text-decoration: none; }
}

@layer motion {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 650ms ease, transform 650ms ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero .reveal:nth-child(2) { transition-delay: 70ms; }
  .hero .reveal:nth-child(3) { transition-delay: 140ms; }
  .hero .reveal:nth-child(4) { transition-delay: 210ms; }
  @keyframes route-in { from { scale: 0 1; } to { scale: 1 1; } }
  .context-route.is-routing .route-line { animation: route-in 420ms ease both; }
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; padding-inline: 22px; }
  .hero-copy { padding-left: 6vw; }
  .hero h1 { font-size: 70px; }
  .context-field { width: 40%; opacity: 0.48; }
  .context-note { left: 12%; width: 72%; }
  .agent-index, .context-route { display: none; }
  .problem h2, .how > h2, .privacy h2, .agents h2, .product-copy h2, .review-copy h2 { font-size: 52px; }
  .problem-grid, .privacy { grid-template-columns: 1fr; gap: 50px; }
  .review-intro { grid-template-columns: 1fr; gap: 65px; }
  .steps li { grid-template-columns: 80px 0.8fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 62px; }
  .header-cta { font-size: 11px; }
  .wordmark { font-size: 22px; }
  .context-field { top: 62px; width: 100%; height: 48%; border-left: 0; border-bottom: 1px solid var(--line); opacity: 0.34; }
  .context-note { top: 20%; left: 48%; width: 46%; }
  .context-fragment { font-size: 17px; margin-bottom: 15px; }
  .context-fragment:nth-of-type(n + 3) { display: none; }
  .hero { min-height: 92svh; }
  .hero-copy { width: calc(100% - 36px); padding: 165px 0 125px 20px; }
  .hero h1 { max-width: 360px; margin-top: 22px; font-size: 54px; line-height: 0.96; }
  .hero-lede { margin-top: 24px; font-size: 15px; line-height: 1.6; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .button { width: 100%; }
  .hero-meta { font-size: 9px; }
  .hero-next { left: 20px; bottom: 18px; }
  .section { padding: 90px 20px; }
  .problem h2, .how > h2, .privacy h2, .agents h2, .product-copy h2, .review-copy h2, .closing h2 { font-size: 43px; }
  .problem-copy { font-size: 17px; }
  .problem-copy .problem-answer { font-size: 27px; }
  .repetition { margin-top: 65px; }
  .repetition p { font-size: 27px; }
  .product-copy { display: block; padding: 0 20px 50px; }
  .product-copy h2 { margin-top: 30px; text-align: left; }
  .product-visual img { height: 520px; max-width: none; width: auto; object-position: left top; }
  .product-visual figcaption { left: 20px; }
  .review-feature { padding: 90px 20px 78px; }
  .review-intro { gap: 55px; }
  .review-copy > p:not(.section-kicker) { font-size: 16px; }
  .review-steps li { grid-template-columns: 38px 1fr; gap: 10px; padding: 20px 0; }
  .review-steps p { grid-column: 2; }
  .review-visual { margin-top: 55px; }
  .review-visual img { height: 420px; aspect-ratio: auto; object-position: 67% top; }
  .review-visual figcaption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .how > h2 { margin-top: 30px; }
  .steps { margin-top: 65px; }
  .steps li { grid-template-columns: 45px 1fr; gap: 12px; padding: 28px 0; }
  .steps p { grid-column: 2; }
  .steps h3 { font-size: 30px; }
  .agents-inner { padding: 90px 20px; }
  .agent-list { margin-top: 55px; }
  .privacy { gap: 45px; }
  .closing { padding: 100px 20px 85px; }
  .closing-actions { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr auto; padding: 24px 20px; }
  .site-footer p { display: none; }
  .site-footer > div a:first-child { display: none; }
}

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

.qalam-consent {
  position: fixed;
  z-index: 100;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  max-width: 42rem;
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 26, 23, 0.18);
  border-radius: 8px;
  background: #fffef9;
  box-shadow: 0 12px 36px rgba(28, 26, 23, 0.14);
  color: #25221e;
  font: 0.84rem/1.45 var(--sans);
}
.qalam-consent p { margin: 0 0 0.7rem; }
.qalam-consent div { display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem; }
.qalam-consent a { margin-inline-end: auto; color: inherit; }
.qalam-consent button { padding: 0.48rem 0.7rem; border: 1px solid rgba(28, 26, 23, 0.18); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.qalam-consent button.is-primary { border-color: #1d4b3e; background: #1d4b3e; color: white; }

.privacy-page { width: min(calc(100% - 2rem), 48rem); margin: 0 auto; padding: 9rem 0 6rem; }
.privacy-page h1 { max-width: 12ch; margin: 0 0 1.5rem; font: 400 clamp(2.7rem, 7vw, 5.4rem)/0.98 var(--serif); letter-spacing: 0; }
.privacy-lead { max-width: 38rem; margin-block-end: 4rem; font: 1.25rem/1.55 var(--serif); }
.privacy-page section { padding: 1.5rem 0; border-top: 1px solid rgba(28, 26, 23, 0.15); }
.privacy-page section h2 { margin: 0 0 0.55rem; font-size: 1rem; letter-spacing: 0; }
.privacy-page section p { max-width: 42rem; margin: 0.4rem 0; line-height: 1.7; color: var(--muted); }
.privacy-updated { margin-block-start: 3rem; color: var(--muted); font-size: 0.86rem; }
