/* Styles for index.html (moved out of an inline <style> block so the CSP can drop style-src unsafe-inline). */
:root {
  --bg: #0e1b12;
  --bg2: #101d15;
  --card: #16241a;
  --line: rgba(234, 242, 230, 0.10);
  --forest: #14311d;
  --lime: #c6ef3c;
  --on-lime: #14311d;
  --amber: #dda43c;
  --ink: #eaf2e6;
  --muted: #93a596;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 27, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 54px; height: 54px; display: block; }
.nav-blog { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1; padding: 10px 6px; margin-inline-start: 16px; margin-inline-end: auto; border-radius: 8px; transition: color .15s ease; }
.nav-blog:hover { color: var(--lime); }
.nav-blog:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  font: 600 14px/1 Inter, "Helvetica Neue", Arial, sans-serif; padding: 11px 14px; cursor: pointer; max-width: 210px;
  transition: border-color .15s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--lime); }
.lang-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lang-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-code { display: none; text-transform: uppercase; }
.lang-chev { flex: none; color: var(--muted); transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20; margin: 0; padding: 6px; list-style: none;
  min-width: 210px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.lang-list { scrollbar-width: thin; scrollbar-color: rgba(198, 239, 60, .45) transparent; }
.lang-list[hidden] { display: none; }
.lang-list:focus { outline: none; }
.lang-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.lang-list li:hover, .lang-list li.active { background: var(--lime); color: var(--on-lime); }
.lang-check { visibility: hidden; font-weight: 800; }
.lang-list li[aria-selected="true"] .lang-check { visibility: visible; }
.lang-list li[aria-selected="true"] { font-weight: 800; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--on-lime);
  font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
button.btn, button.store { font: inherit; border: 0; cursor: pointer; color: inherit; }
button.btn { font-weight: 800; font-size: 15px; color: var(--on-lime); }
button.store { border: 1px solid var(--line); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(198, 239, 60, 0.25); }

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .brand img { width: 40px; height: 40px; }
  .lang-btn { padding: 10px 10px; gap: 5px; }
  .btn { padding: 10px 11px; font-size: 13px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 24px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(600px 320px at 50% 10%, rgba(198, 239, 60, 0.14), transparent 70%),
    radial-gradient(520px 300px at 85% 40%, rgba(32, 73, 44, 0.65), transparent 70%),
    radial-gradient(520px 300px at 10% 50%, rgba(32, 73, 44, 0.55), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
/* Eyebrow pill: no longer on the home hero, but the blog hero (scripts/build-blog.mjs) still uses it. */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--lime); border: 1px solid rgba(198, 239, 60, 0.4); padding: 7px 14px; border-radius: 999px;
}
h1 {
  font-size: clamp(36px, 6.2vw, 70px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 900;
  margin: 22px auto 18px; max-width: 880px;
}
em { font-style: normal; color: var(--lime); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; text-align: start;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 88px 0 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -1px; font-weight: 900; margin: 0 0 14px; }
.head p { color: var(--muted); font-size: 18px; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.3px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(221, 164, 60, 0.18); color: var(--amber); font-size: 21px; margin-bottom: 16px;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* Ad-free */
.adfree { display: flex; align-items: center; gap: 28px; background: var(--lime); color: var(--on-lime); border-radius: 28px; padding: 40px 44px; }
.adfree .big { font-size: clamp(64px, 9vw, 104px); font-weight: 900; line-height: 1; letter-spacing: -3px; flex: none; }
.adfree .big small { display: block; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; text-align: center; }
.adfree h2 { margin-bottom: 8px; }
.adfree p { margin: 0; font-size: 18px; color: rgba(20, 49, 29, 0.85); }

/* Lime panels alternate with the dark sections (ad-free, See your stats, How Vacaylo works). */
.lime-panel { background: var(--lime); color: var(--on-lime); border-radius: 28px; padding: 44px; }
.lime-panel .head p, .lime-panel .plan-note, .lime-panel .example { color: rgba(20, 49, 29, 0.8); }
.lime-panel .card, .lime-panel .table-wrap, .lime-panel .tile, .lime-panel .step { background: var(--forest); border-color: transparent; color: var(--ink); }
.lime-panel .icon { background: rgba(198, 239, 60, 0.16); color: var(--lime); }

/* Explore */
.explore { background: linear-gradient(135deg, var(--forest), var(--card)); border: 1px solid var(--line); border-radius: 28px; padding: 44px; }
.explore .card { background: rgba(14, 27, 18, 0.55); }

/* Stats tiles (like the app's stat tiles) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile b { display: block; font-size: clamp(34px, 4vw, 44px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: var(--lime); }
.tile span { color: var(--muted); font-size: 15px; }
.bar { height: 8px; border-radius: 99px; background: rgba(234, 242, 230, 0.08); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 99px; }
/* Demo bar widths (classes instead of style="--w:…" so the CSP needs no unsafe-inline). */
.bar .w-12 { width: 12%; }
.bar .w-71 { width: 71%; }
.example { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Top banner (ad-free) */

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); color: var(--on-lime); font-weight: 900; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Free vs Premium */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 16px 22px; text-align: start; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); background: var(--bg2); }
th:not(:first-child), td:not(:first-child) { text-align: center; width: 18%; }
th.prem { color: var(--lime); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--lime); font-weight: 900; font-size: 18px; }
.no { color: rgba(147, 165, 150, 0.55); }
.plan-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 18px auto 0; max-width: 620px; }

