/* The public homepage (core/templates/core/home.html). Design: docs/design/homepage/Main.dc.html, themed with the
   Gyanwave design system: League Spartan (display, uppercase), Lora (body), a monospace for clocks and numbers.
   Fonts are self-hosted (SIL OFL 1.1, licences in ./fonts). Every class is prefixed hp- so it never meets the
   app's own CSS or scripts/build_css.py's utility scan. */

@font-face { font-family: "League Spartan"; src: url("fonts/LeagueSpartan-VF.f29fcc807045.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-VF.e71368f22122.ttf") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --hp-red: #D9292D; --hp-red-dark: #B81F23; --hp-red-on-ink: #EF5350; --hp-ink: #000000; --hp-white: #FFFFFF;
  --hp-ivory: #FBF9F4; --hp-text: #374151; --hp-muted: #6B7280; --hp-line: #E5E7EB; --hp-pink: #FDF2F2;
  --hp-pink-2: #F9E0E1; --hp-display: "League Spartan", "Arial Narrow", Arial, sans-serif;
  --hp-serif: Lora, Georgia, "Times New Roman", serif;
  --hp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.hp { margin: 0; background: var(--hp-white); color: var(--hp-ink); font-family: var(--hp-serif);
  font-size: 16px; line-height: 1.5; overflow-x: hidden; }
.hp img { max-width: 100%; display: block; }
.hp a { color: var(--hp-ink); text-decoration: none; }
.hp a:hover { color: var(--hp-red); text-decoration: underline; }
.hp :focus-visible { outline: 3px solid var(--hp-red); outline-offset: 3px; }
.hp ul, .hp ol { margin: 0; padding: 0; list-style: none; }
.hp :where(input, textarea, select, button) { font: inherit; }
[id] { scroll-margin-top: 96px; }

.hp-skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--hp-ink); color: var(--hp-white) !important;
  padding: 10px 16px; border-radius: 4px; }
.hp-skip:focus { top: 12px; }
.hp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0; }

.hp-wrap { max-width: 1440px; margin: 0 auto; padding: 0 120px; }
.hp-sp { font-family: var(--hp-display); text-transform: uppercase; }
.hp-mono { font-family: var(--hp-mono); }
.hp-red { color: var(--hp-red); }
.hp-white { color: var(--hp-white) !important; }
.hp-muted { color: var(--hp-muted) !important; }
.hp-stack { display: flex; flex-direction: column; }
.hp-gap-8 { gap: 8px; } .hp-gap-16 { gap: 16px; } .hp-gap-24 { gap: 24px; } .hp-gap-40 { gap: 40px; } .hp-gap-64 { gap: 64px; }
.hp-max-720 { max-width: 720px; } .hp-max-760 { max-width: 760px; } .hp-max-860 { max-width: 860px; }
.hp-max-900 { max-width: 900px; }
.hp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.hp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-center { align-items: center; } .hp-start { align-items: start; }

