/*
 * valkaapp.com: one stylesheet, no scripts, no cookies, nothing loaded from anywhere else.
 * Colours copy the app's tokens (frontend/src/theme/tokens.ts). Rose is for periods only, so
 * the site uses it only for the logo's moon and the period example.
 */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Brand palette (tokens.ts) */
  --midnight: #0f1a2e;
  --saffron: #e3a92b;
  --saffron-deep: #b07d14;
  --olive: #4a5327;
  --olive-night: #a3ae6e;
  --paper: #faf6ee;
  --ink: #221418;
  --slate: #4e5462;
  --mist: #c9cfd9;
  --night-bg: #0a1120;
  --night-surface: #152238;
  --night-border: #24324d;
  --night-muted: #b9bfcc;

  /* Light theme */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: #f3eee3;
  --text: var(--ink);
  --muted: var(--slate);
  --border: #e8e1d3;
  --accent: var(--olive);
  --hero-bg: var(--midnight);
  --hero-text: var(--paper);
  --hero-muted: var(--night-muted);
  --button-bg: var(--saffron);
  --button-text: var(--midnight);
  --draft-bg: #fbf0d6;
  --draft-border: var(--saffron-deep);
  --shadow: 0 1px 2px rgba(15, 26, 46, 0.06), 0 12px 32px rgba(15, 26, 46, 0.08);

  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body: 'Jost', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night-bg);
    --surface: var(--night-surface);
    --surface-2: #101b2f;
    --text: var(--paper);
    --muted: var(--night-muted);
    --border: var(--night-border);
    --accent: var(--olive-night);
    --hero-bg: #0d1628;
    --draft-bg: #2a2412;
    --draft-border: var(--saffron);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
}
h3 {
  font-size: 26px;
}
p {
  margin: 0 0 1em;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 38em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}
.brand img {
  width: 44px;
  height: auto;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}