/* Footer */
footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Quote */
.quote { text-align: center; padding: 96px 0 0; }
.quote .plane { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--lime); font-size: 18px; margin-bottom: 14px; }
.quote .plane::before, .quote .plane::after { content: ""; width: 36px; height: 1px; background: var(--muted); opacity: .5; }
.quote blockquote { margin: 0 auto; max-width: 900px; color: var(--lime); font-weight: 600; font-size: clamp(30px, 5vw, 52px); line-height: 1.3; letter-spacing: .5px; }
.quote blockquote p { margin: 0; }
html[data-quote="cursive"] .quote blockquote { font-family: Pacifico, "Brush Script MT", "Segoe Script", cursive; font-weight: 400; font-size: clamp(34px, 6vw, 64px); line-height: 1.4; }
html[data-quote="italic"] .quote blockquote { font-style: italic; }
[dir="rtl"] .quote blockquote { letter-spacing: 0; font-style: normal; }

/* Store dialog */
dialog.sd { border: 1px solid var(--line); border-radius: 28px; background: var(--card); color: var(--ink); padding: 0; width: min(440px, calc(100vw - 32px)); margin: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
dialog.sd::backdrop { background: rgba(5, 12, 7, 0.72); backdrop-filter: blur(3px); }
.sd-box { position: relative; padding: 34px 26px 26px; text-align: center; }
.sd-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-size: 24px; font-weight: 800; line-height: 1; font-family: inherit; display: grid; place-items: center; padding: 0; border: 0; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sd-close:hover { background: #d4f75a; }
.sd-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--lime); }
.sd h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.5px; }
.sd-sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.sd-opts { display: grid; gap: 12px; }
.sd-opt { display: flex; align-items: center; gap: 16px; text-decoration: none; text-align: start; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; transition: border-color .15s ease, transform .15s ease; }
.sd-opt:hover:not([aria-disabled="true"]) { border-color: var(--lime); transform: translateY(-1px); }
.sd-opt svg { width: 34px; height: 34px; flex: none; }
.sd-opt small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.sd-opt b { display: block; font-size: 21px; line-height: 1.2; }
.sd-opt .soon { display: none; font-size: 12.5px; font-weight: 800; color: var(--amber); margin-top: 2px; }
.sd-opt[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.sd-opt[aria-disabled="true"] .soon { display: block; }
.sd-opt[aria-disabled="true"] small { display: none; }

@media (max-width: 900px) {
  .grid3, .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .explore { padding: 30px; }
}
@media (max-width: 600px) {
  .adfree { flex-direction: column; text-align: center; padding: 30px 22px; gap: 10px; }
  .lime-panel { padding: 22px; }
  .nav { height: 64px; gap: 8px; }
  .nav-blog { font-size: 14px; padding-inline: 4px; margin-inline-start: 10px; }
  .actions { gap: 6px; }
  .brand img { width: 46px; height: 46px; }
  .lang-btn { padding: 10px 12px; gap: 6px; font-size: 13px; }
  .lang-cur { display: none; }
  .lang-code { display: inline; }
  .lang-list { position: fixed; top: 68px; inset-inline-end: 12px; min-width: 0; width: min(260px, calc(100vw - 24px)); max-height: 60vh; }
  .btn { padding: 10px 14px; font-size: 13.5px; }
  .hero { padding: 56px 0 16px; }
  .grid3, .grid2, .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 18px; }
  section { padding-top: 64px; }
  .explore { padding: 22px; }
  .quote { padding-top: 72px; }
  th, td { padding: 13px 12px; font-size: 14.5px; }
  th { font-size: 11px; }
}