/* Buttons */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  border-radius: 4px; font-family: var(--hp-display); font-weight: 600; font-size: 16px; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; text-align: center; line-height: 1.1; }
.hp a.hp-btn:hover { text-decoration: none; }
.hp-btn-red, .hp a.hp-btn-red { background: var(--hp-red); color: var(--hp-white); border: 0; }
.hp-btn-red:hover, .hp a.hp-btn-red:hover { background: var(--hp-red-dark); color: var(--hp-white); }
.hp-btn-sec, .hp a.hp-btn-sec { background: var(--hp-white); color: var(--hp-ink); border: 1px solid var(--hp-ink); }
.hp-btn-sec:hover, .hp a.hp-btn-sec:hover { background: var(--hp-ink); color: var(--hp-white); }
.hp-btn-ink { background: var(--hp-ink); color: var(--hp-white); border: 0; }
.hp-btn-ink:hover { background: #262626; }
.hp-btn-sm { min-height: 44px; padding: 0 24px; font-size: 14px; }
.hp-btn-xs { min-height: 44px; padding: 0 20px; font-size: 13px; }
.hp-btn-full { width: 100%; }

/* Header */
.hp-header { position: sticky; top: 0; z-index: 20; background: var(--hp-white); border-bottom: 1px solid var(--hp-line); }
.hp-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.hp-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hp a.hp-logo:hover { text-decoration: none; color: var(--hp-ink); }
.hp-wordmark { font-family: var(--hp-display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; line-height: 1;
  white-space: nowrap; }
.hp-navlinks { display: flex; gap: 40px; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.hp-header-actions { display: flex; gap: 8px; align-items: center; }
.hp-login { font-size: 14px; font-weight: 600; letter-spacing: .06em; padding: 14px 16px; }
.hp-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  background: var(--hp-white); color: var(--hp-ink); border: 1px solid var(--hp-line); border-radius: 4px; cursor: pointer; }
.hp-menu { display: flex; flex-direction: column; border-top: 1px solid var(--hp-line); padding: 8px 24px 16px;
  font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.hp-menu[hidden] { display: none; }
.hp-menu a { padding: 12px 0; border-bottom: 1px solid var(--hp-line); }
.hp-env-banner { background: #FEF3C7; color: #78350F; text-align: center; font-size: 13px; padding: 4px 16px; }

/* Sections */
.hp-section { padding: 96px 0; }
.hp-section-lg { padding: 120px 0; }
.hp-ivory { background: var(--hp-ivory); }
.hp-ink { background: var(--hp-ink); color: var(--hp-white); }
.hp-redbg { background: var(--hp-red); color: var(--hp-white); }
.hp-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--hp-red); }
.hp-h1 { margin: 0; font-weight: 800; font-size: 72px; line-height: .98; letter-spacing: -.01em; }
.hp-h2 { margin: 0; font-weight: 700; font-size: 52px; line-height: 1.02; }
.hp-h2-xl { font-weight: 800; font-size: 56px; line-height: 1; color: var(--hp-white); }
.hp-h2-md { font-weight: 800; font-size: 44px; }
.hp-h2-faq { font-size: 48px; }
.hp-lead { margin: 0; font-size: 19px; line-height: 1.65; color: var(--hp-text); max-width: 540px; }
.hp-redbg .hp-lead { max-width: none; line-height: 1.7; }
.hp-body { margin: 0; font-size: 18px; line-height: 1.7; color: var(--hp-text); }
.hp-aside { margin: 0; max-width: 400px; font-size: 17px; line-height: 1.7; color: var(--hp-muted); }
.hp-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hp-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.hp-actions-sm { gap: 12px; padding-top: 0; }
.hp-note { margin: 0; font-size: 14px; color: var(--hp-muted); }

/* Hero */
.hp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hp-chips { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--hp-muted); padding-top: 8px; }
.hp-mock { margin: 0; border: 1px solid var(--hp-ink); border-radius: 12px; background: var(--hp-ink); overflow: hidden;
  color: var(--hp-white); min-width: 0; }
.hp-mock-bar, .hp-mock-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; }
.hp-mock-bar { border-bottom: 1px solid #262626; }
.hp-mock-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.hp-mock-clock { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--hp-red); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.hp-mock-screen { position: relative; aspect-ratio: 16 / 9; margin: 24px 24px 16px; border-radius: 8px; background: #1F1F1F;
  overflow: hidden; }
.hp-mock-screen img { width: 100%; height: 100%; object-fit: cover; }
.hp-mock-tag { position: absolute; left: 16px; bottom: 16px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 10px; border-radius: 4px; background: var(--hp-white); color: var(--hp-ink); }
.hp-mock-prompt { margin: 0 24px; padding: 16px; border: 1px solid #333333; border-radius: 8px; font-size: 15px;
  color: #E5E7EB; line-height: 1.55; }
.hp-mock-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 24px; }
.hp-mock-thumbs span { aspect-ratio: 16 / 10; border-radius: 4px; background: #2A2A2A center / cover no-repeat; opacity: .75; }
.hp-mock-thumbs span.hp-on { border: 2px solid var(--hp-red); opacity: 1; }
.hp-mock-foot { border-top: 1px solid #262626; font-size: 14px; color: #D1D5DB; }
.hp-mock-foot strong { color: var(--hp-white); }
.hp-mock-gen { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--hp-white); }

/* Comparison table */
.hp-cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hp-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hp-ink);
  border-radius: 8px; overflow: hidden; background: var(--hp-white); font-size: 16px; table-layout: fixed; }
.hp-table th, .hp-table td { padding: 20px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--hp-line);
  font-weight: 400; }
.hp-table thead td, .hp-table thead th { background: var(--hp-ink); color: var(--hp-white); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; border-top: 0; }
.hp-table thead th.hp-us { background: var(--hp-red); font-weight: 800; }
.hp-table tbody th { font-weight: 600; }
.hp-table tbody td { color: var(--hp-muted); }
.hp-table tbody td.hp-us { background: var(--hp-pink); color: var(--hp-ink); font-weight: 600; }

/* Feature cards */
.hp-card { border: 1px solid var(--hp-line); border-radius: 8px; background: var(--hp-white); }
.hp-feature { padding: 40px; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s; }
.hp-feature:hover { border-color: var(--hp-ink); }
.hp-feature h3 { margin: 0; font-size: 22px; font-weight: 600; }
.hp-feature p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--hp-muted); }

