/* nujapp.com, direction 1 (Paper and Sky). Mock for the 2026-11-02 design round. */

:root {
  --bg: #ffffff;
  --fg: #14110d;
  --fg-soft: #4b463d;
  --fg-mute: #6b665c;
  --sky: #218439;                     /* links and the footer mark: the app's green */
  --line: rgba(20, 17, 13, .22);

  /* health: the app's own three colours (iOS green, orange, brown) */
  --green: #34c759;
  --orange: #ff9500;
  --brown: #a2845e;
  --go: #218439;                      /* the app's green, deep enough for white text (4.75:1) */

  --t-display: clamp(60px, 11vw, 141px);
  --t-h2: clamp(36px, 5.2vw, 53px);
  --t-lede: clamp(21px, 2.4vw, 25px);
  --t-body: 17px;
  --t-small: 14px;

  --gf: 24px;                         /* frame inset */
  --gx: clamp(24px, 5vw, 64px);       /* text gutter */
  /* inside the frame, line text up with the 1120px column below */
  --in: max(var(--gx), calc((100vw - 1120px) / 2 + var(--gx) - var(--gf)));
  /* outside the frame, the column starts where the framed text starts */
  --cx: calc(var(--gx) + var(--gf));
  --wrap: calc(1120px + 2 * var(--gf));
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110d;
    --fg: #f0ece0;
    --fg-soft: #c0b9a8;
    --fg-mute: #958e7f;
    --sky: #7fd99a;
    --line: rgba(245, 241, 232, .24);
  }
}

@media (max-width: 600px) {
  :root { --gf: 12px; --gx: 24px; --cx: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--sky);
  overflow-x: clip;
}
::selection { background: var(--go); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 300; }
p { text-wrap: pretty; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- the hero: one plant inside the frame ---------- */

.hero {
  position: relative;
  margin: var(--gf) var(--gf) 0;
  min-height: min(calc(100svh - 2 * var(--gf) - 72px), 860px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "bar bar" "words plant";
}
.hero__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
  z-index: 2;
}
.hero__frame rect {
  fill: none; stroke: var(--line); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__frame rect {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 900ms var(--ease) 120ms forwards;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__bar {
  grid-column: 1; grid-row: 1;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 16px var(--gx) 0 var(--in);
}
.bar-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--fg-soft); text-decoration: none;
}
.bar-link:hover { color: var(--fg); text-decoration: underline; }

.hero__words {
  grid-area: words;
  align-self: center;
  padding: 8px var(--gx) 64px var(--in);
}
/* the app's face, at the size the App Store shows it */
.hero__icon {
  display: block;
  width: clamp(104px, 10vw, 136px); height: auto; aspect-ratio: 1;
  border-radius: 22.5%;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 1px 2px rgba(20,17,13,.12), 0 14px 36px -10px rgba(120,90,20,.35);
}
h1 {
  font-family: var(--serif);
  font-size: var(--t-display);
  line-height: .95;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 24em;
  margin-top: 24px;
}

.get {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; margin-top: 40px;
  border-radius: 999px;
  background: var(--go); color: #fff;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  transition: transform 120ms ease;
}
.get:active { transform: scale(.97); }
.aside { margin-top: 12px; font-size: var(--t-small); color: var(--fg-mute); }

.hero__scene {
  grid-column: 2; grid-row: 1 / span 2;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 72px 20px 28px;
  margin: 0 -1px -1px 0;           /* the scene meets the frame's right and bottom lines */
  overflow: hidden;
  min-height: 420px;
}
.hero__scene > :not(.hero__dunes) { position: relative; z-index: 1; }
.scene__status {
  position: absolute !important; top: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.82); color: #14110d;
  font: 500 15px/1.2 var(--sans);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.scene__hint {
  padding: 10px 18px; border-radius: 999px;
  background: rgba(20,17,13,.62); color: #fff;
  font: 600 16px/1.2 var(--sans);
  transition: background-color 400ms ease;
}
.scene__hint.is-good { background: var(--go); }
/* the app's own hillside, the picture behind every 1.2 garden */
.hero__dunes, .hero__dunes img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__dunes img { object-fit: cover; object-position: 50% 70%; display: block; }

/* ---------- a nuj, drawn the way the app draws it ---------- */

.nuj {
  all: unset;
  position: relative;
  display: grid; justify-items: center;
  width: min(26vw, 300px);
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nuj:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 50%; }
.nuj img { pointer-events: none; -webkit-user-drag: none; }
.nuj__plant {
  position: relative; z-index: 1; display: block;
  width: 72%; height: auto;
  transform-origin: 50% 100%;
  transition: filter 700ms ease, transform 900ms var(--ease);
}
.nuj__name {
  position: relative; z-index: 1;
  margin-top: 14px;
  font: 600 18px/1.2 var(--sans);
  color: #1d1a10;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.78);
  transition: color 700ms ease;
}
/* the soft disc of light each plant sits in, in the app's three colours */
.nuj__glow {
  position: absolute; z-index: 0;
  left: 50%; top: 38%;
  width: 118%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--state) 0, color-mix(in srgb, var(--state) 60%, transparent) 34%, transparent 68%);
  opacity: .9;
  transition: background 700ms ease, transform 300ms var(--ease);
}
/* while you hold: the plant gives a little, the light swells and turns green */
.nuj.is-holding .nuj__plant { transform: scale(.95); transition: transform 160ms ease; }
.nuj.is-holding .nuj__glow {
  transition: none;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--green) calc(var(--p, 0) * 100%), var(--state)) 0,
    color-mix(in srgb, color-mix(in srgb, var(--green) calc(var(--p, 0) * 100%), var(--state)) 60%, transparent) 34%,
    transparent 68%);
  transform: translate(-50%, -50%) scale(calc(1 + var(--p, 0) * .22));
}
[data-state="0"] { --state: var(--green); }
[data-state="1"] { --state: var(--orange); }
[data-state="2"] { --state: var(--brown); }
[data-state="2"] .nuj__plant, [data-state="2"] img { filter: saturate(.55) sepia(.35) brightness(.92); }
[data-state="2"] .nuj__plant { transform: scaleY(.96); }