/* Phone menu: a details element, so it works with no scripts. */
.menu {
  display: none;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu[open] .nav-links {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 64px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.menu[open] .nav-links a {
  font-size: 18px;
  padding: 12px 14px;
}
@media (max-width: 860px) {
  .site-header .nav-desktop {
    display: none;
  }
  .menu {
    display: block;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  text-decoration: none;
  border: 0;
}
.button.outline {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.button[aria-disabled='true'] {
  cursor: default;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 0;
}
.hero .eyebrow,
.hero .lead {
  color: var(--hero-muted);
}
.hero .button.outline {
  color: var(--hero-text);
}
.hero-logo {
  width: 120px;
  margin-bottom: 18px;
}
.hero-text {
  padding-bottom: 72px;
}
.hero-phones .phone {
  width: min(250px, 46%);
}
.hero-phones {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-self: end;
}
.hero-phones .phone:nth-child(2) {
  margin-top: 60px;
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 8px;
  }
  .hero-text {
    padding-bottom: 24px;
  }
  .hero-phones .phone:nth-child(2) {
    display: none;
  }
}

/* A phone frame around an app screenshot. */
.phone {
  width: 260px;
  flex: none;
  border-radius: 40px;
  padding: 9px;
  background: #05080f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    var(--shadow);
}
.phone img {
  border-radius: 32px;
  width: 100%;
  height: auto;
}
.hero .phone {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}
.hero .phone img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  aspect-ratio: 390 / 600;
  object-fit: cover;
  object-position: top;
}
.shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* Sections */
section {
  padding: 72px 0;
}
section + section {
  border-top: 1px solid var(--border);
}
.page-head {
  padding: 64px 0 24px;
}
.page-head + section {
  border-top: 0;
  padding-top: 24px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
.split .phone {
  margin: 0 auto;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split.flip > :first-child {
    order: 0;
  }
  section {
    padding: 52px 0;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 24px;
}
.card p:last-child {
  margin-bottom: 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.promise {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.promise .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-family: var(--display);
  font-size: 24px;
}

/* Feature table: becomes stacked cards on a phone. */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.table th,
.table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table thead th {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.table tbody th {
  font-weight: 500;
  width: 26%;
}
.table tr:last-child > * {
  border-bottom: 0;
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-2);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .table th,
  .table td {
    padding: 2px 0;
    border: 0;
  }
  .table tbody th {
    width: 100%;
    font-size: 18px;
  }
}

/* Pricing */
.price {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  margin: 8px 0 16px;
}
.card.featured {
  border: 2px solid var(--saffron);
}

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 500;
  font-size: 18px;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
}
details.faq[open] summary::after {
  content: '–';
}
details.faq > div {
  padding: 0 0 16px;
  color: var(--muted);
  max-width: 44em;
}

/* Drafts and placeholders */
.draft {
  background: var(--draft-bg);
  border: 1.5px dashed var(--draft-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 15px;
}
.draft strong {
  letter-spacing: 0.06em;
}
.legal {
  max-width: 46em;
}
.legal h2 {
  font-size: 30px;
  margin-top: 1.6em;
}
.legal h3 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  margin-top: 1.2em;
}
.legal li {
  margin-bottom: 6px;
}
.todo {
  background: var(--draft-bg);
  border-radius: 6px;
  padding: 0 5px;
  font-size: 0.92em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
  padding: 0;
  list-style: none;
}
.site-footer .links a {
  color: var(--text);
}
.disclaimer {
  max-width: 46em;
}

/* A card-sized screenshot (the Today wheel), on a soft surface. */
.shot-card {
  max-width: 420px;
  margin: 0 auto;
}
.shot-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot-wrap img,
.shot-card img {
  width: 100%;
  height: auto;
}

/* Round 6b (2.45): bigger, readable phones. A cropped phone shows the top of the screen. */
.split .phone,
.grid .phone {
  width: min(340px, 86vw);
}
.phone.crop img {
  aspect-ratio: 390 / 700;
  object-fit: cover;
  object-position: top;
}
.grid .phone.crop img {
  aspect-ratio: 390 / 640;
}
.hero .wrap {
  grid-template-columns: 1fr 1fr;
}
.hero-phones .phone {
  width: min(280px, 48%);
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-phones .phone {
    width: min(320px, 86vw);
  }
}

/* "Get notified at launch": one plain form, no scripts. */
.notify {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.notify-form {
  margin: 18px 0 12px;
  text-align: left;
}
.notify-form label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 6px;
}
.notify-row {
  display: flex;
  gap: 10px;
}
.notify-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.notify-row input:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}
.notify-row .button {
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
@media (max-width: 480px) {
  .notify-row {
    flex-direction: column;
  }
}
/* Only bots fill this in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 861px) {
  .hero .wrap {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .hero-phones .phone {
    width: min(300px, 48%);
  }
}

/* ------------------------------------------------------------------------------------------
 * Header: "Join the waitlist" on every page.
 * ---------------------------------------------------------------------------------------- */
.header-cta {
  margin-left: auto;
  background: var(--saffron);
  color: var(--midnight);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-header .nav-desktop {
  margin-left: auto;
}
.site-header .nav-desktop + .header-cta {
  margin-left: 8px;
}
@media (max-width: 420px) {
  .header-cta {
    font-size: 14px;
    padding: 8px 13px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 36px;
  }
}

/* ------------------------------------------------------------------------------------------
 * Home: Gallery tiles (docs/website-revamp-mockups/, layout B). Big pictures, short words.
 * Each tile has its own soft colour, with a deeper version in dark mode.
 * ---------------------------------------------------------------------------------------- */
.home {
  --tile-r: 56px;
  --stage-a: #ece4d4;
  --stage-b: #e3d9c4;
  --hero-em: var(--saffron-deep);
  padding-bottom: 72px;
}
@media (prefers-color-scheme: dark) {
  .home {
    --stage-a: #152238;
    --stage-b: #101b2f;
    --hero-em: var(--saffron);
  }
}
.home .wide {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.home h2 {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.home .center {
  text-align: center;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The phones */
.tphone {
  margin: 0;
  flex: none;
  /* Corners in proportion to the phone (like a real iPhone), so they never cut into the
     screen's corners (the tab bar) on the smaller phones. */
  border-radius: 12% / 5.6%;
  border: 9px solid #05080f;
  overflow: hidden;
  background: #05080f;
  box-shadow: 0 40px 80px rgba(5, 8, 15, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* The screen has the screenshot's exact shape and the frame wraps it, so the whole screen
   always shows (the border used to eat into it and trim the sides). */
.tphone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}
.tphone.home-screen img {
  aspect-ratio: 845 / 1600;
}

/* Waitlist form */
.wait {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}
.wait input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.wait input:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}
.wait .button {
  min-height: 54px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
}

/* Hero */
.home-hero {
  text-align: center;
  padding-top: 72px;
}
.home-hero h1 {
  font-size: clamp(60px, 9vw, 120px);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 1000px;
  margin: 0 auto;
}
.home-hero h1 em {
  font-style: italic;
  color: var(--hero-em);
}
.home-lead {
  font-size: clamp(19px, 2vw, 24px);
  color: var(--muted);
  max-width: 600px;
  margin: 26px auto 34px;
}
.home-hero .small {
  margin-top: 14px;
}
.hero-stage {
  margin-top: 64px;
  height: 560px;
  border-radius: var(--tile-r) var(--tile-r) 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--stage-a), var(--stage-b));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  padding-top: 70px;
}
.hero-stage .tphone {
  width: 280px;
  margin-top: 90px;
}
.hero-stage .tphone.lead {
  width: 340px;
  margin-top: 0;
}

/* Feature tiles */
.tiles {
  display: grid;
  gap: 28px;
  padding-top: 28px;
}
.tile {
  border-radius: var(--tile-r);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--tile-bg);
  color: var(--tile-fg);
}
.tile:nth-child(even) .tile-text {
  order: 2;
}
.tile-text {
  padding: 88px 72px;
  align-self: center;
}
.tile .eyebrow {
  color: inherit;
  opacity: 0.75;
}
.tile h2 {
  margin: 14px 0 22px;
}
.tile-text p:last-child {
  font-size: 21px;
  max-width: 440px;
  opacity: 0.88;
  margin: 0;
}
.tile-shots {
  display: flex;
  justify-content: safe center;
  align-items: flex-start;
  gap: 26px;
  padding: 80px 24px 0;
  height: 640px;
  overflow: hidden;
}
.tile-shots .tphone {
  width: 290px;
}
/* Phones are sized as a share of the room beside the text, so they always fit whole, in the
   screen's own shape (flex shrinking would narrow the frame and crop the screenshot). */
.tile-shots.n2 .tphone {
  width: min(290px, calc((100% - 26px) * 0.53));
}
.tile-shots.n2 .tphone + .tphone {
  width: min(250px, calc((100% - 26px) * 0.46));
  margin-top: 60px;
}
.tile-shots.n3 {
  gap: 18px;
}
.tile-shots.n3 .tphone {
  width: min(178px, calc((100% - 36px) * 0.31));
  margin-top: 40px;
  border-width: 6px;
}
.tile-shots.n3 .tphone.lead {
  width: min(210px, calc((100% - 36px) * 0.37));
  margin-top: 0;
}
.t-train { --tile-bg: #e7e9d6; --tile-fg: #2c3214; }
.t-day { --tile-bg: var(--midnight); --tile-fg: var(--paper); }
.t-cycle { --tile-bg: #f1e0d4; --tile-fg: #3d2318; }
.t-patterns { --tile-bg: #f4d7dc; --tile-fg: #3b1d25; }
.t-stages { --tile-bg: #ece4d4; --tile-fg: var(--ink); }
.t-food { --tile-bg: #f7e6bd; --tile-fg: #3a2a06; }
.t-widgets { --tile-bg: #dde2eb; --tile-fg: #1a2336; }
.t-track { --tile-bg: #efe4ee; --tile-fg: #3a2238; }
@media (prefers-color-scheme: dark) {
  .t-train { --tile-bg: #1c2414; --tile-fg: #e3e7c9; }
  .t-day { --tile-bg: #152238; --tile-fg: var(--paper); }
  .t-cycle { --tile-bg: #2a1d17; --tile-fg: #f1e0d4; }
  .t-patterns { --tile-bg: #2a1c24; --tile-fg: #f4d7dc; }
  .t-stages { --tile-bg: #1f1b15; --tile-fg: var(--paper); }
  .t-food { --tile-bg: #2a2210; --tile-fg: #f7e6bd; }
  .t-widgets { --tile-bg: #141d2e; --tile-fg: #dde2eb; }
  .t-track { --tile-bg: #2a2234; --tile-fg: #efe4ee; }
}

/* Privacy */
.privacy-tile {
  margin-top: 28px;
  text-align: center;
}
.home .privacy-tile {
  background: var(--olive);
  color: var(--paper);
  border-radius: var(--tile-r);
  padding-top: 96px;
  padding-bottom: 80px;
  max-width: calc(1320px - 64px);
  width: calc(100% - 64px);
}
.promises3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 40px;
  text-align: left;
}
.promises3 > div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
}
.promises3 h3 {
  font-size: 34px;
  margin-bottom: 10px;
}
.promises3 p {
  margin: 0;
}
.button.outline-light {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(250, 246, 238, 0.7);
}

/* Free vs Premium */
.plans-sec,
.faq-sec {
  padding-top: 130px;
}
.plans-sec h2,
.faq-sec h2 {
  text-align: center;
  margin-bottom: 56px;
}
.plans2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.plan2 {
  border-radius: 28px;
  padding: 40px 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan2 h3 {
  font-size: 40px;
  margin: 0 0 18px;
}
.plan2 .plan-lead {
  color: var(--muted);
  margin: -8px 0 14px;
}
.plan2 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan2 li {
  padding: 8px 0 8px 28px;
  position: relative;
}
.plan2 li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.plan2.premium {
  background: #fbf0d6;
  box-shadow: inset 0 0 0 2px var(--saffron), var(--shadow);
}
.plan2.premium li::before {
  color: var(--saffron-deep);
}
.plan2 .founding {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(176, 125, 20, 0.35);
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .plan2.premium {
    background: #2a2412;
  }
  .plan2.premium li::before {
    color: var(--saffron);
  }
}
/* "Why we charge a subscription": its own panel, right under the plans. */
.why-panel {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 40px 44px;
  border-radius: 28px;
  background: var(--surface-2);
  text-align: center;
}
.why-panel h3 {
  font-size: clamp(30px, 3.4vw, 42px);
  margin: 0 0 14px;
}
.why-panel p {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}
.every-plan {
  text-align: center;
  font-weight: 500;
  max-width: 720px;
  margin: 32px auto 0;
}

/* FAQ: one column, one answer open at a time (details name="faq", no scripts). */
.faq1 {
  max-width: 760px;
  margin: 0 auto 24px;
}
.faq1 details {
  border-bottom: 1px solid var(--border);
}
.faq1 summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 44px 26px 0;
  font-size: 22px;
  position: relative;
}
.faq1 summary::-webkit-details-marker {
  display: none;
}
.faq1 summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 30px;
  line-height: 1.2;
  transition: transform 0.2s;
}
.faq1 details[open] summary::after {
  transform: rotate(45deg);
}
.faq1 details p {
  padding: 0 44px 26px 0;
  margin: 0;
  color: var(--muted);
}

/* Final waitlist */
.home .final-tile {
  margin-top: 100px;
  border-radius: var(--tile-r);
  background: var(--saffron);
  color: var(--midnight);
  text-align: center;
  padding-top: 110px;
  padding-bottom: 90px;
  max-width: calc(1320px - 64px);
  width: calc(100% - 64px);
}
.final-tile h2 {
  font-size: clamp(56px, 7vw, 104px);
}
.final-tile > p {
  font-size: 21px;
  margin: 16px 0 34px;
}
.final-tile .small {
  color: #3a3220;
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 15px;
}
.final-tile .wait input {
  border-color: rgba(15, 26, 46, 0.35);
  background: #fffaf0;
  color: var(--ink);
}
.final-tile .wait .button {
  background: var(--midnight);
  color: var(--paper);
}

/* Phones: one large, readable phone per tile; Premium first and lightly highlighted. */
@media (max-width: 760px) {
  .home {
    --tile-r: 36px;
  }
  .home .wide {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home .privacy-tile,
  .home .final-tile {
    width: calc(100% - 32px);
  }
  .home-hero {
    padding-top: 40px;
  }
  .wait {
    flex-direction: column;
  }
  .hero-stage {
    height: 520px;
    margin-top: 44px;
    padding-top: 40px;
  }
  .hero-stage .tphone:not(.lead) {
    display: none;
  }
  .hero-stage .tphone.lead {
    width: min(300px, 80vw);
  }
  .tphone {
    border-width: 7px;
  }
  .tile {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tile:nth-child(even) .tile-text {
    order: 0;
  }
  .tile-text {
    padding: 52px 28px 0;
  }
  .tile-text p:last-child {
    font-size: 18px;
  }
  .tile-shots {
    height: 540px;
    padding-top: 40px;
  }
  .tile-shots .tphone:not(.lead) {
    display: none;
  }
  .tile-shots .tphone.lead,
  .tile-shots.n3 .tphone.lead {
    width: min(300px, 80vw);
    margin-top: 0;
  }
  .home .privacy-tile {
    padding: 60px 22px 48px;
  }
  .promises3 {
    grid-template-columns: 1fr;
    margin: 32px 0 28px;
  }
  .plans-sec,
  .faq-sec {
    padding-top: 80px;
  }
  .plans-sec h2,
  .faq-sec h2 {
    margin-bottom: 32px;
  }
  .plans2 {
    grid-template-columns: 1fr;
  }
  .why-panel {
    padding: 30px 22px;
  }
  .faq1 summary {
    font-size: 19px;
    padding: 20px 40px 20px 0;
  }
  .faq1 summary::after {
    top: 12px;
  }
  .home .final-tile {
    margin-top: 64px;
    padding: 70px 22px 56px;
  }
}
/* (The widgets picture is a whole Home Screen: its own shape, set on .tphone.home-screen img.) */

/* ------------------------------------------------------------------------------------------
 * Icons (Lucide, the app's own icon set; inline, so nothing loads from elsewhere).
 * ---------------------------------------------------------------------------------------- */
.ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}
.ico.big {
  width: 30px;
  height: 30px;
  color: var(--saffron-deep);
}
@media (prefers-color-scheme: dark) {
  .ico.big {
    color: var(--saffron);
  }
}

/* "And so much more" on the homepage */
.more-sec {
  padding-top: 120px;
}
.more-sec h2 {
  text-align: center;
  margin-bottom: 48px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.more-group {
  background: var(--surface);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.more-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  margin: 0 0 18px;
}
.more-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.more-group li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.35;
}
.more-sec > .center {
  margin-top: 36px;
}
@media (max-width: 1100px) {
  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .more-sec {
    padding-top: 80px;
  }
  .more-sec h2 {
    margin-bottom: 28px;
  }
  .more-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .more-group {
    padding: 26px 22px;
  }
}

/* Features page: every feature, grouped */
.feat-group {
  padding-top: 24px;
}
.feat-group h2 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feat-group .lead {
  margin-bottom: 8px;
}
.feat-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feat-item .ico {
  margin-top: 3px;
}
.feat-item h3 {
  font-size: 22px;
  margin: 0 0 4px;
}
.feat-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.feat-item p.needs {
  margin-top: 8px;
  font-size: 14px;
}
.feat-item p.needs strong {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 960px) {
  .feat-items {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .feat-items {
    grid-template-columns: 1fr;
  }
}

/* Privacy page, in the homepage's style */
.pv-hero {
  text-align: center;
  padding-top: 80px;
}
.pv-hero h1 {
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1;
  max-width: 1000px;
  margin: 8px auto 0;
}
.pv-hero h1 em {
  font-style: italic;
  color: var(--hero-em);
}
.pv-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.pv-promise {
  background: var(--olive);
  color: var(--paper);
  border-radius: 36px;
  padding: 40px 34px;
}
.pv-promise .ico.big {
  color: #f2d58b;
  width: 36px;
  height: 36px;
}
.pv-promise h3 {
  font-size: 34px;
  margin: 18px 0 10px;
}
.pv-promise p {
  margin: 0;
  font-size: 18px;
}
.pv-sec {
  padding-top: 110px;
}
.pv-sec h2 {
  text-align: center;
  margin-bottom: 40px;
}
.pv-table-wrap {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.pv-table {
  width: 100%;
  border-collapse: collapse;
}
.pv-table th,
.pv-table td {
  text-align: left;
  vertical-align: top;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.pv-table thead th {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-2);
}
.pv-table tbody th {
  font-weight: 400;
  width: 34%;
}
.pv-table tbody th b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 4px;
}
.pv-table tbody th span {
  color: var(--muted);
  font-size: 16px;
}
.pv-table tbody tr:last-child > * {
  border-bottom: none;
}
.pv-phone {
  list-style: none;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pv-phone li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 20px;
  padding: 18px 20px;
}
.pv-nevers {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pv-nevers li {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.pv-nevers b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 4px;
}
.pv-nevers b::before {
  content: '✕ ';
  color: var(--saffron-deep);
}
.pv-hook {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 40px 0 0;
}
.pv-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pv-controls > div {
  background: var(--surface);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.pv-controls h3 {
  font-size: 28px;
  margin: 14px 0 8px;
}
.pv-controls p {
  margin: 0;
  color: var(--muted);
}
.home .pv-site {
  margin-top: 90px;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.pv-site h3 {
  font-size: 26px;
  color: var(--text);
}
@media (max-width: 960px) {
  .pv-promises,
  .pv-controls {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .pv-hero {
    padding-top: 44px;
  }
  .pv-promises,
  .pv-controls,
  .pv-nevers,
  .pv-phone {
    grid-template-columns: 1fr;
  }
  .pv-promise {
    padding: 30px 26px;
    border-radius: 28px;
  }
  .pv-sec {
    padding-top: 72px;
  }
  .pv-table thead {
    display: none;
  }
  .pv-table tr {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
  }
  .pv-table tbody tr:last-child {
    border-bottom: none;
  }
  .pv-table th,
  .pv-table td {
    display: block;
    width: auto !important;
    padding: 4px 0;
    border: none;
  }
  .pv-table td::before {
    display: block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
  }
  .pv-table td:nth-of-type(1)::before {
    content: 'Why';
  }
  .pv-table td:nth-of-type(2)::before {
    content: 'How it’s kept';
  }
}

/* Small layout helpers (the site's CSP allows no inline styles). */
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.grid.one-col { grid-template-columns: 1fr; }
/* The homepage and Privacy page sections are spaced by size, not ruled lines. */
.home section + section {
  border-top: none;
}
