/* Shiok Weather website. Colours and fonts follow the app (src/theme.ts, src/levels.ts). */
:root {
  --bg: #fbf6f3;
  --surface: #ffffff;
  --text: #1e1513;
  --muted: #6a5853;
  --border: #efe3dd;
  --primary: #c2301f;
  --primary-dark: #9e2214;
  --tint: #fdeee6;
  --brand-a: #fd8918;
  --brand-b: #e2532e;
  --good: #2e9e5b;
  --moderate: #e9b824;
  --unhealthy: #ee7a2b;
  --very: #d23a3a;
  --hazardous: #7a2e8e;
  --radius: 22px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 243, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }
.nav a.btn { padding: 9px 16px; font-size: 0.9rem; color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons and store buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 0; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #111; color: #fff; text-decoration: none; line-height: 1.2; }
.store:hover { background: #2b2b2b; color: #fff; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.85; }
.store strong { font-size: 1.12rem; font-weight: 700; }
.store.soon { background: #fff; color: var(--text); border: 1.5px solid var(--border); cursor: default; }
.store.soon small { color: var(--muted); opacity: 1; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; list-style: none; padding: 0; margin: 0; }
.trust li::before { content: '✓'; color: var(--good); font-weight: 800; margin-right: 6px; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* Phone mock-ups (drawn with HTML, like the app's screens) */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: 290px; max-width: 100%; background: var(--bg); border-radius: 40px; border: 10px solid #1e1513; box-shadow: 0 30px 60px -20px rgba(122, 7, 16, 0.35); overflow: hidden; flex: none; }
.phone .screen { padding: 14px 12px 18px; }
.app-hero { border-radius: 24px; padding: 18px 16px 16px; color: #fff; position: relative; overflow: hidden; }
.app-hero.moderate { background: linear-gradient(200deg, #3e8e9c, #296c7a 55%, #17434f); }
.app-hero.unhealthy { background: linear-gradient(200deg, #e5792a, #c2561c 55%, #8a320b); }
.app-hero.good { background: linear-gradient(200deg, #3fae6e, #24844f 55%, #11552f); }
.app-hero .kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; opacity: 0.9; }
.app-hero .place { font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.app-hero .area { font-size: 0.78rem; opacity: 0.9; margin-bottom: 10px; }
.app-hero .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-hero .nums > div + div { border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: 10px; }
.app-hero .label { font-size: 0.72rem; font-weight: 700; opacity: 0.92; }
.app-hero .big { font-family: var(--display); font-size: 3.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 4px 0 6px; }
.pill { display: inline-block; background: #fff; color: var(--text); font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pill.soft { background: rgba(255, 255, 255, 0.8); }
.app-hero .wx { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.17); border: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.75rem; }
.app-hero .wx b { font-family: var(--display); font-size: 1.3rem; }
.app-hero .advice { font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; margin-top: 12px; }
.app-card { background: var(--surface); border-radius: 18px; padding: 12px 14px; margin-top: 10px; font-size: 0.8rem; }
.app-card .title { font-family: var(--display); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.row + .row { border-top: 1px solid var(--border); }
.ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(var(--c) var(--p), #f1ece9 0); }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; font-size: 0.72rem; }
.days div { background: var(--bg); border-radius: 12px; padding: 6px 2px; }
.days .ico { font-size: 1.2rem; line-height: 1.5; }
.alt-hero { background: linear-gradient(200deg, #3e8e9c, #296c7a 55%, #17434f); border-radius: 24px; padding: 18px 14px; color: #fff; text-align: center; }
.alt-hero .big { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 1; letter-spacing: -0.04em; }
.alt-hero .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; text-align: left; }
.alt-hero .tiles div { background: rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 8px 10px; font-size: 0.7rem; }
.alt-hero .tiles b { display: block; font-size: 1rem; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; background: var(--tint); }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 8px 0 8px 32px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 6px var(--brand-b); }

/* Level scale */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 26px; }
.levels div { border-radius: 16px; padding: 14px 12px; color: #fff; font-weight: 700; font-size: 0.9rem; }
.levels small { display: block; font-weight: 500; opacity: 0.9; }
@media (max-width: 720px) { .levels { grid-template-columns: 1fr 1fr; } }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.langs span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

/* Word block and closing call to action */
.word { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.word img { width: 84px; height: 84px; border-radius: 22px; flex: none; }
.word .term { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.word .term em { font-family: var(--body); font-style: normal; font-weight: 500; font-size: 1rem; color: var(--muted); }
@media (max-width: 600px) { .word { flex-direction: column; align-items: flex-start; } }
.cta { background: linear-gradient(200deg, var(--brand-a), var(--brand-b) 55%, #7a0710); color: #fff; border-radius: 32px; padding: 56px 32px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: 0.92; }
.cta .stores { justify-content: center; }
.cta .store.soon { background: rgba(255, 255, 255, 0.95); }

/* Sister app */
.sister { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sister img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.sister p { margin: 0; color: var(--muted); }

/* Legal / text pages */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }
.doc .updated { color: var(--muted); font-weight: 600; }
.note { background: var(--tint); border-radius: 16px; padding: 16px 20px; }

/* Footer */
.site-footer { background: #1e1513; color: #e9dcd6; padding: 48px 0 36px; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer .fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #b9a8a1; font-size: 0.85rem; }