/* the ring under the plant doubles as the hold meter */
.nuj__ring {
  position: relative; z-index: 1;
  width: 64%; height: 8px; margin-top: 12px;
  border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px rgba(20,17,13,.08);
}
.nuj__fill {
  position: absolute; inset: 0;
  background: var(--green);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

@media (prefers-reduced-motion: no-preference) {
  /* one quiet breath until the first touch, so the plant looks alive */
  .nuj:not(.was-touched) .nuj__glow { animation: breathe 2.6s ease-in-out 1.2s infinite; }
  .nuj.is-done .nuj__plant { animation: glow 900ms var(--ease); }
  .nuj.is-done .nuj__glow { animation: bloom 900ms var(--ease); }
}
@keyframes glow {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(255,236,120,.9)); }
  100% { transform: scale(1); }
}
@keyframes breathe {
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
@keyframes bloom {
  0% { opacity: .9; }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  100% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- the demo's status dot and "let a day pass" ---------- */

.dot {
  width: 10px; height: 10px; flex: none;
  background: var(--orange);
  transition: background-color 600ms ease;
}
[data-now="0"] .dot { background: var(--green); }
[data-now="2"] .dot { background: var(--brown); }

.pass {
  all: unset;
  position: absolute !important; right: 16px; bottom: 14px;
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 4px;
  color: #fff; font: 500 15px/1 var(--sans);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  text-shadow: 0 1px 6px rgba(20,17,13,.5);
  cursor: pointer;
}
.pass:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- the rest of the page ---------- */

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--cx);
}
section { margin-top: clamp(96px, 14vw, 168px); }
h2 {
  font-family: var(--serif);
  font-size: var(--t-h2);
  line-height: 1.05;
}
.lede--section { margin-top: 16px; }

