/* turninbbq.com: Turn-In BBQ's look on the web, from the app (apps/turnin/Sources/App/UI: DesignSystem.swift's Palette,
   Sky.swift's SkyState). The landing page is the app's "Weather-style" Cook Day: a full-bleed sky by the visitor's time
   of day (data-sky on <html>, put in by site.js; sunset without it), big thin numerals, translucent glass cards, ember
   as the accent. The policy pages are the app's plain page and cards, light and dark. The store switch: data-store on
   <html> (worker.js, from wrangler.jsonc). No web fonts, no framework, nothing from another host. */

:root {
  --ember: #e8590c; --ember-bright: #ff7a3d; --ember-deep: #b5381a; --amber: #ffb340; --ok: #1f9d55;
  --page: #f2f2f7; --card: #ffffff; --card-raised: #f4f4f8; --line: #e3e3e8;
  --ink: #111111; --ink-soft: #55555c; --ink-faint: #8a8a92;
  --night: #0e1220;
  --glass: rgba(11, 18, 48, .22); --glass-line: rgba(255, 255, 255, .2); --glass-ink: #ffffff; --glass-soft: rgba(255, 255, 255, .78);
  --sky-1: #26344f; --sky-2: #8a5a5a; --sky-3: #c9733f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ember: #ff7a3d; --ok: #4cd38a; --page: #0e1220; --card: #1c2233; --card-raised: #2a3146; --line: #3a4258;
    --ink: #ffffff; --ink-soft: #d9d9e0; --ink-faint: #a9aec0; }
}
/* the sky, as SkyState's scenes (Sky.swift) */
html[data-sky="night"] { --sky-1: #05091a; --sky-2: #0e1733; --sky-3: #3a1e14; }
html[data-sky="sunrise"] { --sky-1: #2c3b66; --sky-2: #9a6a88; --sky-3: #d98a68; }
html[data-sky="day"] { --sky-1: #24609f; --sky-2: #4a82c2; --sky-3: #6a9ed6; }
html[data-sky="sunset"] { --sky-1: #26344f; --sky-2: #8a5a5a; --sky-3: #c9733f; }

* { 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; font: 17px/1.55 var(--font); color: var(--ink); background: var(--page); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--ember); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; color: #111; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* the header, on the sky (landing) or on the sky band (the policy pages) */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.1rem/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current="page"] { background: rgba(255,255,255,.16); }
.brand-t { white-space: nowrap; }
@media (max-width: 560px) { .hide-sm { display: none; } .top nav a { padding: 8px 9px; } .brand-t { font-size: 1rem; } }
@media (max-width: 400px) { .top .wrap { padding: 0 12px; gap: 8px; } .top nav { gap: 0; flex-wrap: nowrap; } .top nav a { padding: 8px 6px; font-size: .86rem; } .brand img { width: 30px; height: 30px; } }

/* ---------- the landing page: the sky ---------- */
.sky { color: var(--glass-ink); background: var(--sky-1); }
.hero, .section h2, .section .intro { text-shadow: 0 1px 3px rgba(0, 0, 0, .22); }
.hero .store, .hero .btn { text-shadow: none; }
.sky::before { content: ""; position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%); }
.sky::after { content: ""; position: fixed; inset: auto 0 0 0; height: 45vh; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 120%, rgba(255,122,61,.38), rgba(255,122,61,0) 70%); }
.embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px 2px rgba(255,122,61,.7); opacity: 0; animation: rise 9s linear infinite; }
.embers i:nth-child(1) { left: 8%; animation-delay: 0s; } .embers i:nth-child(2) { left: 22%; animation-delay: 3.1s; background: var(--ember-bright); }
.embers i:nth-child(3) { left: 41%; animation-delay: 6.2s; } .embers i:nth-child(4) { left: 63%; animation-delay: 1.7s; background: var(--ember-bright); }
.embers i:nth-child(5) { left: 79%; animation-delay: 4.6s; } .embers i:nth-child(6) { left: 92%; animation-delay: 7.4s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(24px, -70vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.caps { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--glass-soft); }

.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 40px; } }
.hero-now { text-align: center; }
@media (min-width: 900px) { .hero-now { text-align: left; } }
.hero-now .contest { margin: 0; font-weight: 600; font-size: 1.05rem; }
.count { display: block; margin: 2px 0 0; font: 200 clamp(4.2rem, 17vw, 7.6rem)/1 var(--display); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.count-next { margin: 8px 0 0; font-size: 1.3rem; font-weight: 600; }
.count-then { margin: 2px 0 0; color: var(--glass-soft); font-size: .98rem; }
.hero h1 { margin: 34px 0 10px; font: 700 clamp(2.1rem, 6vw, 3.4rem)/1.05 var(--display); letter-spacing: -.025em; }
.hero .lead { margin: 0 0 24px; font-size: 1.15rem; color: var(--glass-soft); max-width: 36em; }
@media (max-width: 899px) { .hero .lead { margin-left: auto; margin-right: auto; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 899px) { .cta { justify-content: center; } }
.fineprint { margin: 14px 0 0; font-size: .92rem; color: var(--glass-soft); }

/* the store button: Coming soon until the store switch says live */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); line-height: 1.1; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.store strong { display: block; font: 600 1.25rem/1.1 var(--display); letter-spacing: -.01em; }
a.store:hover { background: #1a1a1a; }
html[data-store="soon"] .live-only, html[data-store="live"] .soon-only { display: none !important; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 999px; font-weight: 700;
  text-decoration: none; background: var(--ember-bright); color: #fff; }
.btn:hover { background: var(--ember); }
.btn.ghost { background: rgba(255,255,255,.16); border: 1px solid var(--glass-line); }

/* a phone, as the screenshots are framed */
.phone { position: relative; width: min(300px, 78vw); margin: 0 auto; border-radius: 46px; padding: 9px; background: #0b0d14;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone img { display: block; width: 100%; aspect-ratio: 600 / 1304; border-radius: 38px; }
.hero-art { position: relative; }
.flame { position: absolute; width: 150px; height: auto; left: 50%; top: -40px; transform: translateX(-170%); z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(255,122,61,.55)); }
@media (max-width: 899px) { .flame { width: 104px; top: -26px; transform: translateX(-150%); } }

/* the sections on the sky */
.section { padding: 56px 0; }
.section h2 { margin: 0 0 10px; font: 700 clamp(1.7rem, 4.4vw, 2.5rem)/1.1 var(--display); letter-spacing: -.02em; }
.section .intro { margin: 0 0 30px; color: var(--glass-soft); font-size: 1.08rem; max-width: 42em; }
.feature { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 28px; margin: 0 0 28px; }
@media (min-width: 860px) { .feature { grid-template-columns: 1.15fr .85fr; padding: 40px 44px; }
  .feature.flip { grid-template-columns: .85fr 1.15fr; } .feature.flip .feature-art { order: -1; } }
.feature h3 { margin: 6px 0 10px; font: 700 clamp(1.4rem, 3.4vw, 1.9rem)/1.15 var(--display); letter-spacing: -.015em; }
.feature p { margin: 0 0 12px; color: var(--glass-soft); }
.feature ul { margin: 0 0 12px; padding-left: 1.1em; color: var(--glass-soft); }
.feature li { margin: 4px 0; }
.feature .phone { width: min(260px, 70vw); }
.say { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.say li { margin: 0; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--glass-line); color: #fff; font-size: .92rem; }
.say li::before { content: "\201C"; } .say li::after { content: "\201D"; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { padding: 22px; }
.tile h3 { margin: 0 0 6px; font: 700 1.15rem/1.25 var(--display); }
.tile p { margin: 0; color: var(--glass-soft); font-size: .97rem; }

/* pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { padding: 26px; display: flex; flex-direction: column; }
.plan h3 { margin: 0; font: 700 1.4rem/1.2 var(--display); }
.plan .price { margin: 6px 0 14px; font: 300 2.6rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--glass-soft); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 6px 0 6px 28px; position: relative; color: var(--glass-soft); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border: solid var(--amber);
  border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.plan.best { border-color: rgba(255,179,64,.75); box-shadow: 0 0 0 1px rgba(255,179,64,.4), 0 20px 50px -24px rgba(255,122,61,.7); }
.pill { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--ember-bright); color: #fff;
  font: 700 .68rem/1.4 var(--font); letter-spacing: .08em; vertical-align: middle; }
.terms-note { margin: 18px 0 0; font-size: .9rem; color: var(--glass-soft); max-width: 52em; }

.faq { padding: 8px 26px; }
.faq details { border-bottom: 1px solid var(--glass-line); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style-position: outside; }
.faq details p { margin: 10px 0 2px; color: var(--glass-soft); }
.sky a:not(.btn):not(.store):not(.brand):not(.madeby) { color: #ffd2b0; }
.top nav a { color: #fff !important; }

/* ---------- the policy pages: the app's plain page, with a strip of sky on top ---------- */
.band { background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 140%); }
html[data-sky] .band { background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 140%); }
.doc { max-width: 760px; margin: 0 auto; padding: 36px 20px 64px; }
.doc h1 { margin: 0 0 6px; font: 700 clamp(2rem, 6vw, 2.6rem)/1.1 var(--display); letter-spacing: -.02em; }
.doc h2 { margin: 36px 0 10px; font: 700 1.35rem/1.25 var(--display); letter-spacing: -.01em; }
.doc h3 { margin: 22px 0 6px; font: 650 1.08rem/1.3 var(--display); }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.muted { color: var(--ink-soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 22px 0; }
.card > strong { display: block; margin-bottom: 4px; font: 700 1.05rem/1.3 var(--display); }
.card ul { margin: 6px 0 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; }
.table-scroll { overflow-x: auto; }
.doc .qa { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc .qa h3 { margin: 0 0 6px; }
.doc .qa p { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.toc a:hover { border-color: var(--ember); }
.contact { font-size: 1.1rem; }

/* the footer: charcoal everywhere (the studio's mark is drawn light) */
footer.site { background: var(--night); color: #c9cbd6; padding: 34px 0 40px; font-size: .92rem; }
footer.site .wrap { display: grid; gap: 14px; }
footer.site p { margin: 0; }
footer.site a { color: #ffd2b0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site nav a { color: #fff; text-decoration: none; font-weight: 600; }
.madeby { display: inline-flex; align-items: center; gap: 10px; color: #c9cbd6 !important; text-decoration: none; font-weight: 700; }
.madeby img { height: 36px; width: auto; display: block; }