/* Waitlist button (hero, under the store buttons). Half the scale of .adfree: padding, radius and type all halved. */
@property --wl-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.waitlist-btn {
  --wl-angle: 0deg;
  display: block; margin: 18px auto 0; width: min(100%, 360px);
  color: var(--on-lime); border: 3px solid transparent; border-radius: 14px; padding: 17px 19px;
  /* Solid lime fill (padding-box) over a rotating conic gradient that only shows in the 3px border. */
  background:
    linear-gradient(var(--lime), var(--lime)) padding-box,
    conic-gradient(from var(--wl-angle), var(--lime), #ffffff 12%, #2f9e6b 30%, var(--lime) 50%, #ffffff 62%, #2f9e6b 80%, var(--lime)) border-box;
  box-shadow: 0 0 22px rgba(198, 239, 60, 0.28);
  font: inherit; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: wl-spin 7s linear infinite;
  transition: transform .15s ease, box-shadow .2s ease;
}
@keyframes wl-spin { to { --wl-angle: 360deg; } }
.waitlist-btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(198, 239, 60, 0.45); }
.waitlist-btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 5px; }
.waitlist-cta { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.waitlist-count { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: rgba(20, 49, 29, 0.85); }
@media (prefers-reduced-motion: reduce) {
  .waitlist-btn { animation: none; transition: none; }
}

/* Waitlist dialog: reuses .sd-box / .sd-close / .sd-sub from the store dialog. */
.wl { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.wl[hidden] { display: none; }
.wl-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 7, 0.72); backdrop-filter: blur(3px); }
.wl-box { position: relative; width: min(440px, 100%); margin: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.wl-form { display: grid; gap: 10px; text-align: start; }
.wl-label { font-size: 14px; font-weight: 700; }
.wl-input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid rgba(234, 242, 230, 0.35); border-radius: 14px; padding: 13px 14px; }
.wl-input::placeholder { color: var(--muted); }
.wl-input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-color: var(--lime); }
.wl-input[aria-invalid="true"] { border-color: #ff9a8a; }
.wl-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.wl-submit { white-space: normal; text-align: center; width: 100%; justify-content: center; padding: 14px 18px; font-size: 16px; }
.wl-submit:disabled { opacity: .7; cursor: progress; }
.wl-status { min-height: 1.4em; margin: 0; font-size: 14px; color: #ff9a8a; text-align: center; }
.wl-status.ok { color: var(--lime); }
.wl-privacy { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.wl-privacy a { color: var(--ink); text-underline-offset: 2px; }
.wl-success { text-align: center; }
.wl-success .wl-submit { margin-top: 4px; }
@media (max-width: 600px) {
  .wl { align-items: flex-start; padding: 12px; }
  .wl-box { padding: 30px 18px 20px; border-radius: 22px; }
}