.specimens {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(16px, 4vw, 56px);
  /* same image in all three, so top-aligning keeps the ground lines level
     even when one caption wraps to two lines */
  align-items: start;
}
.spec__art { position: relative; display: grid; place-items: center; padding: 18% 0 10%; }
.spec__art img { position: relative; z-index: 1; width: 58%; height: auto; display: block; }
.spec__art .nuj__glow { top: 50%; width: 100%; }
.specimen p { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 0; font-size: 15px; color: var(--fg-soft); line-height: 1.45; }
.specimen strong { display: block; font: 400 26px/1.1 var(--serif); color: var(--fg); margin-bottom: 4px; }
.note {
  margin-top: 40px; max-width: 34em;
  font-family: var(--serif); font-style: italic; font-size: var(--t-lede); line-height: 1.45; color: var(--fg-soft);
}

/* the real 1.2 screens, each in the same thin frame as the hero */
.shots {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(16px, 4vw, 56px);
}
.shots li { display: grid; gap: 16px; justify-items: start; }
.shots img {
  display: block; width: 100%; max-width: 300px; height: auto;
  border-radius: 28px;
  outline: 1px solid var(--line); outline-offset: 10px;
}
.shots p { font: italic 400 19px/1.35 var(--serif); color: var(--fg-soft); margin-top: 10px; }

.how, .private {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px;
}
.private p + p { margin-top: 1em; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 32px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font: 300 40px/1 var(--serif); color: var(--go);
}
.steps h3 { font: 400 28px/1.15 var(--serif); }
.steps p { margin-top: 6px; color: var(--fg-soft); }
.how__why { margin-top: 40px; font: italic 400 var(--t-lede)/1.45 var(--serif); color: var(--fg-soft); }
.how__body, .private > p { max-width: 36em; }
.private h2 { grid-row: span 2; }
.small { font-size: var(--t-small); }

