/* NibbleIQ 2.0. Local fonts; the palette and type families match the app. */
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

body.landing {
  --ink: #171413;
  --ink-soft: #6B6560;
  --mute: #746D66;
  --line: #E1DDD6;
  --green-900: #1F6B4F;
  --green-50: #EDF3EE;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 24px;
  background: #FBF7F0;
}
.landing .container { max-width: 1160px; padding-inline: 28px; }
.landing main { scroll-margin-top: 88px; }
.landing section { padding-block: 64px; scroll-margin-top: 88px; }
.landing h1, .landing h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.landing h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.16; }
.landing h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.landing p { line-height: 1.65; }
.landing a { text-underline-offset: 4px; }
.landing :focus-visible { outline: 3px solid #1F6B4F; outline-offset: 5px; }
.landing button { font: inherit; cursor: pointer; }
.landing .eyebrow {
  display: block; margin: 0 0 18px; padding: 0;
  color: var(--green-900); background: none; border-radius: 0;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.skip-link { position: fixed; z-index: 20; top: -100px; left: 16px; padding: 12px 20px; background: white; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* A quiet header that keeps the useful next step close. */
.landing header.site {
  position: sticky; top: 0; z-index: 5; padding: 18px 0;
  background: #FBF7F0; border-bottom: 1px solid rgba(23,20,19,.06);
}
.nav-bar, .brand-link, .nav-bar nav { display: flex; align-items: center; }
.nav-bar { justify-content: space-between; gap: 16px; }
.brand-link { gap: 10px; color: var(--ink); }
.brand-link:hover { text-decoration: none; }
.landing header.site .wordmark { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.nav-bar nav { gap: 28px; }
.nav-bar nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.nav-cta { border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; }
.nav-cta:hover { background: var(--green-50); text-decoration: none; }

/* Actual app imagery, with the same soft category colors around it. */
.landing .hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  text-align: left; overflow: visible; padding-block: 54px 64px;
}
.landing .hero::before { content: none; }
.landing .hero h1 { font-size: clamp(42px, 5.25vw, 64px); line-height: 1.1; margin: 0 0 24px; }
.landing .hero h1 em { background: none; color: var(--green-900); -webkit-text-fill-color: currentColor; font-style: normal; }
.landing .hero .tagline { font-size: 17px; font-weight: 400; margin: 0 0 28px; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.button-primary { display: inline-flex; gap: 22px; align-items: center; min-height: 52px; padding: 14px 22px; border-radius: 16px; background: var(--green-900); color: white; font-size: 14px; font-weight: 600; transition: background .18s, transform .18s; }
.button-primary:hover { color: white; background: #18533D; text-decoration: none; transform: translateY(-2px); }
.text-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.orbit { position: absolute; pointer-events: none; }
.orbit-one { width: 86%; height: 79%; top: 7%; right: 7%; background: #E7EFE5; border-radius: 48% 45% 43% 52%; transform: rotate(-4deg); }
.orbit-two { width: 34%; aspect-ratio: 1; left: -1%; bottom: 7%; background: #F3E2D7; border-radius: 50%; }
.hero-figure { margin: 0; z-index: 1; text-align: center; width: min(100%, 280px); }
.screen-link { display: block; position: relative; color: var(--green-900); text-decoration: none; border-radius: 28px; }
.screen-link:hover { text-decoration: none; }
.screen-link img { width: 100%; height: auto; display: block; border-radius: 26px; }
.hero-phone { border: 5px solid #FFFDFA; box-shadow: 0 24px 52px rgba(52,68,46,.14), 0 2px 8px rgba(52,68,46,.06); }
.zoom-badge { position: absolute; bottom: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 2px 8px #17141312; }
.hero-figure figcaption { margin-top: 20px; color: var(--ink-soft); font-size: 12px; }

.section-heading { max-width: 620px; margin-bottom: 32px; }
.section-heading h2 { margin: 0 0 16px; }
.section-heading p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.moment-grid, .journey-grid, .ownership-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.moment-card { padding: 28px; border-radius: var(--radius); }
.green-card { background: #EDF3EE; color: #1F6B4F; }
.blue-card { background: #E7F0F4; color: #315E73; }
.peach-card { background: #F8E9E1; color: #914A35; }
.moment-card h3 { color: var(--ink); margin-top: 22px; }
.moment-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.moment-icon svg { display: block; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Three complete examples. On phones each card gets a readable full row. */
.journey-card { min-width: 0; padding: 26px 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFDFA; display: flex; flex-direction: column; }
.step-copy { flex: 1; margin-bottom: 28px; }
.step-number { display: flex; align-items: center; gap: 12px; color: var(--green-900); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.step-number span { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.journey-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.journey-card .screen-link { width: 100%; max-width: 258px; margin-inline: auto; }
.journey-card img { box-shadow: 0 8px 22px #1714130B; border: 1px solid #1714130D; }
.screen-caption { display: flex; justify-content: space-between; gap: 12px; padding: 16px 2px 0; font-size: 13px; font-weight: 600; }
.screen-link:hover .screen-caption { text-decoration: underline; text-underline-offset: 4px; }
.landing .shots-note { max-width: 720px; margin: 24px auto 0; font-size: 12px; line-height: 1.6; }

.evidence-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px; background: #EDF3EE; border-radius: 28px; }
.evidence-panel h2 { margin: 0 0 22px; }
.evidence-panel p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.evidence-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.evidence-list li { display: flex; gap: 18px; }
.evidence-list li > span { color: var(--green-900); font-size: 12px; margin-top: 4px; }
.evidence-list h3 { font-size: 16px; margin-bottom: 6px; }
.evidence-list p { font-size: 14px; }
.ownership-grid { gap: 32px; margin-block: 36px 16px; }
.ownership-grid article { padding-top: 22px; border-top: 1px solid var(--line); }
.ownership-grid h3 { font-size: 16px; }
.ownership-grid p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.ownership-grid a { text-decoration: underline; }

.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; padding: 22px 0; font-size: 15px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-900); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); font-size: 14px; margin: 0; padding: 0 28px 24px 0; }
.download-panel { text-align: center; border-radius: 30px; padding: 48px 32px; background: #1F6B4F; color: white; }
.download-icon { border-radius: 14px; margin-bottom: 24px; }
.download-panel .eyebrow { color: #DAE9DF; }
.download-panel h2 { color: white; margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); }
.download-panel > p { color: #E3EDE6; margin: 0 0 28px; font-size: 16px; }
.download-panel .store-btn.primary { background: #FFFDFA; color: #171413; box-shadow: none; border: 1px solid #FFFDFA; }
.download-panel .store-btn.primary:hover { box-shadow: 0 8px 20px #0002; }
.download-panel :focus-visible { outline-color: white; }
.landing footer.site { margin-top: 24px; }
.footer-note { font-size: 12px; color: var(--mute); margin: 24px 0 0; }

/* Native modal: keyboard escape and focus return are handled by the browser. */
#screen-preview { border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: #FBF7F0; width: min(94vw, 442px); max-width: 94vw; max-height: 94dvh; color: var(--ink); }
#screen-preview::backdrop { background: rgba(23,20,19,.7); }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.preview-header h2 { font: 600 16px/1.4 Inter, sans-serif; letter-spacing: 0; margin: 0; }
.preview-close { flex-shrink: 0; min-height: 44px; border: 1px solid var(--line); background: white; color: var(--green-900); border-radius: 12px; padding: 8px 12px; }
.preview-content { max-height: 68dvh; overflow: auto; overscroll-behavior: contain; border-radius: 20px; }
.preview-image { display: block; width: 100%; height: auto; border-radius: 20px; }
#screen-preview > p { font-size: 11px; color: var(--mute); text-align: center; margin: 14px 0 0; }
html:has(#screen-preview[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .landing .hero { gap: 24px; }
  .landing .hero h1 { font-size: 46px; }
  .hero-figure { max-width: 246px; }
  .journey-grid { gap: 14px; }
  .journey-card { padding: 22px 16px 18px; }
  .moment-card { padding: 24px; }
  .evidence-panel { padding: 36px; gap: 36px; }
}
@media (max-width: 700px) {
  .landing .container { padding-inline: 22px; }
  .landing section { padding-block: 44px; }
  .landing header.site { padding-block: 12px; }
  .nav-bar nav > a:not(.nav-cta) { display: none; }
  .landing .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 42px 38px; }
  .landing .hero h1 { font-size: clamp(38px, 8.3vw, 52px); max-width: 580px; }
  .landing .hero .tagline { font-size: 16px; max-width: 540px; }
  .hero-art { max-width: 430px; width: 100%; margin: auto; }
  .hero-figure { max-width: 258px; }
  .moment-grid { grid-template-columns: 1fr; gap: 12px; }
  .moment-card { position: relative; padding: 24px 24px 24px 72px; }
  .moment-icon { position: absolute; left: 24px; top: 25px; }
  .moment-card h3 { margin-top: 0; font-size: 17px; }
  .journey-grid { grid-template-columns: 1fr; gap: 24px; }
  .journey-card { padding: 28px; }
  .step-copy { margin-bottom: 24px; }
  .journey-card .screen-link { max-width: 280px; }
  .evidence-panel { grid-template-columns: 1fr; padding: 28px; gap: 30px; }
  .ownership-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .download-panel { padding: 36px 24px; }
  .download-panel .badge-row { flex-direction: row; }
  .download-panel .store-btn { flex: 1 1 175px; justify-content: center; padding-inline: 16px; }
  .landing footer.site .row { gap: 20px; }
  .landing footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
  .landing footer.site a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
  .footer-note { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { scroll-behavior: auto; transition: none; animation: none; }
}
