/* Hourbook app page, styled in Hourbook's own design language.
   Tokens mirror the Hourbook app's theme: clean slate, indigo primary,
   Sora display + Inter body, rounded cards. Self-contained so the Hourbook page
   reads as Hourbook, not as the studio. */

:root {
  /* Hourbook palette (light), from the app's LIGHT theme tokens. */
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-alt: #EEF0F5;
  --sunken: #E9ECF2;
  --text: #14161B;
  --text-secondary: #454A54;
  --text-muted: #6B7280;
  --primary: #4F46E5;
  --primary-pressed: #4338CA;
  --on-primary: #FFFFFF;
  --primary-soft: #EEEEFF;
  --on-primary-soft: #3730A3;
  --accent: #4F46E5;
  --accent-soft: #E7E7FF;
  --on-accent: #211C5C;
  --border: #E4E7EC;
  --divider: #EDEFF3;
  /* Light-on-color text for the indigo hero, band, and footer. */
  --cream: #ECEDFF;
  --footer-bg: #1E1B4B;
  /* Panels stay deep indigo in both modes so light text keeps AA contrast;
     they must not follow --primary, which brightens in dark mode. */
  --hero-1: #4F46E5;
  --hero-2: #4338CA;
  --band-bg: #4338CA;
  --shadow: 0 1px 2px rgba(20, 22, 27, .06), 0 8px 24px rgba(20, 22, 27, .08);
  --shadow-lift: 0 2px 4px rgba(20, 22, 27, .07), 0 16px 40px rgba(20, 22, 27, .12);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 68rem;
  --maxw-read: 65ch;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --space: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D12;
    --surface: #14171F;
    --surface-alt: #1B1F29;
    --sunken: #090A0E;
    --text: #F2F4F8;
    --text-secondary: #A6ADBB;
    --text-muted: #7E8696;
    --primary: #6366F1;
    --primary-pressed: #5B52E8;
    --on-primary: #FFFFFF;
    --primary-soft: #201F45;
    --on-primary-soft: #C4C1FF;
    --accent: #8B85FF;
    --accent-soft: #201F45;
    --on-accent: #E6E8FF;
    --border: #262B36;
    --divider: #20242E;
    --cream: #E9EAFF;
    --footer-bg: #14122E;
    --hero-1: #4338CA;
    --hero-2: #312E81;
    --band-bg: #312E81;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 44px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--primary-pressed); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.06; margin: 0 0 .5em; font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: .8125rem; color: var(--accent); margin: 0 0 .75rem;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space); }

.skip-link {
  position: absolute; left: 0; top: -3.5rem; background: var(--primary); color: var(--on-primary);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100; transition: top .15s ease; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { display: inline-block; padding: .45rem .8rem; border-radius: 999px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); background: var(--surface-alt); }
.nav-links a.nav-back { color: var(--text-muted); }
.nav-links a[aria-current="page"] { color: var(--on-primary); background: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); color: var(--on-primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--primary); }

.badge-soon {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); cursor: default;
}
.badge-soon::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }

/* Sections */
section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.25rem); }
.lead { font-size: clamp(1.1rem, 2.3vw, 1.3rem); color: var(--text-muted); max-width: 48ch; line-height: 1.5; }

/* App hero (banner) */
.app-hero { background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 100%); color: var(--on-primary); }
.app-hero .container { display: grid; gap: 2rem; align-items: center; }
.app-hero-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-hero-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.app-hero-head .eyebrow { margin: 0; color: var(--cream); }
.app-hero h1 { color: var(--on-primary); font-size: clamp(2.25rem, 5vw, 3.5rem); }
.app-hero .lead { color: var(--cream); max-width: 54ch; }
.app-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; align-items: center; }
.app-hero .btn-ghost { color: var(--cream); border-color: color-mix(in srgb, var(--cream) 45%, transparent); }
.app-hero .btn-ghost:hover { background: color-mix(in srgb, var(--cream) 14%, transparent); color: var(--cream); }
.app-hero .badge-soon { color: var(--cream); border-color: color-mix(in srgb, var(--cream) 55%, transparent); background: color-mix(in srgb, var(--cream) 14%, transparent); }
.app-hero .badge-soon::before { background: var(--cream); }
.app-banner { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--cream) 25%, transparent); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; list-style: none; padding: 0; }
.feature-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem 1.1rem 2.6rem; position: relative; }
.feature-grid li::before { content: ""; position: absolute; left: 1.1rem; top: 1.4rem; width: .7rem; height: .7rem; border-radius: 3px; background: var(--primary); }

/* Screenshot gallery */
.gallery { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery img { flex: 0 0 auto; width: min(62vw, 240px); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); scroll-snap-align: start; }

/* Pricing */
.price-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.price-card.is-pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.price-card .tier { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0 0 .25rem; }
.price-card .price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--primary); margin: 0 0 .5rem; }
.price-card .price small { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--text-muted); }
.price-card ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.price-card li { padding: .35rem 0 .35rem 1.6rem; position: relative; color: var(--text-secondary); font-size: .98rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .85rem; height: .45rem; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.price-note { color: var(--text-muted); font-size: .95rem; margin-top: 1rem; max-width: 60ch; }

/* Privacy highlight band */
.privacy-band { background: var(--band-bg); color: var(--cream); border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.privacy-band .eyebrow { color: color-mix(in srgb, var(--cream) 92%, transparent); }
.privacy-band h2 { color: var(--cream); }
.privacy-band p { max-width: 54ch; margin-inline: auto; color: color-mix(in srgb, var(--cream) 90%, transparent); }
.privacy-band a { color: var(--cream); font-weight: 600; }

.cta-center { text-align: center; }
.cta-center .lead { margin-inline: auto; }

/* Reading column (privacy policy) */
.reading { max-width: var(--maxw-read); }
.reading h1 { font-size: clamp(2rem, 5vw, 3rem); }
.reading .updated { color: var(--text-muted); font-size: .95rem; margin-bottom: 2.5rem; }
.reading h2 { font-size: 1.4rem; margin-top: 2.5rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--cream); padding-block: clamp(2.5rem, 6vw, 4rem); margin-top: 2rem; }
.site-footer .container { display: grid; gap: .9rem; }
.site-footer p { color: color-mix(in srgb, var(--cream) 85%, transparent); max-width: 60ch; }
.site-footer a { color: var(--cream); font-weight: 600; }
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--cream); margin: 0 0 .25rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { color: color-mix(in srgb, var(--cream) 85%, transparent); text-decoration: none; font-weight: 600; font-size: .95rem; }
.foot-links a:hover { color: var(--cream); }

/* Wide-screen layout */
@media (min-width: 48rem) {
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); overflow-x: visible; gap: 1.25rem; }
  .gallery img { width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-hero .container { grid-template-columns: 1.05fr .95fr; }
  .price-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