/* the last screen: the current site's pastel glow, edge to edge, a whole screen tall */
.get-it {
  position: relative;
  margin: clamp(48px, 7vw, 96px) 0 0;
  min-height: calc(100vh + 40vh); min-height: calc(100svh + 40svh);
  display: grid; place-items: center;
  /* the top 40% is the fade; the words sit centred in the full screen below it */
  padding: 40svh var(--gx) calc(clamp(64px, 10vw, 120px) + env(safe-area-inset-bottom));
  color: #14110d;
  text-align: center;
  isolation: isolate;
}
/* no hard edges: the pastel rises out of the page over a tall soft fade, and settles back into it under the button */
.get-it::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(../img/site-glow-1600.webp) center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0, rgba(0,0,0,.04) 6%, rgba(0,0,0,.14) 12%, rgba(0,0,0,.32) 18%,
    rgba(0,0,0,.56) 24%, rgba(0,0,0,.8) 30%, rgba(0,0,0,.95) 36%, #000 42%,
    #000 100%);
          mask-image: linear-gradient(to bottom,
    transparent 0, rgba(0,0,0,.04) 6%, rgba(0,0,0,.14) 12%, rgba(0,0,0,.32) 18%,
    rgba(0,0,0,.56) 24%, rgba(0,0,0,.8) 30%, rgba(0,0,0,.95) 36%, #000 42%,
    #000 100%);
}
.get-it__frame { display: none; }
/* it fades in as you arrive: first the colour, then the icon, words and button */
@media (prefers-reduced-motion: no-preference) {
  .js .get-it::before { opacity: 0; transition: opacity 1400ms ease; }
  .js .get-it__inner > * { opacity: 0; transform: translateY(14px); transition: opacity 900ms ease, transform 1100ms var(--ease); }
  .js .get-it.is-in::before { opacity: 1; }
  .js .get-it.is-in .get-it__inner > * { opacity: 1; transform: none; }
  .js .get-it.is-in .get-it__inner > :nth-child(1) { transition-delay: 350ms; }
  .js .get-it.is-in .get-it__inner > :nth-child(2) { transition-delay: 500ms; }
  .js .get-it.is-in .get-it__inner > :nth-child(3) { transition-delay: 650ms; }
  .js .get-it.is-in .get-it__inner > :nth-child(4) { transition-delay: 750ms; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .js .get-it::before {
      transition: none;
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.get-it__inner { display: grid; justify-items: center; }
.get-it__icon { width: clamp(128px, 13vw, 168px); height: auto; aspect-ratio: 1; border-radius: 22.5%; display: block; margin-bottom: 28px; box-shadow: 0 10px 30px rgba(20,17,13,.18); }
.get-it h2 { color: #14110d; font-size: clamp(44px, 6vw, 72px); }
.get-it .get { margin-top: 32px; }
.get-it .aside { color: #3d3830; }
.get-it .aside a { color: #14110d; }

.credit {
  margin: clamp(96px, 12vw, 144px) 0 0;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--fg-mute);
  max-width: 40em;
}

/* ---------- the family footer ---------- */

.ar-family {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  max-width: var(--wrap); margin: 24px auto 0;
  padding: 40px var(--cx) calc(40px + env(safe-area-inset-bottom));
  font: italic 400 19px/1.3 var(--serif);
  color: var(--fg-soft);
}
.ar-family a {
  color: inherit; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: text-decoration-color 160ms ease;
  min-height: 44px; display: inline-flex; align-items: center;
}
.ar-family a:hover, .ar-family a:focus-visible { text-decoration-color: currentColor; }
.ar-family__me { gap: 10px; }
.ar-family__mark { color: var(--sky); flex: none; }

/* ---------- phone ---------- */

@media (max-width: 760px) {
  /* one big screen at a time, swipe for the next */
  .shots {
    display: flex; gap: 20px; margin-top: 40px;
    margin-left: calc(-1 * var(--cx)); margin-right: calc(-1 * var(--cx));
    padding: 10px var(--cx) 6px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--cx);
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { flex: 0 0 72%; min-width: 0; scroll-snap-align: start; }
  .shots img { width: 100%; max-width: none; border-radius: 26px; outline-offset: 6px; }
  .shots p { font-size: 18px; }
  .hero__scene { grid-column: 1; grid-row: 3; min-height: 470px; margin: 0 -1px -1px; padding: 70px 16px 68px; gap: 12px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "bar" "words" "plant";
    min-height: auto;
  }
  /* the link sits beside the icon, so the plant and its hint reach the first screen */
  .hero__bar { position: absolute; top: 0; right: 0; z-index: 3; padding: 20px var(--gx) 0 0; }
  .hero__words { grid-row: 1 / span 2; padding: 28px var(--gx) 28px; align-self: start; }
  .hero__icon { width: 96px; margin-bottom: 20px; }
  .lede { margin-top: 16px; }
  .get { margin-top: 24px; }
  .nuj { width: min(62vw, 250px); }
  .pass { right: 50%; transform: translateX(50%); bottom: 12px; }
  .how, .private { grid-template-columns: minmax(0, 1fr); }
  .private h2 { grid-row: auto; }
  .specimens { gap: 24px 12px; margin-top: 40px; }
  .specimen p { font-size: 14px; }
  .specimen strong { font-size: 22px; }
}

/* inline links still get a 44px tap height */
.small a, .aside a { display: inline-flex; align-items: center; min-height: 44px; }
.get-it .aside { margin-top: 8px; }
.private .small { margin-top: 8px; }
.hero .lede { text-wrap: balance; }

/* ---------- site port (2026-11-03) ---------- */
[hidden] { display: none !important; }
.get-it .aside { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }

/* ---------- inner pages (how-to, privacy) ---------- */
.top {
  position: relative;
  margin: var(--gf) var(--gf) 0;
  padding: 16px var(--gx) clamp(48px, 7vw, 88px) var(--in);
}
.top__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top__home {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--fg); text-decoration: none;
  font: 600 16px/1 var(--sans);
}
.top__home img { width: 36px; height: 36px; border-radius: 22.5%; display: block; }
.top__home:hover { text-decoration: underline; }
.top h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px);
  line-height: .98; letter-spacing: -0.02em; margin-left: -0.04em;
  margin-top: clamp(48px, 8vw, 104px);
}
.top .lede { margin-top: 20px; }
.policy__date { margin-top: 20px; color: var(--fg-soft); }

.doc { padding-bottom: 8px; }
.doc-sec {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px;
  margin-top: clamp(72px, 10vw, 128px);
}
.doc-sec h2 { font-size: clamp(34px, 4.4vw, 46px); }
.doc-sec__body { max-width: 34em; }
.doc-sec__body > p { font-size: 18px; }
.doc-sec__body > p + p { margin-top: .8em; }
.doc-shot { margin: 36px 0 0; }
.doc-shot img {
  display: block; width: min(100%, 260px); height: auto;
  border-radius: 26px; outline: 1px solid var(--line); outline-offset: 8px;
}
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 18px; }
.doc-list li { position: relative; padding-left: 26px; }
.doc-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; background: var(--go);
}
.specimens--small { margin-top: 0; gap: 24px clamp(12px, 3vw, 32px); }
.specimens--small .specimen strong { font-size: 24px; }

