/* CamNest v1 — hand-written, no framework. */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 850;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF8F4;
  --bg-2: #F1EDE5;
  --ink: #161616;
  --ink-2: #4A4A47;
  --line: #DDD7CC;
  --accent: #0A6584;      /* from the app icon, darkened for text contrast */
  --accent-ink: #FFFFFF;
  --dark: #141619;
  --max: 70rem;
  --text: 40rem;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);   /* 18px */
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Headings */
h1, .h2, h3, .end__h {
  font-family: var(--sans);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9.5vw, 6.25rem); letter-spacing: -0.045em; line-height: .92; }
.h2 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 18ch; margin-bottom: 1.5rem; }
.h2--small { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1rem; max-width: var(--text); }

.kicker {
  font-weight: 650; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lede { font-size: 1.25rem; color: var(--ink-2); margin-top: 1.5rem; max-width: 33rem; }
.section-lede { font-size: 1.25rem; color: var(--ink-2); margin-top: -.5rem; }
.micro { font-size: .95rem; color: var(--ink-2); margin: .25rem 0 0; }
.note { font-size: .95rem; color: var(--ink-2); }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin: 0;
}
.brand img { border-radius: 7px; }
.top__nav { display: none; gap: 1.5rem; margin-left: auto; }
.top__nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.top__nav a:hover { text-decoration: underline; }
.badge { display: inline-block; line-height: 0; }
/* The official badge PNG includes Google's required clear space; we only scale it. */
.badge img { width: 12.5rem; }
.badge--small { margin-left: auto; margin-right: -.4rem; }
.badge--small img { width: 8.25rem; }

/* Hero */
.hero { padding: 3rem 0 4rem; }
.hero__in { display: grid; gap: 3rem; }
.cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2.5rem; margin-top: 2rem; }
.cta__main .badge { margin-left: -.6rem; }
.qr { display: none; margin: 0; align-items: center; gap: .9rem; }
.qr img { width: 6.5rem; border: 1px solid var(--line); border-radius: 6px; }
.qr figcaption { font-size: .9rem; color: var(--ink-2); max-width: 10rem; line-height: 1.35; }
.cta--inline { margin-top: 2.5rem; align-items: center; gap: .5rem 1rem; }
.cta--inline .badge { margin-left: -.6rem; }

/* Screenshots: cropped from the real Play screenshots (app UI only) */
.shot { margin: 0; justify-self: center; width: min(82vw, 25rem); }
.shot img {
  border-radius: 1.6rem;
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -24px rgba(20,22,25,.45);
}
.shot figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .9rem; max-width: 22rem; }
.shot--small { width: min(70vw, 19rem); }

