/* The signed-out page, below its first screen (hn-landing-preview): the Home pinned while you scroll, the plans,
   and the last sign-up call. Loaded by templates/web/landing/landing.html only, after landing.css, so the
   sign-in and auth pages are untouched. Colours come from landing.css (--bg --ink --muted --brand).
   Sizes are rem so a big monitor scales up a little. */
html { scroll-behavior: smooth; }
@media (min-width: 1800px) { html { font-size: 17px; } }
@media (min-width: 2300px) { html { font-size: 19.5px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root { --card:#FFFBF5; --card2:#F0E5D6; --edge:rgba(42,33,28,.10); --shadow:0 22px 44px -26px rgba(42,33,28,.45);
  --atext:#B54420; --bink:#140D08; }
:root[data-theme="dark"] { --card:#2A221D; --card2:#3A2F28; --edge:rgba(245,235,221,.12); --shadow:0 22px 44px -26px #000; --atext:#F29268; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --card:#2A221D; --card2:#3A2F28; --edge:rgba(245,235,221,.12); --shadow:0 22px 44px -26px #000; --atext:#F29268; }
}

.pv, .pv *, .pv *::before, .pv *::after { box-sizing: border-box; }
.pv h2, .pv p, .pv ul { margin: 0; padding: 0; }
.pv ul { list-style: none; }
.pv button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.pv a { color: inherit; }
.pv :focus-visible, .cue:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pv .wrap { width: min(100% - 32px, 82rem); margin-inline: auto; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--atext); }

/* the one addition to the first screen: a round scroll cue, an icon and no words */
.cue { position: absolute; z-index: 6; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--edge); text-decoration: none;
  animation: pv-nudge 2.6s ease-in-out infinite; }
.cue:hover { background: var(--card); }
@keyframes pv-nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
@media (prefers-reduced-motion: reduce) { .cue { animation: none; } }

.ib { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--card2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* the Home, pinned in the page and changing as you scroll. The frame is the Home picture (home_demo.html), clickable. */
.pin { position: relative; }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; gap: .8rem; padding: 1rem 0; z-index: 1; }
.pin-hd { display: flex; align-items: center; gap: 1rem; flex: none; }
.pin-ic { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--brand); color: var(--bink); display: flex; align-items: center; justify-content: center; flex: none; }
.pin-t h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.pin-t p { color: var(--ink); opacity: .85; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.pin-dots { margin-left: auto; display: flex; gap: .3rem; }
.dot { background: transparent; color: var(--muted); }
.dot:hover { background: var(--card2); color: var(--ink); }
.dot.on { background: var(--brand); color: var(--bink); }
.pin-frame { position: relative; flex: 1; min-height: 0; width: min(100%, calc((100svh - 7.5rem) * 16 / 9)); margin-inline: auto; border-radius: 1.4rem; overflow: hidden; border: 1px solid var(--edge); box-shadow: var(--shadow); background: var(--card); }
.pin-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--card); }
.pin-steps { margin-top: -100vh; margin-top: -100svh; position: relative; z-index: 0; pointer-events: none; }
.pin-step { height: 80vh; height: 80svh; }
@media (min-width: 761px) { .pin-frame { flex: none; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - 7.5rem) * 16 / 9)); } }
@media (max-width: 760px) {
  .pin-stage { gap: .5rem; padding: .6rem 0; }
  .pin-hd { flex-wrap: wrap; gap: .5rem .7rem; }
  .pin-ic { width: 2.75rem; height: 2.75rem; }
  .pin-t { flex: 1; min-width: 0; }
  .pin-t h2 { font-size: 1.3rem; }
  .pin-t p { font-size: .95rem; }
  .pin-dots { margin: 0; width: 100%; justify-content: space-between; gap: 0; }
  .pin-frame { width: 100%; border-radius: 1.1rem; }
}

/* the plans: Premium first, no prices */
.plans { padding: 3rem 0 2rem; display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.plan-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; width: 100%; max-width: 64rem; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--edge); border-radius: 1.5rem; padding: 1.3rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); }
.plan b { font-size: 1.5rem; letter-spacing: -.02em; }
.plan-l { color: var(--muted); font-size: 1rem; }
.plan-ic { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; color: var(--atext); }
.plan.top { border: 2px solid var(--brand); }
.plan.top .plan-ic { background: var(--brand); color: var(--bink); }
@media (max-width: 760px) { .plan-row { grid-template-columns: 1fr; } }

/* the last sign-up call */
.end { padding: clamp(64px, 12vh, 140px) 16px clamp(48px, 8vh, 96px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.end::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238,90,42,.22), transparent); }
.end-in { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.end-ic { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--brand); color: var(--bink); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(238,90,42,.7); }
.end h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.end .signin { display: inline-flex; align-items: center; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 38px; height: 54px; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 8px 24px -8px rgba(238,90,42,.6); margin-top: .4rem; }
.end .signin:hover { filter: brightness(1.06); }
.end-sec { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.end .invite { font-size: 14px; color: var(--muted); max-width: 32ch; }
.end .legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 1.2rem; font-size: 13px; }
.end .legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 32px; }
