/* Nuoli landing. Tokens from the Figma design system (docs/design/README.md) and
   docs/design/design-system/styles.css: Ice / Cacao / Sedona / Bamboo, Young Serif for
   headings, Be Vietnam Pro for everything else. The type scale is the app's, scaled up
   for a page read at arm's length. */

@font-face { font-family: "Young Serif"; src: url("assets/fonts/YoungSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("assets/fonts/BeVietnamPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("assets/fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #faf6f0;            /* app ground */
  --surface: #fffdf9;       /* Ice */
  --ink: #200d03;           /* Cacao */
  --ink-2: #645c50;         /* neutral 700 */
  --ink-3: #82796a;         /* neutral 600 */
  --divider: rgba(32, 13, 3, 0.16);
  --accent: #d66853;        /* Sedona */
  --accent-deep: #a23a28;   /* Sedona deep */
  --accent-tint: #fce7db;   /* Sedona tint */
  --sage: #6e8e63;          /* Bamboo */
  --sage-tint: #e9efe3;     /* Bamboo tint */
  --sage-700: #4d583b;

  --heading: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, 0.22);

  --gutter: clamp(20px, 5vw, 48px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: var(--heading); font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(250, 246, 240, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 32px; color: var(--sage); }
.wordmark { font-family: var(--heading); font-size: 24px; line-height: 1; }

/* Buttons: the app's OrganicButton, primary = Sedona fill, cream text */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; line-height: 1;
  background: var(--accent); color: var(--surface);
  border-radius: 999px; white-space: nowrap;
  transition: background 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-small { font-size: 14px; padding: 10px 18px; }
.btn-large { font-size: 16px; padding: 16px 28px; min-height: 52px; }

/* Hero */
main { padding-inline: var(--gutter); }
.hero {
  max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.overline {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage-700); margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: var(--measure); margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.store { display: inline-flex; align-items: center; }
.store img { height: 48px; width: auto; }
.store-soon { position: relative; opacity: 0.45; filter: grayscale(1); }
.store-soon .soon {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); opacity: 1; white-space: nowrap;
}
.hero .btn-large { margin-top: 18px; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 16px; }

/* Screens: a horizontal rail on phones, a row on wide screens */
.shots {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px var(--gutter) 32px; margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 min(72vw, 250px); margin: 0; padding: 0; border: 0; background: none;
  scroll-snap-align: center; cursor: zoom-in; border-radius: var(--radius-lg);
  -webkit-tap-highlight-color: transparent;
}
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shot img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--surface); }
@media (max-width: 600px) {
  /* One screen at a time, edge to edge with a peek of the next: the framed shot already
     carries its own headline, so it has to be readable at phone width. */
  .shot { flex-basis: 78vw; }
}
@media (min-width: 1360px) {
  .shots { justify-content: center; overflow: visible; }
}

/* How it works */
.how, .why, .close { max-width: 980px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0; }
.how h2, .why h2, .close h2 { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md);
  padding: 26px 24px 28px;
}
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-deep);
  font-family: var(--heading); font-size: 18px; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p, .cards p { color: var(--ink-2); font-size: 16px; }

/* Why */
.why { border-top: 1px solid var(--divider); }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards article { background: var(--sage-tint); border-radius: var(--radius-md); padding: 26px 24px 28px; }
.cards h3 { margin-bottom: 8px; color: var(--sage-700); }

/* Close */
.close { text-align: center; border-top: 1px solid var(--divider); }
.close .cta { margin-bottom: 0; }

/* Footer */
.foot {
  border-top: 1px solid var(--divider);
  padding: 28px var(--gutter) 40px; text-align: center;
  font-size: 14px; color: var(--ink-3);
}
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 12px; }
.foot-links a { color: var(--ink-2); }

@media (max-width: 480px) {
  .nav { padding-block: 10px; }
  .btn-small { padding: 9px 14px; }
  .hero .btn-large { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .shots { scroll-behavior: auto; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32, 13, 3, 0.86);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-figure { margin: 0; max-width: min(92vw, 440px); max-height: 100%; text-align: center; }
.lb-figure img {
  max-height: calc(100vh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  width: auto; margin: 0 auto; border-radius: var(--radius-lg);
}
.lb-figure figcaption { color: var(--surface); font-size: 14px; margin-top: 14px; opacity: 0.9; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 0; cursor: pointer; color: var(--surface);
  background: rgba(255, 253, 249, 0.14); border-radius: 50%;
  width: 44px; height: 44px; font-size: 30px; line-height: 44px; padding: 0;
}
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 253, 249, 0.28); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { display: none; } /* swipe instead: the arrows would sit over the screen */
}
