/* Homepage sections. Shared tokens and components live in site.css. */

/* Hero */
.hero { margin-top: -82px; padding-top: 82px; background: var(--paper-warm); background-image: linear-gradient(#20202205 1px, transparent 1px), linear-gradient(90deg, #20202205 1px, transparent 1px); background-size: 48px 48px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 48px 5%; padding: clamp(48px, 6vw, 88px) var(--gutter) 56px; }
.hero h1 { font-size: var(--type-hero); letter-spacing: -0.05em; line-height: 1; }
.hero h1 .eyebrow { display: flex; margin-bottom: 28px; font-size: 14px; letter-spacing: 0.1em; line-height: 1.4; }
.hero-line { display: block; animation: rise 0.8s var(--ease) both; }
.hero-line + .hero-line { animation-delay: 0.08s; }
.hero-description { max-width: 500px; margin: 30px 0 34px; font-size: var(--type-lead); line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: var(--type-small); font-weight: 600; color: var(--ink-soft); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.hero-scene { min-width: 0; }
.app-stage { position: relative; display: grid; place-items: center; padding: 44px 0; border-radius: 40px; background: radial-gradient(120% 90% at 70% 20%, #fff 0, #fff3e8 55%, #fde2cc 100%); box-shadow: inset 0 0 0 1px #f0e2d4, 0 30px 90px #b4581a1a; }
.hero-scene figcaption { padding-top: 16px; text-align: center; font-size: var(--type-label); letter-spacing: 0.06em; color: var(--muted); }

/* CSS device shell around a real, pre-cropped app capture. */
.device-frame { position: relative; width: 280px; padding: 8px; border: 2px solid #76787a; border-radius: 42px; background: linear-gradient(100deg, #b7b9ba, #242627 7%, #151617 90%, #8b8d8e); box-shadow: 0 0 0 1px #343637, 0 30px 60px #251c1830; }
.device-frame::before { content: ""; position: absolute; inset: 3px; border: 1px solid #000; border-radius: 37px; pointer-events: none; }
.device-screen { display: block; width: 100%; aspect-ratio: 640 / 1436; object-fit: cover; border-radius: 33px; background: #fff; }
.device-camera { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border: 2px solid #161719; border-radius: 50%; background: radial-gradient(circle at 65% 35%, #314257 0, #090b0e 65%); }
.device-key { position: absolute; right: -4px; width: 3px; border-radius: 0 2px 2px 0; background: linear-gradient(#737578, #292b2d); }
.key-power { top: 22%; height: 7%; }
.key-volume { top: 33%; height: 13%; }
.hero-device { width: clamp(230px, 21vw, 290px); animation: rise 0.9s 0.1s var(--ease) both; }

.snag-callout, .photo-note { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 #47321c0a, 0 14px 34px #47321c1c; }
.snag-callout small, .photo-note small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.snag-callout strong, .photo-note strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.callout-pin { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font: 700 15px/1 var(--display); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #20202222; }
.snag-callout { animation: pop 0.6s var(--ease) both; }
.snag-one { top: 20%; left: -4%; animation-delay: 0.7s; }
.snag-two { top: 50%; right: -5%; animation-delay: 0.9s; }
.report-callout { bottom: 10%; left: 2%; animation-delay: 1.1s; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.report-callout:hover { transform: translateY(-4px); box-shadow: 0 20px 44px #47321c2c; }
.report-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fde7d8; color: var(--accent); font-size: 18px; font-weight: 700; }

.use-strip { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 22px var(--gutter); border-top: 1px solid var(--line); background: #ffffffa8; }
.use-strip > span { font-size: var(--type-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.use-strip ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.use-strip li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: var(--type-small); font-weight: 600; }
.use-strip li a { color: var(--accent); }
.use-strip li:has(a):hover { border-color: var(--accent); }

/* Workflow */
.workflow { padding: clamp(72px, 9vw, 128px) var(--gutter); background: var(--ink); color: #fff; }
.workflow-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding-bottom: 72px; }
.workflow-head .eyebrow { grid-column: 1 / -1; color: #ffb48c; }
.workflow-head h2 span { color: #8f8f98; }
.workflow-head > p:last-child { color: var(--muted-dark); font-size: var(--type-lead); max-width: 420px; justify-self: end; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 8%; align-items: start; }
.workflow-steps { list-style: none; padding: 0; }
.workflow-step { display: flex; gap: 28px; min-height: 46vh; padding: 36px 0; border-top: 1px solid var(--line-dark); color: #8f8f98; transition: color 0.35s, border-color 0.35s; }
.workflow-step:last-child { min-height: 0; padding-bottom: 12vh; }
.workflow-step.is-active { color: #fff; border-top-color: var(--marker); }
.step-number { font: 700 18px/1.3 var(--display); color: var(--marker); padding-top: 6px; }
.workflow-step h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -0.035em; }
.workflow-step p { max-width: 460px; margin-top: 18px; font-size: var(--type-lead); color: inherit; opacity: 0.85; }
.step-tag { display: inline-block; margin-top: 24px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 100px; font-size: var(--type-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.step-shot { display: none; }
.workflow-preview { position: sticky; top: 120px; display: grid; justify-items: center; gap: 22px; }
.workflow-preview .device-frame { width: min(100%, 320px); }
.workflow-preview .device-screen { transition: opacity 0.25s; }
.workflow-preview .device-screen.is-swapping { opacity: 0.2; }
.workflow-preview figcaption { font-size: var(--type-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }

/* Annotated site photo — the site marks itself up like the app does. */
.annotated { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--paper); }
.annotated-head { max-width: 1040px; margin: 0 auto 56px; text-align: center; }
.annotated-head .eyebrow { justify-content: center; }
.annotated-head h2 { margin-top: 20px; font-size: clamp(34px, 4.6vw, 66px); }
.annotated-figure { max-width: 1240px; margin: 0 auto; }
.annotated-frame { position: relative; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 100px #2020221c; }
.annotated-frame img { width: 100%; }
.annotated-marks { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #e5322d; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px #0002); }
.photo-note { animation: none; }
.note-one { top: 6%; left: 63%; }
.note-two { top: 74%; left: 20%; }
.js .photo-note { opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .annotated-figure.is-drawn .photo-note { opacity: 1; transform: none; }
.js .annotated-figure.is-drawn .note-one { transition-delay: 1s; }
.js .annotated-figure.is-drawn .note-two { transition-delay: 1.6s; }
.annotated-figure figcaption { margin-top: 20px; text-align: center; color: var(--muted); font-size: var(--type-small); }

/* Report */
.report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8%; align-items: center; padding: clamp(80px, 9vw, 128px) var(--gutter); background: var(--paper-sand); }
.report-copy h2 { margin: 20px 0 24px; }
.report-copy h2 span { color: var(--accent); }
.report-copy .lead { max-width: 480px; }
.report-list { list-style: none; padding: 0; margin: 28px 0 24px; display: grid; gap: 12px; }
.report-list li { display: flex; gap: 12px; font-weight: 600; }
.report-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.report-note { margin-top: 14px; font-size: var(--type-small); color: var(--muted); }
.report-pages { display: block; width: min(100%, 460px); justify-self: center; transform: rotate(2deg); transition: transform 0.4s var(--ease); }
.report-pages:hover { transform: rotate(0deg) translateY(-8px); }
.report-pages img { width: 100%; border-radius: 6px; box-shadow: 0 2px 0 #0000000a, 0 40px 80px #4a2a1226; }

/* Features */
.features { padding: clamp(80px, 9vw, 128px) var(--gutter); }
.features-head { max-width: 760px; margin-bottom: 56px; }
.features-head h2 { margin: 20px 0 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.feature { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: 28px; background: var(--paper-warm); border: 1px solid #eeeae2; }
.feature--wide { grid-column: span 3; }
.feature:nth-child(4) { background: var(--ink); color: #fff; border-color: var(--ink); }
.feature:nth-child(4) p { color: var(--muted-dark); }
.feature-icon { width: 52px; height: 52px; margin-bottom: 24px; fill: none; stroke: var(--marker); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.feature p { color: var(--muted); max-width: 440px; }

/* Audience */
.audience { padding: 0 var(--gutter) clamp(80px, 9vw, 128px); }
.audience-head { margin-bottom: 40px; }
.audience-head h2 { margin-top: 20px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card { padding: clamp(32px, 4vw, 52px); border-radius: 28px; border: 1px solid var(--line); }
.audience-card--home { background: #fff3ea; border-color: #f6dcc9; }
.audience-card .kicker { font: 600 var(--type-label)/1.4 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.audience-card h3 { margin: 16px 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; }
.audience-card > p:not(.kicker) { color: var(--muted); max-width: 500px; }
.audience-card ul { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 8px; }
.audience-card li a { display: inline-flex; gap: 10px; padding: 6px 0; font-weight: 600; border-bottom: 2px solid var(--marker); }
.audience-card li a::after { content: "→"; transition: transform 0.2s var(--ease); }
.audience-card li a:hover { color: var(--accent); }
.audience-card li a:hover::after { transform: translateX(4px); }

/* FAQ */
.faq { padding: clamp(80px, 9vw, 128px) var(--gutter); border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 8%; }
.faq-head h2 { margin: 20px 0 24px; }
.faq-head { align-self: start; position: sticky; top: 120px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font: 600 clamp(18px, 1.5vw, 21px)/1.35 var(--display); letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-warm); color: var(--accent); font: 600 22px/1 var(--display); transition: transform 0.25s var(--ease), background 0.2s; }
.faq-list summary:hover::after { background: #fde7d8; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 56px 26px 0; color: var(--muted); }
.faq-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Guides teaser */
.guides-teaser { padding: 0 var(--gutter) clamp(80px, 9vw, 128px); }
.guides-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.guides-head .eyebrow { flex-basis: 100%; }
.guides-head h2 { margin-top: -4px; }

@keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .snag-one { left: -2%; }
  .snag-two { right: -2%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature--wide { grid-column: span 1; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .hero h1 { font-size: clamp(52px, 10vw, 84px); }
  .hero-scene { width: min(100%, 560px); justify-self: center; }
  .workflow-head, .report, .faq-layout, .audience-grid { grid-template-columns: minmax(0, 1fr); }
  .workflow-head > p:last-child { justify-self: start; }
  .workflow-head { padding-bottom: 32px; }
  .workflow-layout { display: block; }
  .workflow-preview { display: none; }
  .workflow-step, .workflow-step:last-child { min-height: 0; padding: 32px 0 40px; color: #fff; border-top-color: var(--line-dark); }
  .step-shot { display: block; width: min(100%, 300px); margin-top: 28px; border-radius: 24px; border: 6px solid #151617; box-shadow: 0 0 0 1px #5a5c5e; }
  .report-pages { width: min(100%, 380px); }
  .faq-head { position: static; }
  .faq-layout { gap: 32px; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 28px 20px 40px; gap: 36px; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 58px); }
  .hero h1 .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero-description { margin: 22px 0 26px; }
  .hero-actions .button { width: 100%; }
  .app-stage { padding: 28px 0; border-radius: 28px; }
  .hero-device { width: 200px; padding: 6px; border-radius: 32px; }
  .hero-device::before { border-radius: 28px; }
  .hero-device .device-screen { border-radius: 26px; }
  .hero-device .device-camera { top: 12px; width: 8px; height: 8px; }
  .snag-callout { gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; }
  .snag-callout small { font-size: 10px; }
  .snag-callout strong { font-size: 13px; }
  .callout-pin { width: 26px; height: 26px; font-size: 13px; }
  .report-icon { width: 26px; height: 26px; }
  .snag-one { left: 8px; top: 16%; }
  .snag-two { right: 8px; top: 48%; }
  .report-callout { left: 8px; bottom: 7%; }
  .use-strip { padding: 20px 0 20px 20px; }
  .use-strip ul { flex-wrap: nowrap; overflow-x: auto; padding-right: 20px; scrollbar-width: none; }
  .use-strip li { white-space: nowrap; }
  .annotated-frame { border-radius: 20px; }
  .annotated-marks { stroke-width: 9; }
  .photo-note { padding: 0; background: none; box-shadow: none; }
  .photo-note > span:last-child { display: none; }
  .note-one { top: 3%; left: 62%; }
  .note-two { top: 58%; left: 86%; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 28px; }
  .faq-list details p { padding-right: 0; }
}
