/* Vacation Countdown — thevacationcountdown.app */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/BricolageGrotesque-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --lagoon: #0d8fa3;
  --lagoon-deep: #0b5e7a;
  --lagoon-bright: #38b3c2;
  --coral: #f08a5d;
  --ink: #0b2a33;
  --ink-soft: #3e5a63;
  --muted: #6b8189;
  --foam: #eef5f6;
  --paper: #ffffff;
  --line: #d5e3e6;
  --bg: var(--foam);
  --surface: var(--paper);
  --text: var(--ink);
  --text-2: var(--ink-soft);
  --accent: var(--lagoon);
  --accent-ink: #ffffff;
  --band: var(--ink);
  --band-text: #e4f0f2;
  --display: "Bricolage Grotesque", -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-card: 20px;
  --radius-pill: 999px;
  --measure: 46rem;
  --shadow: 0 24px 60px -30px rgba(11, 42, 51, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071e25;
    --surface: #0e2d36;
    --text: #e4f0f2;
    --text-2: #b7cdd2;
    --muted: #8fadb4;
    --line: #1e424c;
    --accent: var(--lagoon-bright);
    --accent-ink: #062128;
    --band: #041419;
    --band-text: #e4f0f2;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--lagoon-deep); }
@media (prefers-color-scheme: dark) { a:hover { color: #7fd3de; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 800; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--text-2); max-width: 36rem; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Hero */
.hero { padding: 2rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero__eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.hero__note { color: var(--muted); font-size: 0.95rem; margin: 0; }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.button:hover { color: var(--bg); opacity: 0.9; }
.button--accent { background: var(--accent); color: var(--accent-ink); }
.button--accent:hover { color: var(--accent-ink); }
.button svg { width: 18px; height: 18px; fill: currentColor; }

/* Try-it countdown card — the signature element */
.tryit {
  margin-top: 2rem;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--lagoon-deep) 0%, var(--lagoon) 55%, var(--lagoon-bright) 130%);
  color: #fff; padding: 1.5rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2rem; align-items: end;
}
.tryit__label { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-weight: 600; }
.tryit__label input[type="date"] {
  font: inherit; font-size: 1rem; padding: 0.45rem 0.75rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.14); color: #fff;
  color-scheme: dark; min-width: 11rem;
}
.tryit__number {
  font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 96;
}
.tryit__meta { padding-bottom: 0.5rem; }
.tryit__unit { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.tryit__unit button {
  font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0.75rem; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.4);
  background: transparent; color: #fff;
}
.tryit__unit button[aria-pressed="true"] { background: #fff; color: var(--lagoon-deep); border-color: #fff; }
.tryit__date { margin: 0; opacity: 0.9; font-size: 0.95rem; }
.tryit__hint { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; opacity: 0.85; }

/* Phone frame */
.phone {
  width: min(100%, 320px); margin-inline: auto; border-radius: 48px; padding: 10px;
  background: #101315; box-shadow: var(--shadow);
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }
.phone--hero { width: min(100%, 340px); }

/* Feature rows */
.features { padding: 2rem 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0; border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature__media { order: -1; }
.feature__kicker { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature ul { padding-left: 1.2rem; margin: 0; color: var(--text-2); }
.feature li { margin-bottom: 0.4rem; }
.feature li::marker { color: var(--accent); }

/* Share strip */
.share { padding: 1rem 0 4rem; }
.share__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--text-2); }

/* Privacy band */
.band { background: var(--band); color: var(--band-text); padding: 4rem 0; }
.band h2 { color: #fff; }
.band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.band__grid h3 { color: var(--lagoon-bright); font-size: 1.1rem; margin-bottom: 0.35rem; }
.band__grid p { margin: 0; opacity: 0.85; }
.band a { color: var(--lagoon-bright); }

/* Pro */
.pro { padding: 4rem 0; }
.pro__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.pro__eyebrow { color: var(--coral); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pro dl { margin: 0; display: grid; gap: 1rem; }
.pro dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.pro dd { margin: 0.2rem 0 0; color: var(--text-2); }
.pro__fine { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--text-2); }

/* Legal / support pages */
.doc { padding: 1rem 0 4rem; }
.doc__head { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.doc__meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.doc h2 { font-size: 1.5rem; margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.doc li::marker { color: var(--accent); }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.summary ul { margin: 0; }
.toc { margin: 0 0 2rem; padding: 0; list-style: none; columns: 2; column-gap: 2rem; font-size: 0.95rem; }
.toc li { break-inside: avoid; margin-bottom: 0.35rem; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--text); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 40rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--text-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
address { font-style: normal; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); padding: 0.1em 0.35em; border-radius: 6px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol { color: var(--text-2); margin-top: 0.75rem; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.75rem; margin: 2.5rem 0; }
.contact h2 { margin-top: 0; }

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap, .feature, .pro__card { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .hero__media { order: 1; }
  .band__grid, .share__grid { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .site-nav { gap: 0.9rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .tryit { grid-template-columns: 1fr; padding: 1.25rem; }
  .tryit__meta { padding-bottom: 0; }
}
