/* Slayd website. Colours and fonts match the app (src/constants/theme.ts). */
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/SpaceGrotesk_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/SpaceGrotesk_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/WorkSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/WorkSans_600SemiBold.ttf") format("truetype"); }

:root {
  --bg: #F5F4F1; --bg2: #ECE9E3; --card: #FFFFFF; --ink: #131211; --muted: #5E5A54;
  --accent: #131211; --on-accent: #FFFFFF; --line: #EAE7E0; --green: #1E9E5D; --green-soft: #E3F5EA;
  --warn-bg: #FFF4D6; --warn-ink: #5A4300;
  --shadow: 0 1px 2px rgba(19,18,17,.04), 0 8px 24px rgba(19,18,17,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16150F; --bg2: #201E19; --card: #262420; --ink: #F2F0EC; --muted: #B3AEA5;
    --accent: #F2F0EC; --on-accent: #171512; --line: #37342D; --green: #34C57F; --green-soft: #1B3326;
    --warn-bg: #3A2F10; --warn-ink: #F5DFA0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16150F; --bg2: #201E19; --card: #262420; --ink: #F2F0EC; --muted: #B3AEA5;
  --accent: #F2F0EC; --on-accent: #171512; --line: #37342D; --green: #34C57F; --green-soft: #1B3326;
  --warn-bg: #3A2F10; --warn-ink: #F5DFA0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
section { padding: 48px 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.eyebrow { font: 600 .8rem/1 "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem "Space Grotesk", sans-serif; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; display: block; }
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a, .menu a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav-desktop a:hover, .menu a:hover { background: var(--bg2); }
.nav-desktop a[aria-current="page"], .menu a[aria-current="page"] { background: var(--bg2); }
.icon-btn { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; font-size: 1.1rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu .panel { position: absolute; right: 0; top: 52px; width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: grid; }
@media (min-width: 900px) { .nav-desktop { display: flex; } .menu { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 1rem "Work Sans", sans-serif; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.btn:hover { opacity: .88; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--bg2); color: var(--muted); border-color: var(--line); cursor: not-allowed; opacity: 1; }
.btn small { font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Layout bits */
.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 14ch; }
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 1.1rem "Space Grotesk", sans-serif; margin-bottom: 12px; }
.band { background: var(--bg2); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 8px; height: 4px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.note { background: var(--green-soft); border-radius: 16px; padding: 16px 20px; }
.draft { background: var(--warn-bg); color: var(--warn-ink); border-radius: 16px; padding: 14px 18px; font-size: .95rem; }
mark.ph { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .answer { padding: 0 20px 16px; color: var(--muted); }

/* Legal / long text */
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg2); }
.updated { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.site-footer a { color: var(--ink); }

/* Share page card */
.share-card { max-width: 440px; margin: 32px auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.share-card .photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bg2); }
.share-card .body { padding: 22px; }
.share-card h1 { font-size: 1.6rem; margin-bottom: .2em; }
.share-card .price { font: 700 1.2rem "Space Grotesk", sans-serif; }
.share-card .btn { width: 100%; margin-top: 10px; }
.vb { display: inline-flex; vertical-align: middle; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
