/* plannedrep.com signed out: the front page, On your own and For trainers (#42). Shaped as entertainhq.com's site
   is (the board's rule: one page of sections as screens, a glide and a fade; the iPhone and the browser window copied
   whole from its hero, by way of NeatlyWed's site/assets/site.css), in the app's own dark and sand.

   Every color is the app's own token (static/css/app.css): dark is neutral near-black, never blue, one accent, no
   stripes, no gradients. Dark only, as the app opens. Built at 375 first, then 860 and 1100. */
@font-face { font-family: Inter; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(../fonts/space-grotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --bg: #111111;
  --card: #1b1b1b;
  --card2: #262626;
  --well: #141414;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .2);
  --ink: #f4f4f5;
  --dim: #a8a8ad;
  --acc: #e2d3b8;        /* sand: the one accent */
  --acc-h: #efe4d0;
  --acc-on: #1c1811;
  --shadow: rgba(0, 0, 0, .55);
  /* The iPhone and the window, as entertainhq.com's hero draws them. */
  --device: #0A0A0B;
  --device-edge: #5B5C61;
  --device-line: #2A2B2E;
  --island: #000000;
  --phone-bar: #111111;  /* the app's own status bar, dark */
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bar: 60px;
  --max: 1520px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--acc); text-decoration: none; }
a, button, label { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.accent { color: var(--acc); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 860px) { .wrap { padding: 0 36px; } }
@media (min-width: 1100px) { .wrap { padding: 0 44px; } }
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.wordmark { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 500; letter-spacing: -.01em; }
.wordmark b { font-weight: 700; }

/* Buttons: the app's, a fill or a border, 48 tall. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .18s ease; }
.btn-fill { background: var(--acc); color: var(--acc-on); }
.btn-fill:hover { background: var(--acc-h); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-line:hover { background: var(--card2); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .btn:active { transform: none; } }
.btn:focus-visible, .nav-links a:focus-visible, .logo:focus-visible, .foot a:focus-visible, .more:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; }

/* The bar. On a phone it is fixed and solid, never sticky and never glass (the house rule "A pinned bar on a phone is
   fixed, not sticky"). */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--bar) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); background: var(--bg); transition: box-shadow .3s ease; }
.nav.scrolled, .nav.open { box-shadow: 0 1px 0 var(--line); }
body { padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px)); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 23px; line-height: 1; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--dim); transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1.5px; border-radius: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links .btn { padding: 9px 16px; min-height: 44px; }
.nav-links .btn-line { color: var(--ink); }
.nav-links .btn-fill { color: var(--acc-on); }
.nav-links .btn::after { display: none; }
.nav-links .btns { display: flex; gap: 10px; }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-end .bar-in { display: none; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; }
.menu-btn .bar-line { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-btn .bar-line + .bar-line { margin-top: 5px; }

@media (max-width: 859px) {
  .menu-btn { display: inline-flex; }
  .nav-end .bar-in { display: inline-flex; min-height: 40px; padding: 0 14px; font-size: 15px; }
  .nav.open .nav-end .bar-in { visibility: hidden; }
  /* The open menu is a sheet over the page: the links at the top, Sign in and Create account side by side at its foot. */
  .nav-links { position: fixed; left: 0; right: 0; top: calc(var(--bar) + env(safe-area-inset-top, 0px)); bottom: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s ease, transform .3s ease, visibility 0s; }
  .nav-links > a { display: flex; justify-content: flex-start; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--ink); }
  .nav-links a::after { display: none; }
  .nav-links > a[aria-current] { color: var(--acc); font-weight: 600; }
  .nav-links .btns { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; }
  .nav-links .btns:has(> :only-child) { grid-template-columns: 1fr; }
  .nav-links .btn { min-height: 48px; font-size: 16px; }
  html:has(.nav.open) { overflow: hidden; }
  .menu-btn .bar-line { transition: transform .26s cubic-bezier(.2, .7, .2, 1), opacity .16s ease; }
  .nav.open .menu-btn .bar-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn .bar-line:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn .bar-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 359px) { .logo { font-size: 20px; gap: 8px; } .logo img { width: 26px; height: 26px; } .nav-end .bar-in { padding: 0 11px; } }
@media (min-width: 860px) {
  :root { --bar: 76px; }
  .logo { font-size: 27px; gap: 12px; }
  .logo img { width: 38px; height: 38px; }
}

/* Sections. From 860 each is a screen of its own under the bar, so the next one is below the fold and fades in when
   it is reached. */
section { padding: 28px 0 44px; }
@media (min-width: 860px) {
  section { padding: 64px 0 88px; }
  main > section.page { min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; }
}
.sec-head { max-width: 760px; margin: 0 0 30px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 50px); text-wrap: balance; }
.sec-head p { margin-top: 14px; font-size: 18px; color: var(--dim); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }

/* The opening screen. */
.hero { padding-top: 28px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 10.5vw, 76px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero h1 .accent { display: block; }
.lede { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--dim); max-width: 34em; }
.hero .btn-pair { margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--dim); }
@media (max-width: 599px) { .hero .btn-pair, .start .btn-pair { display: grid; grid-template-columns: 1fr 1fr; } .hero .btn-pair .btn, .start .btn-pair .btn { padding: 11px 12px; } }
@media (min-width: 901px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .hero h1 { font-size: clamp(46px, 4.6vw, 70px); }
}

/* The devices, copied whole from entertainhq.com's hero (the house rule "A phone on a marketing page is a real
   iPhone, copied from EntertainHQ's hero"): the app in a browser window, and the iPhone over its lower right corner,
   its frame, Dynamic Island and 9:41 bar drawn here over the top 62 of the screen's 874 points. The pictures are the
   real app on a made-up person (tools/site_shots.py). In a hero they turn together every four seconds. */
.window { position: relative; background: var(--bg); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 60px -30px var(--shadow); overflow: hidden; font-size: .84rem; }
.window .chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.window .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--card2); }
.window .chrome .url { margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; color: var(--dim); font-size: .75rem; line-height: 1.3; }
.window .body { display: grid; }
.window .body > .shot { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.window .body > .shot.on { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.window img { display: block; width: 100%; height: auto; }
.devices { position: relative; padding-bottom: 64px; }
.devices .window { margin-right: 12%; }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; min-width: 132px; max-width: 230px; container-type: inline-size; }
.phone-screen { --bezel: 2.6cqw; --band: max(1px, .8cqw); position: relative; display: grid; aspect-ratio: 1206 / 2622; margin: var(--bezel);
  border-radius: 14.6cqw; overflow: hidden; background: var(--phone-bar); container-type: inline-size;
  box-shadow: 0 0 0 calc(var(--bezel) - var(--band)) var(--device), 0 0 0 var(--bezel) var(--device-edge), 0 0 0 calc(var(--bezel) + .5px) var(--device-line),
    0 40px 70px calc(var(--bezel) - 28px) var(--shadow); }
.phone-screen > .pshot { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.phone-screen > .pshot.on { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.phone-screen img { display: block; width: 100%; height: auto; }
.phone-bar { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 7.1%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 14%; background: var(--phone-bar); color: var(--ink); font-family: var(--sans); font-size: .62rem; font-size: 4.2cqw; font-weight: 700;
  letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.phone-bar .island { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 31%; height: 58%; border-radius: 999px; background: var(--island); }
.phone-bar .phone-icons { width: 15%; width: 19.4cqw; height: auto; }
@media (prefers-reduced-motion: reduce) { .window .body > .shot, .phone-screen > .pshot { transition: none; } }
/* On a phone the picture is the phone alone: the desktop window shrunk to a phone's width is unreadable. */
@media (max-width: 600px) {
  .devices { padding-bottom: 0; }
  .devices .window { display: none; }
  .phone { position: relative; right: auto; bottom: auto; width: 68%; max-width: 270px; margin: 0 auto; }
}

/* A feature: words on one side, the app on the other. On a phone the words come first. */
.feature { display: grid; gap: 30px; align-items: center; }
.feature h2 { font-size: clamp(30px, 6.2vw, 46px); text-wrap: balance; }
.feature .body { margin-top: 14px; font-size: 18px; color: var(--dim); }
@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature.flip .words { order: 2; }
}
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 18px; font-weight: 600; color: var(--acc); }
.more .ic { width: 18px; height: 18px; transition: transform .2s ease; }
@media (hover: hover) { .more:hover .ic { transform: translateX(3px); } }

/* The way in, at the foot of each page. */
.start { text-align: center; }
.start .mk { display: block; width: 64px; height: 64px; margin: 0 auto 22px; }
.start h2 { font-size: clamp(32px, 5vw, 50px); text-wrap: balance; }
.start p { text-wrap: balance; margin: 14px auto 0; font-size: 18px; color: var(--dim); max-width: 46ch; }
.start .btn-pair { margin-top: 28px; justify-content: center; }
@media (min-width: 600px) { .start .btn-pair .btn { min-width: 180px; } }

/* The foot of every page. */
.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--dim); }
.foot .wrap { display: grid; gap: 16px; }
.foot .logo { font-size: 21px; }
.foot .logo img { width: 26px; height: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 10px; margin-left: -6px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 6px; color: var(--ink); }
.foot-links a:hover { color: var(--acc); }
@media (min-width: 1000px) { .foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; } .foot-links { justify-content: center; } }

/* Motion, borrowed from entertainhq.com: sections fade and lift in as they are reached and settle back as they are
   left; cards rise once with a small stagger. Only once site.js has put js-ready on <html>, so without the script the
   page is whole. The stagger rides on --rise-delay, never transition-delay, which would hold up hover too. */
.js-ready main > section > .wrap { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1); }
.js-ready main > section.is-visible > .wrap { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--rise-delay, 0s), transform .6s ease var(--rise-delay, 0s); }
.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready main > section > .wrap, .js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
