/* Public pages (landing and pricing). Loaded after styles.css, which supplies the tokens, buttons, icon tiles and the FAQ base.
   Look: warm paper, forest ink, mint / lavender / peach panels with ink outlines, heavy tight headings, pill buttons. */
.lp { background: var(--bg); overflow-x: clip; }
/* Full width: content always spans the screen, with side padding that grows with the viewport. */
.lp-wrap { width: 100%; max-width: none; margin: 0 auto; padding-inline: clamp(var(--gutter), 4vw, 96px); }
.lp .icon { flex: none; }
.lp-h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; max-width: 16ch; }
.lp-h2-sm { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); max-width: 12ch; }
.lp h3 { font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 800; }
.lp-sub { color: var(--muted); font-size: 1.125rem; line-height: 1.6; max-width: 60ch; margin-top: 16px; }
.lp-link { font-weight: 700; }
.lp .btn { text-decoration: none; }
.lp-big { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.lp-mark { display: inline-block; background: var(--lav); color: var(--ink); border-radius: 0.2em; padding: 0 0.16em 0.04em; transform: rotate(-1.2deg); }

/* header */
.lp-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top); }
.lp-top-row { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.04em; min-height: 44px; }
.lp-brand img { border-radius: 12px; box-shadow: 0 0 0 1.5px var(--ink); }
.lp-version { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.lp-nav { display: none; margin-left: auto; gap: 6px; }
.lp-nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.lp-nav a:hover { background: var(--surface-2); }
.lp-open { margin-left: auto; }
@media (min-width: 820px) { .lp-nav { display: flex; } .lp-open { margin-left: 8px; } }

/* hero */
.lp-hero { padding: 16px 0 24px; }
.lp-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lp-hero { padding: 28px 0 40px; } .lp-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 96px); } }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.lp-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-tag-lav { background: var(--lav); } .lp-tag-peach { background: var(--peach); } .lp-tag-mint { background: var(--mint); }
.lp h1 { font-size: clamp(2.75rem, 0.8rem + 5.6vw, 5.5rem); line-height: 0.94; letter-spacing: -0.05em; font-weight: 800; max-width: 6.3em; }
.lp-keep { display: block; width: fit-content; margin-top: 0.1em; padding: 0.04em 0.26em 0.14em 0.2em; background: var(--mint); color: var(--ink); border: 2px solid var(--ink); border-radius: 0.24em; transform: rotate(-1.4deg); transform-origin: 0 50%; }
.lp-lead { color: var(--muted); font-size: 1.125rem; line-height: 1.65; margin-top: 18px; max-width: 54ch; }
.lp-lead-strong { color: var(--text); font-weight: 700; font-size: 1.25rem; line-height: 1.4; margin-top: 32px; max-width: 34ch; }
.lp-lead-2 { margin-top: 18px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.lp-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.lp-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.lp-ticks .icon { color: var(--primary); }

/* the phone, with the badges that sit on it */
.lp-hero-shot { display: grid; justify-items: center; }
.lp-art { position: relative; width: min(100%, 470px); padding: 28px 8% 36px; isolation: isolate; }
.lp-art::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 52%; width: 104%; aspect-ratio: 1; translate: -50% -50%; background: var(--mint); border: 1.5px solid var(--ink); border-radius: 50%; }
.lp-art::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 44%; aspect-ratio: 1.15; background: var(--lav); border: 1.5px solid var(--ink); border-radius: 26px; transform: rotate(14deg); }
.phone { width: min(100%, 300px); margin-inline: auto; border: 3px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--surface); box-shadow: 8px 8px 0 var(--ink); }
.phone img { width: 100%; height: auto; display: block; }
.lp-art .phone { width: 82%; }
.sticker { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); font-size: 0.8125rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.sticker strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.sticker span { display: block; }
.sticker-device { left: -1%; top: 14%; transform: rotate(-6deg); }
.sticker-device .icon { width: 28px; height: 28px; padding: 5px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--mint); }
.sticker-trend { left: 0; bottom: 30%; background: var(--lav); display: block; transform: rotate(-5deg); }
.sticker-kcal { right: 0; bottom: 18%; background: var(--peach); display: block; transform: rotate(4deg); }
@media (max-width: 420px) { .sticker { padding: 7px 10px; font-size: 0.75rem; } .sticker strong { font-size: 1.0625rem; } }