/* How it works */
.hp-step { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid #4B5563; }
.hp-step.hp-step-on { border-top-color: var(--hp-red); }
.hp-step .hp-mono { font-size: 14px; color: #9CA3AF; }
.hp-step.hp-step-on .hp-mono { color: var(--hp-red-on-ink); }
.hp-step h3 { margin: 0; font-size: 24px; font-weight: 600; color: var(--hp-white); }
.hp-step p { margin: 0; font-size: 17px; line-height: 1.7; color: #D1D5DB; }

/* Showcase */
.hp-tile { position: relative; border-radius: 8px; background: #F4F5F7; border: 1px solid var(--hp-line); overflow: hidden; }
.hp-tile img, .hp-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.hp-tall { grid-row: span 2; min-height: 320px; }
.hp-square { aspect-ratio: 1 / 1; }
.hp-tile-tag { position: absolute; left: 16px; bottom: 16px; right: 16px; width: max-content; max-width: calc(100% - 32px);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 6px 10px; border-radius: 4px; background: var(--hp-white);
  color: var(--hp-ink); }
.hp-tile-tag-dark { background: var(--hp-red); color: var(--hp-white); }

/* Pricing */
.hp-price-card { border-radius: 12px; padding: 40px; background: var(--hp-white); color: var(--hp-ink); display: flex;
  flex-direction: column; gap: 24px; }
.hp-price-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hp-price-name { font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.hp-badge { font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px;
  background: var(--hp-pink-2); color: var(--hp-red-dark); }
.hp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hp-price-big { font-weight: 800; font-size: 96px; line-height: 1; }
.hp-price-unit { font-size: 20px; font-weight: 600; color: var(--hp-muted); }
.hp-checks { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; }
.hp-checks li { display: flex; gap: 12px; }
.hp-checks svg { flex: none; margin-top: 2px; }
.hp-fine { margin: 0; font-size: 14px; color: var(--hp-muted); text-align: center; }
.hp-fine a { text-decoration: underline; }
/* the launch price (accounts.plans.price_info): the regular price struck through, then the end date */
.hp-was { font-size: .5em; font-weight: 700; color: var(--hp-muted); text-decoration-thickness: 4px; vertical-align: middle; }
.hp-was-sm { color: var(--hp-muted); text-decoration-thickness: 2px; }
.hp-price-was { font-size: 40px; font-weight: 700; line-height: 1; color: var(--hp-muted); text-decoration-thickness: 3px; }
.hp-launch { margin: 0; font-size: 16px; font-weight: 600; color: var(--hp-ink); }
.hp-faq-note { display: block; font-size: 15px; color: var(--hp-muted); }
/* the value copy (core.value): what one hour makes, with its source always under it */
.hp-value { margin: 0; font-weight: 800; font-size: 40px; line-height: 1.05; color: var(--hp-white); }
.hp-footnote { margin: 0; font-size: 14px; line-height: 1.5; color: var(--hp-muted); max-width: 540px; }
.hp-redbg .hp-footnote { max-width: none; }
.hp-h3 { margin: 0; font-weight: 700; font-size: 28px; line-height: 1.1; }

/* Pricing v3: the three plan cards (core/_plan_cards.html), the Day Pass first and highlighted */
.hp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.hp-plan { border-radius: 12px; padding: 28px; background: var(--hp-white); color: var(--hp-ink); display: flex;
  flex-direction: column; gap: 16px; border: 3px solid var(--hp-white); }
.hp-plan-on { border-color: var(--hp-ink); box-shadow: 8px 8px 0 var(--hp-ink); }
.hp-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hp-plan-name { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.hp-plan-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px;
  background: var(--hp-pink-2); color: var(--hp-red-dark); }
.hp-plan-on .hp-plan-tag { background: var(--hp-red); color: var(--hp-white); }
.hp-plan-price { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hp-plan-price strong { font-weight: 800; font-size: 52px; line-height: 1; }
.hp-plan-unit { font-size: 17px; font-weight: 600; color: var(--hp-muted); }
.hp-plan-sub { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.hp-plan-list { margin: 0; padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; line-height: 1.5; }
.hp-plan-packs { margin: 0; font-size: 14px; color: var(--hp-muted); }
.hp-plan-was { color: var(--hp-muted); text-decoration-thickness: 2px; }
.hp-plan-cta { margin: auto 0 0; padding-top: 8px; display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  text-align: center; }
.hp-plan-link { font-size: 15px; text-decoration: underline; }
.hp-redbg .hp-fine a { color: var(--hp-white); }

/* FAQ */
.hp-faq { max-width: 920px; }
.hp-faq details { border-top: 1px solid var(--hp-ink); padding: 24px 0; }
.hp-faq details:last-child { border-bottom: 1px solid var(--hp-ink); }
.hp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 20px;
  font-weight: 600; cursor: pointer; list-style: none; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; flex: none; font-family: var(--hp-mono); font-size: 24px; line-height: 1;
  color: var(--hp-red); }
.hp-faq details[open] summary::after { content: "\2212"; }
.hp-faq details p { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--hp-text); }
.hp-faq details a { text-decoration: underline; }

/* Sign up + contact */
.hp-form { padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.hp-form-ivory { background: var(--hp-ivory); }
.hp-form label { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.hp-form input, .hp-form select, .hp-form textarea { padding: 14px 16px; border-radius: 4px; border: 1px solid #9CA3AF;
  background: var(--hp-white); font-size: 16px; color: var(--hp-ink); width: 100%; }
.hp-form .hp-btn { margin-top: 0; }
.hp-form form { margin: 0; }
.hp-form-intro { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--hp-text); }
.hp-form-foot { margin: 8px 0 0; font-size: 15px; color: var(--hp-muted); }
.hp-form-foot a { text-decoration: underline; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.hp-footer { background: var(--hp-ink); color: var(--hp-white); padding: 64px 0 40px; }
.hp-footer .hp-wordmark { color: var(--hp-white); }
.hp-foot-tag { font-size: 15px; line-height: 1.6; color: #D1D5DB; }
.hp-foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.hp-foot-col strong { font-size: 13px; letter-spacing: .12em; }
.hp .hp-foot-col a { color: #D1D5DB; }
.hp .hp-foot-col a:hover { color: var(--hp-white); }
.hp-foot-bottom { border-top: 1px solid #333333; padding-top: 24px; display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: #9CA3AF; }
.hp-foot-bottom .hp-sp { font-size: 12px; letter-spacing: .12em; }

/* Responsive (the design's breakpoints: 1100 and 860; plus phones) */
@media (max-width: 1100px) {
  .hp-wrap { padding: 0 64px; }
  .hp-navlinks { gap: 24px; }
}
@media (max-width: 960px) {
  .hp-plans { grid-template-columns: 1fr; }
  .hp-plan-on { box-shadow: 6px 6px 0 var(--hp-ink); }
  .hp-navlinks { display: none; }
  .hp-menu-btn { display: inline-flex; }
}
@media (min-width: 961px) { .hp-menu { display: none !important; } }
@media (max-width: 860px) {
  .hp-g2, .hp-g3, .hp-hero { grid-template-columns: 1fr; }
  .hp-g4 { grid-template-columns: 1fr 1fr; }
  .hp-wrap { padding: 0 24px; }
  .hp-section { padding: 72px 0; }
  .hp-section-lg { padding: 88px 0; }
  .hp-h1 { font-size: 46px; }
  .hp-h2, .hp-h2-xl, .hp-h2-faq { font-size: 34px; }
  .hp-h2-md { font-size: 32px; }
  .hp-gap-64 { gap: 40px; }
  .hp-price-big { font-size: 72px; }
  .hp-feature, .hp-price-card, .hp-form { padding: 28px; }
  .hp-tall { min-height: 0; }
}
@media (max-width: 560px) {
  .hp-wrap { padding: 0 16px; }
  .hp-menu { padding: 8px 16px 16px; }
  .hp-header-row { height: 68px; }
  .hp-wordmark { font-size: 22px; }
  .hp-logo svg { width: 28px; height: 28px; }
  .hp-login { display: none; }
  .hp-btn-sm { padding: 0 14px; font-size: 13px; }
  .hp-h1 { font-size: 40px; }
  .hp-lead { font-size: 17px; }
  .hp-actions .hp-btn { width: 100%; }
  .hp-mock-bar, .hp-mock-foot { padding: 12px 16px; }
  .hp-mock-screen { margin: 16px 16px 12px; }
  .hp-mock-prompt { margin: 0 16px; font-size: 14px; }
  .hp-mock-thumbs { margin: 12px 16px; gap: 6px; }
  .hp-mock-foot { flex-wrap: wrap; }
  .hp-faq summary { font-size: 17px; }
  .hp-feature, .hp-price-card, .hp-form { padding: 24px; }
  .hp-price-big { font-size: 60px; }
  .hp-price-was { font-size: 30px; }
  .hp-value { font-size: 30px; }
  .hp-tile-tag { left: 10px; bottom: 10px; font-size: 10px; padding: 5px 8px; max-width: calc(100% - 20px); width: auto;
    right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hp *, .hp *::before, .hp *::after { transition: none !important; animation: none !important; }
}
