/* LandReady website. Colours are the app's dark theme (src/theme/colors.ts); fonts match the store promo video. */

@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0A1424;
  --card: #122038;
  --border: #1E3050;
  --accent: #2ED3B7;
  --text: #EAF1FB;
  --muted: #8FA3BF;
  --warm: #FFC800;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Roboto', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 'Fraunces', serif; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand em { color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }

/* Headings */
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(60% 60% at 50% 0%, rgba(46,211,183,0.12), transparent 70%); }
.hero .eyebrow { font-size: clamp(15px, 1.8vw, 19px); letter-spacing: 0.16em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 16px; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #052A24; font-weight: 700; text-decoration: none;
}
.badge.soon { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.video {
  margin: 44px auto 0; max-width: 900px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

/* Features */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(30px, 4.5vw, 44px); text-align: center; margin: 0 0 12px; }
.section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }
.video video { width: 100%; }

/* Stacking feature cards: each card sticks a little lower than the one before, and the next card slides over it.
   stack.js shrinks and dims the cards underneath as they get covered. */
.stack { position: relative; padding-bottom: 8vh; }
.stack-card {
  position: sticky;
  top: calc(88px + var(--i) * 26px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
  height: min(560px, 74vh);
  margin-bottom: 9vh;
  padding: 36px 56px 0;
  overflow: hidden;
  background: linear-gradient(160deg, #15264A 0%, var(--card) 55%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 -12px 40px rgba(3, 8, 18, 0.55);
  transform-origin: 50% 0;
  will-change: transform;
}
.stack-card:last-child { margin-bottom: 0; }
/* The phone shows its full top; its lower part runs past the bottom edge of the card. */
.stack-shot { align-self: start; height: 100%; display: flex; justify-content: center; }
.stack-shot img { width: min(290px, 100%); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); }
/* The body-clock dial card: the drawing sits in the middle of the card instead of running off the bottom. */
.stack-shot.dial { align-self: center; height: auto; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 36px; }
.stack-shot.dial svg { width: min(320px, 100%); height: auto; }
.dial-shift { animation: dial-flow 1.6s linear infinite; }
@keyframes dial-flow { to { stroke-dashoffset: -22; } }
.dial-key { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.dial-key li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.body { background: #5B7CFA; }
.dot.local { background: rgba(46, 211, 183, 0.55); }
@media (prefers-reduced-motion: reduce) { .dial-shift { animation: none; } }

.stack-text { padding-bottom: 36px; }
.stack-text .num { display: block; font: 600 15px/1 'Roboto', sans-serif; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.stack-text h3 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 16px; }
.stack-text h3 em { font-style: italic; font-weight: 500; color: var(--accent); }
.stack-text p { margin: 0; color: var(--muted); font-size: 18px; max-width: 440px; }

/* Calm tools: three phones side by side (a swipe row on phones) */
.calm { background: radial-gradient(55% 40% at 50% 38%, rgba(91, 124, 250, 0.13), transparent 100%); }
.eyebrow { display: block; text-align: center; font: 600 13px/1 'Roboto', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.calm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.calm-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 0 24px 24px; overflow: hidden; display: flex; flex-direction: column; }
.calm-shot { margin: 0 -24px 22px; padding: 32px 24px 0; height: 420px; overflow: hidden; display: flex; justify-content: center;
  background: radial-gradient(60% 70% at 50% 35%, rgba(46, 211, 183, 0.22), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.calm-shot img { width: min(264px, 100%); height: auto; align-self: flex-start; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55)); }
.calm-card h3 { font-size: 26px; margin: 0 0 10px; }
.calm-card h3 em { font-style: italic; font-weight: 500; color: var(--accent); }
.calm-card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; color: var(--text); background: rgba(46, 211, 183, 0.10); border: 1px solid rgba(46, 211, 183, 0.35); border-radius: 999px; padding: 5px 11px; }
.calm-card p.fine { font-size: 13px; margin: 14px 0 0; }
.calm-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; color: var(--muted); font-size: 15px; }
.calm-facts li { display: flex; align-items: center; gap: 10px; }
.calm-facts svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Before / after */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 12px; }
.ba-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 22px; }
.ba-card figcaption { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 16px; color: var(--muted); }
.ba-card figcaption strong { display: block; font: 600 22px/1.2 'Fraunces', serif; color: var(--text); margin-bottom: 4px; }
.ba-card img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.ba-mark svg { width: 18px; height: 18px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-mark.no { background: rgba(255, 90, 106, 0.15); }
.ba-mark.no svg { stroke: #FF5A6A; }
.ba-mark.yes { background: rgba(46, 211, 183, 0.15); }
.ba-mark.yes svg { stroke: var(--accent); }
.ba-arrow svg { width: 64px; height: 32px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.wrap.narrow { max-width: 820px; }

/* Why jet lag happens */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-item { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px 22px; }
.why-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(46, 211, 183, 0.12); color: var(--accent); font: 600 17px/1 'Fraunces', serif; margin-bottom: 16px;
}
.why-item h3 { font-size: 21px; margin: 0 0 8px; }
.why-item p { margin: 0; color: var(--muted); font-size: 16px; }

.myths-title { text-align: center; font-size: clamp(26px, 3.4vw, 34px); margin: 64px 0 24px; }
.myths-title em { font-style: italic; color: var(--accent); font-weight: 500; }
.myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.myth { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; }
.myth p { margin: 0; display: flex; gap: 12px; align-items: baseline; }
.myth-claim { color: var(--text); font-weight: 500; margin-bottom: 12px !important; }
.claim-text { text-decoration: line-through; text-decoration-color: rgba(255, 90, 106, 0.6); }
.myth-fact { color: var(--muted); font-size: 16px; }
.tag { flex: none; font: 700 11px/1 'Roboto', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; text-decoration: none; display: inline-block; }
.tag.no { background: rgba(255, 90, 106, 0.14); color: #FF7A88; }
.tag.yes { background: rgba(46, 211, 183, 0.14); color: var(--accent); }
.sources { text-align: center; color: var(--muted); font-size: 13px; margin: 24px auto 0; max-width: 720px; }
.sources a { color: var(--muted); }

/* All features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; }
.feature svg {
  width: 30px; height: 30px; margin-bottom: 14px;
  fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* FAQ: native details/summary, no script */
.faq { margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font: 600 19px/1.35 'Fraunces', serif; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: -4px 4px 22px; color: var(--muted); }

/* Download block */
.download {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 56px; border-radius: 28px; border: 1px solid var(--border);
  background: radial-gradient(80% 140% at 0% 0%, rgba(46, 211, 183, 0.16), transparent 60%), linear-gradient(160deg, #15264A, var(--card));
}
.download h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; text-align: left; }
.download p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.download-qr { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.download-qr img { width: 160px; height: 160px; border-radius: 14px; background: #fff; padding: 8px; margin-bottom: 8px; }
.download.is-soon { justify-content: center; text-align: center; }
.download.is-soon h2 { text-align: center; }
.download.is-soon .download-qr { display: none; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.point { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 22px 18px; }
.point h3 { margin: 0 0 6px; font-size: 21px; }
.point p { margin: 0; color: var(--muted); font-size: 16px; }

.note { color: var(--muted); font-size: 14px; text-align: center; max-width: 720px; margin: 32px auto 0; }

/* Text pages (support, privacy, terms) */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 6px; }
.page .meta { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page li { color: #C9D6E8; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page strong { color: var(--text); }
.box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin: 20px 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding-top: 48px; }
}

@media (max-width: 1000px) {
  .why, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Below 1000 px the three calm cards become a sideways swipe row, so each phone stays big enough to read. */
  .calm-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 12px; scroll-padding: 0 20px; scrollbar-width: thin; }
  .calm-card { flex: 0 0 min(340px, 82%); scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .stack-card {
    top: calc(72px + var(--i) * 14px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    height: min(640px, 82vh);
    padding: 26px 22px 0;
    border-radius: 22px;
  }
  .why { grid-template-columns: 1fr; gap: 12px; }
  .myths { grid-template-columns: 1fr; gap: 12px; }
  .myths-title { margin-top: 48px; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 18px 16px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 14px; }
  .faq summary { font-size: 17px; padding: 18px 2px; }
  .download { flex-direction: column; align-items: flex-start; padding: 32px 24px; border-radius: 22px; }
  .download.is-soon { align-items: center; }
  .ba { grid-template-columns: 1fr; gap: 4px; }
  .ba-arrow { justify-self: center; transform: rotate(90deg); }
  .ba-card { padding: 18px; border-radius: 20px; }
  .stack-text { order: -1; padding-bottom: 0; }
  .stack-text .num { margin-bottom: 10px; }
  .stack-text h3 { font-size: 28px; margin-bottom: 8px; }
  .stack-text p { font-size: 16px; }
  .stack-shot img { width: min(230px, 70%); }
  .stack-shot.dial { align-self: start; padding-bottom: 18px; gap: 8px; }
  .stack-shot.dial svg { width: min(230px, 66%); }
  .dial-key { font-size: 13px; }
  .calm-card { padding: 0 20px 20px; border-radius: 22px; }
  .calm-shot { margin: 0 -20px 18px; height: 330px; padding-top: 26px; }
  .calm-shot img { width: min(210px, 100%); }
  .calm-card h3 { font-size: 24px; }
  .calm-facts { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; max-width: 360px; margin: 24px auto 0; }
}