/* the ribbon of promises */
.lp-ribbon-wrap { position: relative; padding: 36px 0 44px; overflow: hidden; }
.lp-ribbon { width: 104%; margin-left: -2%; transform: rotate(-1.2deg); background: var(--panel-dark); color: var(--mint); border-block: 1.5px solid var(--ink); padding-block: 20px; overflow: hidden; }
.lp-ribbon-track { display: flex; width: max-content; min-width: 100%; }
.lp-ribbon-list { display: flex; align-items: center; flex: none; gap: 0; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.03em; white-space: nowrap; }
.lp-ribbon-list li { padding-inline: clamp(14px, 2vw, 30px); }
.lp-star { font-size: 0.9em; color: var(--mint); }
.lp-ribbon-pause { display: none; }
/* without motion the ribbon is a still, centred, wrapping row (one copy) */
.lp-ribbon-track { width: 100%; justify-content: center; }
.lp-ribbon-list { flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 6px; }
.lp-ribbon-copy { display: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes lp-marquee { to { transform: translate3d(-50%, 0, 0); } }
  .lp-ribbon-track { width: max-content; justify-content: flex-start; animation: lp-marquee 36s linear infinite; }
  .lp-ribbon-list { flex-wrap: nowrap; white-space: nowrap; min-width: 100vw; justify-content: space-around; } /* each copy fills the screen, so the loop has no gap */
  .lp-ribbon-copy { display: flex; }
  .lp-ribbon-wrap.is-paused .lp-ribbon-track, .lp-ribbon:hover .lp-ribbon-track { animation-play-state: paused; }
  .lp-ribbon-pause { display: inline-flex; align-items: center; position: absolute; right: clamp(var(--gutter), 4vw, 96px); bottom: 6px; z-index: 2; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
  .lp-ribbon-pause[hidden] { display: none; }
  .lp-ribbon-pause:hover { background: var(--mint); }
}

/* sections and panels */
.lp-section { padding: clamp(40px, 6vw, 88px) 0; }
.lp-section-last { padding-bottom: clamp(56px, 7vw, 104px); }
.lp-panel { border: 1.5px solid var(--ink); border-radius: clamp(28px, 3.4vw, 44px); padding: clamp(28px, 5.5vw, 84px); }
.lp-panel-dark { background: var(--panel-dark); color: #f7f6f1; }
.lp-panel-green { background: var(--panel-green); color: #f7f6f1; }
.lp-panel-mint { background: var(--mint); }
.lp-panel-lav { background: var(--lav); }
/* pastel surfaces keep ink text in every theme, so the tokens below them are pinned */
.lp-pastel { color: var(--ink); --text: var(--ink); --muted: var(--ink-soft); --border: rgba(15, 42, 33, 0.35); --line: var(--ink); --surface: #fff; --surface-2: rgba(255, 255, 255, 0.6); --primary: var(--forest); }
.lp-pastel .lp-sub, .lp-pastel p { color: var(--ink-soft); }

/* privacy panel */
.lp-privacy { display: grid; gap: 32px; align-items: start; }
.lp-privacy-head { display: grid; gap: 28px; justify-items: start; align-content: start; min-width: 0; }
.lp-privacy h2 { font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4.25rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; color: #fff; }
.lp-mintword { color: var(--mint); }
.lp-privacy-body { display: grid; gap: 18px; justify-items: start; align-content: start; min-width: 0; padding-top: 8px; }
.lp-privacy-body > * { max-width: 62ch; }
.lp-privacy .lp-sub { color: #d3e0d7; margin-top: 0; font-size: 1.0625rem; }
.lp-strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; line-height: 1.4; }
.lp-privacy .lp-link { color: var(--mint); }
@media (min-width: 960px) { .lp-privacy { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px); } }

/* cards */
.lp-cards { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.lp-cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.lp-cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lp-card { display: flex; flex-direction: column; gap: 20px; background: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: 28px; padding: 26px; }
.lp-card.lp-pastel { border-color: var(--ink); }
.lp-card-mint { background: var(--mint); } .lp-card-lav { background: var(--lav); } .lp-card-peach { background: var(--peach); }
.lp-card-paper { background: #fff; border-color: var(--ink); gap: 14px; border-radius: 26px; }
.lp-cards .lp-card { min-height: 220px; justify-content: space-between; }
@media (min-width: 900px) { .lp-cards .lp-card { min-height: 300px; } }
.lp-card-text { display: grid; gap: 8px; }
.lp-card p { color: var(--muted); line-height: 1.55; }

.lp-note { color: var(--muted); font-size: 0.9375rem; max-width: 64ch; margin-top: 28px; line-height: 1.6; }

/* the two screens on a green panel */
.lp-shots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(32px, 7vw, 120px); margin-top: 28px; overflow: hidden; }
.lp-shot { display: grid; gap: 22px; justify-items: center; width: min(100%, 290px); }
.lp-shot .phone { width: 100%; box-shadow: 9px 9px 0 var(--ink); }
.lp-shot-a .phone { transform: rotate(-3deg); }
.lp-shot-b .phone { transform: rotate(3deg); }
.lp-shot-b { margin-top: clamp(0px, 4vw, 48px); }
.lp-cap { display: inline-block; background: var(--mint); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 700; text-align: center; }
.lp-cap-lav { background: var(--lav); }

/* install */
.lp-install { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.lp-install .lp-card { min-height: 0; justify-content: flex-start; }
.lp-install ol { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; color: var(--ink); }
.lp-install li::marker { color: var(--ink); }
.lp-os { display: inline-block; width: fit-content; background: var(--ink); color: #f7f6f1; border-radius: 999px; padding: 3px 14px; font-size: 0.8125rem; font-weight: 700; }
.lp-panel-mint .lp-h2 { max-width: 14ch; }

/* FAQ */
.lp-faq-wrap { display: grid; gap: 32px; align-items: start; }
.lp-faq-head { display: grid; gap: 18px; align-content: start; }
.lp-more { color: var(--muted); }
.lp .faq { gap: 0; border-bottom: 1.5px solid var(--line); }
.lp .faq-item { border-top: 1.5px solid var(--line); padding: 0; }
.lp .faq-item:first-child { border-top: 1.5px solid var(--line); }
.lp .faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px 4px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.lp .faq-item summary::-webkit-details-marker { display: none; }
.lp .faq-item summary::after { content: "+"; content: "+" / ""; flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; font-size: 1.375rem; font-weight: 500; line-height: 1; transition: background-color 0.15s, rotate 0.25s; }
.lp .faq-item[open] summary::after { content: "−"; content: "−" / ""; background: var(--mint); color: var(--ink); border-color: var(--ink); }
.lp .faq-item summary:hover::after { background: var(--surface-2); }
.lp .faq-item p { color: var(--muted); padding: 0 56px 22px 4px; line-height: 1.65; max-width: 70ch; }
@media (min-width: 960px) { .lp-faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: clamp(40px, 7vw, 140px); } .lp-faq-head { position: sticky; top: 100px; } }

/* closing call to action */
.lp-final { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 4px; padding-block: clamp(56px, 8vw, 120px); isolation: isolate; }
.lp-final .lp-h2 { max-width: 14ch; margin-inline: auto; }
.lp-final .lp-sub { margin-inline: auto; margin-bottom: 26px; max-width: 46ch; }
.lp-final::before { content: ""; position: absolute; z-index: -1; left: -4%; top: -14%; width: clamp(110px, 16vw, 240px); aspect-ratio: 1; background: var(--mint); border: 1.5px solid var(--ink); border-radius: 50%; }
.lp-final::after { content: ""; position: absolute; z-index: -1; right: -3%; bottom: -12%; width: clamp(100px, 14vw, 210px); aspect-ratio: 1; background: var(--peach); border: 1.5px solid var(--ink); border-radius: 30%; transform: rotate(14deg); }

/* footer */
.lp-foot { background: var(--panel-dark); color: #b9cbc0; padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 0.9375rem; }
.lp-foot .lp-wrap { display: grid; gap: 6px; }
.lp-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 32px; margin-bottom: 14px; }
.lp-foot-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.04em; }
.lp-foot-brand img { border-radius: 11px; box-shadow: 0 0 0 1.5px var(--mint); }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.lp-foot a { color: #f7f6f1; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lp-foot a:hover { text-decoration: underline; }
.lp-foot :focus-visible { outline-color: #fff; }

/* scroll animation. Everything is visible by default. Hiding only happens under html.reveal, which js/reveal-init.js adds when
   the browser supports it AND the visitor has not asked for reduced motion; landing.js then reveals each item as it scrolls in. */
.lp-section, .lp-hero { scroll-margin-top: 84px; }
.lp-top { transition: box-shadow 0.25s ease; }
.lp-top.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 10px 26px -18px rgba(15, 42, 33, 0.45); }
.lp-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40; background: var(--primary); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
.lp-nav a[aria-current="true"] { background: var(--mint); color: var(--ink); }

.reveal [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms), translate 0.25s ease, box-shadow 0.25s ease;
  will-change: opacity, transform;
}
.reveal [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
@media print { .reveal [data-reveal] { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* hero entrance on load (pure CSS, so there is no flash) */
  @keyframes lp-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
  @keyframes lp-pop { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.95); } to { opacity: 1; transform: none; } }
  @keyframes lp-stick { from { opacity: 0; scale: 0.7; } to { opacity: 1; scale: 1; } }
  .lp-hero-copy > * { animation: lp-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .lp-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .lp-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .lp-hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .lp-hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .lp-hero-copy > :nth-child(6) { animation-delay: 0.4s; }
  .lp-art .phone { animation: lp-pop 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .sticker { animation: lp-stick 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .sticker-device { animation-delay: 0.7s; } .sticker-trend { animation-delay: 0.85s; } .sticker-kcal { animation-delay: 1s; }
  .lp-hero-shot { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .lp-card { transition: translate 0.25s ease, box-shadow 0.25s ease; }
  .lp-card:hover { translate: 0 -6px; box-shadow: 0 6px 0 var(--ink); }
}

/* pricing page */
.lp-price-hero { padding-bottom: 8px; }
.lp-eyebrow { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--lav); color: var(--ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.lp-price-hero h1 { max-width: 12em; font-size: clamp(2.5rem, 0.9rem + 5vw, 5rem); }
.lp-soon { margin-top: 26px; max-width: 70ch; }
.lp-soon p { margin: 0; }
.lp-plan-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; margin-top: 36px; }
.lp-plan { gap: 12px; justify-content: flex-start !important; min-height: 0 !important; }
.lp-plan .bullets { color: var(--text); }
.lp-plan .btn { margin-top: 8px; align-self: flex-start; }
.lp-price { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--text); }
.lp-price-unit { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.lp-price-later { font-size: 1.875rem; color: var(--muted); }
.lp-plan-note { color: var(--muted); font-weight: 700; }
.lp-plan-sub { font-weight: 700; }
.lp-plan-soon { color: var(--muted); font-weight: 600; }
.lp-plan-featured { background: var(--mint); box-shadow: 6px 6px 0 var(--ink); }
.lp-plan-later { background: var(--lav); }
.lp-table-wrap { margin-top: 28px; border: 1.5px solid var(--line); border-radius: 24px; background: var(--surface); padding: 6px 14px; }
.lp-compare th[scope="row"] { font-weight: 600; min-width: 220px; }
.lp-compare td { text-align: center; font-weight: 800; }
.lp-compare thead th:not(:first-child) { text-align: center; }

/* refinements */
.lp-pastel .lp-os { color: #f7f6f1; }
.lp-cards-3 .lp-card { min-height: 0; justify-content: flex-start; gap: 28px; }
.lp-strong, .lp-card p { text-wrap: pretty; }

@media (max-width: 480px) {
  .lp-top-row { gap: 8px; min-height: 68px; }
  .lp-brand { gap: 8px; font-size: 1.125rem; white-space: nowrap; }
  .lp-brand img { width: 34px; height: 34px; border-radius: 10px; }
  .lp-version { font-size: 0.6875rem; padding: 0 7px; }
  .lp-open { padding-inline: 14px; min-height: 42px; font-size: 0.9375rem; white-space: nowrap; }
}
@media (max-width: 400px) { .lp-brand { font-size: 1.0625rem; } .lp-open { padding-inline: 12px; } }
@media (max-width: 345px) { .lp-version { display: none; } }