/* Problem */
.problem { background: var(--bg-2); padding: 4.5rem 0; border-block: 1px solid var(--line); }
.problem .h2 { max-width: 20ch; }
.compare { display: grid; gap: 1.25rem; margin-top: 2rem; }
.compare__col { padding: 1.5rem 1.5rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.compare__col h3 { font-size: 1.1rem; letter-spacing: 0; font-weight: 700; margin-bottom: .75rem; color: var(--ink-2); }
.compare__col ol { margin: 0; padding-left: 1.4rem; }
.compare__col li { margin-bottom: .4rem; }
.compare__col li::marker { font-weight: 700; color: var(--ink-2); }
.compare__col--new { border: 2px solid var(--accent); }
.compare__col--new h3 { color: var(--accent); }
.compare__col--new li { font-weight: 650; font-size: 1.25rem; }

/* How it works */
.how { padding: 5rem 0 4rem; }
.how .h2 { max-width: 22ch; }
.step { display: grid; gap: 2rem; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step__n {
  font-weight: 820; font-size: 1rem; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--bg); margin-bottom: 1.1rem;
}
.step h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.step .shot { width: min(78vw, 21rem); }

/* Use cases — plain text tiles; the dot echoes the folder colors in the app */
.uses { padding: 4.5rem 0 5rem; border-top: 1px solid var(--line); }
.uses__grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.use {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem 1.4rem 1.1rem;
}
.use h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.use p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 0; }
.use p.use__folder {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 650; color: var(--ink); margin-bottom: .8rem;
}
.use__dot { flex: none; width: .9rem; height: .9rem; border-radius: 4px; background: var(--dot, var(--accent)); }
.use--job      { --dot: #D9A21B; }
.use--work     { --dot: #3FB56B; }
.use--kids     { --dot: #9B3FC8; }
.use--receipts { --dot: #D9306B; }
.use--workout  { --dot: #F06A1D; }
.use--travel   { --dot: #1F8FA3; }

/* More */
.more { padding: 5rem 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.more__in { display: grid; gap: 3rem; }
.features { margin: 0; }
.features div { padding: 1.1rem 0; border-top: 1px solid var(--line); max-width: var(--text); }
.features dt { font-weight: 750; font-size: 1.15rem; margin-bottom: .25rem; }
.features dd { margin: 0; color: var(--ink-2); }
.callout {
  margin-top: 1.75rem; padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent); background: var(--bg);
  font-weight: 650; font-size: 1.2rem; line-height: 1.4;
}

/* Privacy — the one dark block */
.privacy { background: var(--dark); color: #F2F0EB; padding: 5rem 0; }
.privacy .h2 { max-width: 16ch; }
.privacy a { color: #8FD3EA; }
.privacy :focus-visible { outline-color: #8FD3EA; }
.nolist { list-style: none; margin: 2rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.nolist li {
  border: 1px solid #4A4F55; border-radius: 999px; padding: .35rem 1rem;
  font-weight: 650; font-size: 1.05rem;
}
.privacy__p { color: #D6D3CC; font-size: 1.15rem; }
.privacy q { color: #fff; font-weight: 650; }

/* Pricing */
.pricing { padding: 5rem 0; }
.plans { display: grid; gap: 1rem; margin: 2rem 0 1.25rem; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.5rem; background: #fff; }
.plan h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.plan__what { margin-bottom: .25rem; }
.plan__cost { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Maker + changes */
.maker, .changes { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.maker__in { display: grid; gap: 1rem; }
.maker__in .h2 { margin-bottom: 0; }
.changes__date { font-weight: 700; }
.changes__list { margin: 0 0 1rem; padding-left: 1.2rem; max-width: var(--text); }
.changes__list li { margin-bottom: .3rem; }

/* FAQ */
.faq { padding: 4.5rem 0; border-top: 1px solid var(--line); }
details { border-top: 1px solid var(--line); max-width: 46rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; font-size: 1.15rem;
  list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: .25rem; top: .9rem;
  font-size: 1.5rem; font-weight: 400; color: var(--ink-2);
}
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin-bottom: 1.25rem; }

/* End */
.end { padding: 5rem 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.end__in { display: grid; justify-items: start; gap: 1.25rem; }
.end__h { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 20ch; }
.end .badge { margin-left: -.6rem; }

/* Footer */
.foot { padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--ink-2); }
.foot__in { display: grid; gap: 1.5rem; }
.foot p { margin-bottom: .35rem; }
.brand--foot { font-size: 1.05rem; margin-bottom: .6rem !important; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot__tm { font-size: .85rem; grid-column: 1 / -1; }

/* Simple pages (privacy, 404) */
.doc { padding: 3rem 0 5rem; }
.doc h1 { font-size: clamp(2.5rem, 7vw, 4rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.5rem; font-weight: 780; letter-spacing: -0.02em; margin: 2.5rem 0 .75rem; }
.doc ul { max-width: var(--text); padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .updated { color: var(--ink-2); }

/* Desktop rhythm */
@media (min-width: 720px) {
  .top__nav { display: flex; }
  .badge--small { margin-left: 0; }
  .compare { grid-template-columns: 1.3fr 1fr; max-width: 52rem; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .uses__grid { grid-template-columns: repeat(2, 1fr); }
  .maker__in { grid-template-columns: 16rem 1fr; align-items: baseline; }
  .foot__in { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .hero { padding: 5rem 0 6rem; }
  .hero__in { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 4rem; }
  .shot--hero { width: 25rem; justify-self: end; }
  .qr { display: flex; }
  .step { grid-template-columns: 1fr 21rem; align-items: center; gap: 4rem; padding: 4rem 0; }
  .step__text { max-width: 30rem; padding-left: 4rem; }
  .step--flip { grid-template-columns: 21rem 1fr; }
  .step--flip .shot { order: -1; }
  .step--flip .step__text { padding-left: 0; }
  .more__in { grid-template-columns: 1fr 19rem; align-items: start; gap: 5rem; }
  .shot--small { margin-top: 5rem; }
  .uses__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