/* the policy: a single readable column */
.policy { max-width: 38em; margin-top: clamp(56px, 8vw, 96px); }
.policy h2 { font-size: clamp(30px, 3.6vw, 38px); margin-top: 56px; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { font: 600 17px/1.4 var(--sans); margin-top: 28px; }
.policy p { margin-top: 14px; }
.policy ul { margin: 12px 0 0; padding-left: 1.2em; }
.policy li { margin-top: 8px; }
.policy li::marker { color: var(--fg-mute); }
.page .ar-family { margin-top: clamp(64px, 9vw, 120px); }

/* a shorter version of the home page's ending */
.get-it--short {
  min-height: auto;
  padding: clamp(160px, 22vw, 260px) var(--gx) calc(clamp(72px, 10vw, 120px) + env(safe-area-inset-bottom));
}
.get-it--short::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.3) 18%, rgba(0,0,0,.75) 32%, #000 45%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.3) 18%, rgba(0,0,0,.75) 32%, #000 45%, #000 100%);
}

@media (max-width: 760px) {
  .doc-sec { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 12px var(--gx) 40px; }
  .top h1 { margin-top: 56px; }
}
/* "Let a day pass" sits on light sand at some widths: give it a soft dark backing so it always reads */
.pass {
  padding: 0 16px; border-radius: 999px;
  background: rgba(20, 17, 13, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  text-shadow: none;
}
.aside a { min-width: 44px; justify-content: center; }
.top .lede { text-wrap: balance; }

/* ---------- round 1 fixes (2026-11-03) ---------- */


/* the hint is a label, not a button: plain words, no pill */
.scene__hint {
  padding: 6px 0; border-radius: 0; background: none;
  color: #14110d;
  text-shadow: none;
}
.scene__hint.is-good { background: none; }
@media (prefers-color-scheme: dark) {
  .scene__hint { color: #fff; text-shadow: 0 0 10px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.7); }
}

/* step numbers in lining figures, level with their headings */
.steps li { grid-template-columns: 32px 1fr; }
.steps li::before { font: 500 22px/32px var(--sans); }

/* the screenshot bezels line up with the text edge */
.shots li { padding-left: 10px; }
.doc-shot { padding-left: 8px; }

/* the policy's lists match the how-to lists */
.policy ul { list-style: none; padding-left: 0; }
.policy li { position: relative; padding-left: 26px; }
.policy li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; background: var(--go);
}
.doc-list li, .policy li { text-wrap: pretty; }

/* the family line: one short centred line */
.ar-family {
  justify-content: center; align-items: center; gap: 0 10px;
  font: italic 400 16px/1.3 var(--serif);
  padding: 28px var(--cx) calc(28px + env(safe-area-inset-bottom));
}
.ar-family__dot { color: var(--fg-mute); }
/* phones have no hover: show a faint underline so the link reads as a link, like the other sites */
.ar-family a.ar-family__more { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ar-family a.ar-family__more:hover, .ar-family a.ar-family__more:focus-visible { text-decoration-color: currentColor; }

/* the last screen holds the footer, so the page ends in the colour */
.get-it {
  grid-template-rows: 1fr auto;
  padding-bottom: 0;
}
.get-it .ar-family {
  align-self: end; width: 100%; margin: 0;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  color: #3d3830;
}
.get-it .ar-family__dot { color: inherit; }
.get-it--short { padding-bottom: 0; }
.get-it--short .get-it__inner { padding-bottom: clamp(64px, 9vw, 112px); }

/* dark mode: dim the pastel so it fades into the dark page with no grey band */
@media (prefers-color-scheme: dark) {
  .get-it { color: var(--fg); }
  .get-it::before { filter: brightness(.38) saturate(1.35); }
  .get-it h2 { color: var(--fg); }
  .get-it .aside, .get-it .ar-family { color: var(--fg); }
  .get-it .aside a { color: var(--fg); }
  .get-it__icon { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
}

@media (max-width: 760px) {
  .shots li { padding-left: 6px; }
  .doc-shot img { width: 200px; }
  .ar-family { font-size: 15px; }
  /* the first screen shows the plant and how to use it, even with Safari's bars showing */
  .hero__words { padding: 20px var(--gx) 16px; }
  .hero .get { margin-top: 20px; }
  .hero__scene { min-height: 440px; padding-top: 64px; padding-bottom: 64px; justify-content: flex-start; }
  .scene__hint { order: -1; padding: 0; }
  .nuj { width: min(56vw, 230px); }
}

/* ---------- round 2 fixes (2026-11-03) ---------- */

/* desktop: "How to use it" sits beside the App Store button; phones keep it top right */
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 40px; }
.hero .hero__cta .get { margin-top: 0; }
@media (min-width: 761px) { .hero__bar { display: none; } }
@media (max-width: 760px) {
  .hero__how { display: none; }
  .hero__cta { margin-top: 20px; }
}

/* "Let time pass" sits centred under the plant at every width */
.pass { right: 50%; transform: translateX(50%); bottom: 24px; text-decoration: none; }
@media (min-width: 761px) { .hero__scene { padding-bottom: 92px; } }
@media (max-width: 760px) { .pass { bottom: 12px; } }

/* brown reads as brown on the light sand, not as the glow switched off */
.hero .nuj[data-state="2"] { --state: #6e4e2c; }

/* keyboard focus on the plant shows on light sand too */
.nuj:focus-visible { outline-color: #14110d; }
@media (prefers-color-scheme: dark) { .nuj:focus-visible { outline-color: #fff; } }

/* the pastel rises from the page colour, with no khaki band at its top edge */
.get-it::before {
  background: linear-gradient(to bottom, #fff 0, rgba(255,255,255,0) 30%), url(../img/site-glow-1600.webp) center 70% / cover no-repeat;
}
@media (prefers-color-scheme: dark) {
  .get-it::before {
    background: linear-gradient(to bottom, #342d22 0, rgba(52,45,34,0) 30%), url(../img/site-glow-1600.webp) center 70% / cover no-repeat;
  }
}

/* phones: a shorter fade, so the closing icon arrives sooner */
@media (max-width: 600px) {
  .get-it:not(.get-it--short) { padding-top: 24svh; min-height: calc(100svh + 24svh); }
  .get-it:not(.get-it--short)::before {
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0, rgba(0,0,0,.04) 4%, rgba(0,0,0,.14) 9%, rgba(0,0,0,.32) 14%,
      rgba(0,0,0,.56) 19%, rgba(0,0,0,.8) 24%, rgba(0,0,0,.95) 29%, #000 34%, #000 100%);
            mask-image: linear-gradient(to bottom,
      transparent 0, rgba(0,0,0,.04) 4%, rgba(0,0,0,.14) 9%, rgba(0,0,0,.32) 14%,
      rgba(0,0,0,.56) 19%, rgba(0,0,0,.8) 24%, rgba(0,0,0,.95) 29%, #000 34%, #000 100%);
  }
}

/* how-to screenshot: smaller on desktop, centred on phones */
.doc-shot img { width: 220px; }
@media (max-width: 760px) {
  .doc-shot { padding-left: 0; text-align: center; }
  .doc-shot img { width: 220px; margin-inline: auto; }
}

/* short phone screens (Safari bars showing): the plant, its label and the hold line fit the first screen */
@media (max-width: 760px) and (max-height: 720px) {
  .hero__icon { width: 84px; margin-bottom: 14px; }
  .hero__scene { min-height: 0; padding-top: 64px; padding-bottom: 60px; gap: 6px; }
  .nuj { width: min(46vw, 190px); }
}

/* the policy's email link gets a 44px tap height without changing the line */
.policy li a { display: inline-block; padding: 12px 0; margin: -12px 0; }
/* dark mode: the hint sits a little higher on the dark hillside on desktop; a firmer shadow keeps it readable */
@media (prefers-color-scheme: dark) {
  .scene__hint { text-shadow: 0 0 12px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.9); }
}
@media (prefers-color-scheme: dark) and (min-width: 761px) {
  /* a soft dark haze, no edge, so it still reads as words and not a button */
  .scene__hint, .scene__hint.is-good { padding: 10px 28px; background: radial-gradient(closest-side, rgba(20,17,13,.6), rgba(20,17,13,0)); }
}

/* ---------- round 3 fixes (2026-11-03) ---------- */

/* desktop: the two-line title gets room, so the j of Nuj clears the b of Habits */
@media (min-width: 761px) { .hero h1 { line-height: 1.06; } }

/* the privacy link sits right under its line, not floating below it */
.private .small { margin-top: 2px; }
.private .small a { min-height: 0; display: inline-block; padding: 12px 0; margin: -12px 0; }

/* dark mode: brown reads as warm brown on the dark green hills */
@media (prefers-color-scheme: dark) {
  .hero .nuj[data-state="2"] { --state: #a8743e; }
  /* the closing glow stays calm and close to the page colour */
  .get-it::before { filter: brightness(.34) saturate(.75); }
  /* step numbers in the brighter green the dark links use */
  .steps li::before { color: var(--sky); }
  .doc-shot img { filter: brightness(.92); }
}

/* how-to screenshot: the form only, big enough to read */
.doc-shot img, .doc-shot img[width] { width: 260px; height: auto; aspect-ratio: 643 / 640; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .doc-shot img { width: 260px; } }

/* desktop: hide the stepping of the small hillside picture */
@media (min-width: 761px) { .hero__dunes img { filter: blur(.6px); transform: scale(1.01); } }

/* very short phone screens (iPhone SE with Safari's bars): the hold line still fits */
@media (max-width: 600px) and (max-height: 600px) {
  .hero__words { padding-top: 12px; padding-bottom: 6px; }
  .hero__icon { width: 56px; margin-bottom: 8px; }
  .hero h1 { font-size: 54px; }
  .hero .lede { margin-top: 6px; font-size: 20px; }
  .hero__cta { margin-top: 12px; }
  .hero__scene { padding-top: 64px; padding-bottom: 54px; }
  .nuj { width: min(40vw, 150px); }
  .nuj__name { margin-top: 8px; font-size: 16px; }
  .nuj__ring { margin-top: 8px; }
}

/* privacy: one centred reading column, header included */
.page--policy .top h1, .page--policy .policy__date { max-width: 680px; margin-inline: auto; }
.page--policy .policy { max-width: 680px; margin-inline: auto; }
.page--policy .top { padding-right: var(--in); }
/* the 404 page: the header and a way home */
.lost { padding-top: clamp(24px, 4vw, 48px); }
.lost .get { margin-top: 0; }
