/* heyhasty.com: the app's own design system (app/src/theme), on the web. */
@font-face { font-family: 'Anton'; src: url('/assets/anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dmsans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dmsans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dmsans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/assets/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/caveat-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F8F4EB; --surface: #FFFDF8; --surface-alt: #EFE9DD; --line: #E2DBCC;
  --text: #121213; --muted: #6E6C67; --accent: #FF5B1F; --on-accent: #fff;
  --coral: #F4604B; --coral-ink: #1A0B08; --mustard: #F8CF5A; --mustard-ink: #1D1602;
  --sky: #A7DCEA; --sky-ink: #06181D; --lavender: #C9B6F3; --lavender-ink: #150B2A;
  --sage: #A9C4A5; --sage-ink: #0F1A0E; --lime: #DCF3A0; --lime-ink: #141C03;
  --peach: #FFB27A; --peach-ink: #2A1203; --periwinkle: #6F6BF4; --periwinkle-ink: #fff;
  --ink-card: #1E1E21; --ink-card-ink: #F6F3EC;
  --radius: 28px; --pill: 999px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(40,30,10,.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121213; --surface: #1B1B1D; --surface-alt: #252528; --line: #303034;
    --text: #F6F3EC; --muted: #9D9A93; --shadow: 0 12px 32px -18px rgba(0,0,0,.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121213; --surface: #1B1B1D; --surface-alt: #252528; --line: #303034;
  --text: #F6F3EC; --muted: #9D9A93; --shadow: 0 12px 32px -18px rgba(0,0,0,.8); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 'DM Sans', system-ui, sans-serif; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: var(--pill); z-index: 10; }
.skip:focus { left: 16px; }

/* Type: Anton for H1–H2 only, as in the app. */
h1, h2, .poster { font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .3px; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(46px, 8vw, 96px); }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font: 800 22px/1.25 'Bricolage', 'DM Sans', sans-serif; letter-spacing: -.3px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.label { font: 700 14px/1 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.hand { font-family: 'Caveat', cursive; font-weight: 700; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 'Bricolage', sans-serif; letter-spacing: -.5px; }
.brand img { width: 40px; height: 40px; }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: var(--pill); font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-alt); }
@media (max-width: 760px) { .nav a:not(.keep) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 10px 0 26px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font: 700 18px/1 'DM Sans', sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn .cap { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); padding: 0 24px; }
.btn.dark { background: var(--text); color: var(--bg); }
.soon { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 22px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; min-height: 56px; justify-content: center; }
.soon small { font-size: 12px; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.soon strong { font: 700 19px/1 'DM Sans', sans-serif; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.pills li { padding: 6px 14px; border-radius: var(--pill); background: var(--surface-alt); font-size: 15px; font-weight: 500; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin-top: 14px; }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The letter in flight */
.flight { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.flight svg { width: 100%; height: auto; overflow: visible; }
.flight .pin circle { fill: var(--text); } .flight .pin .halo { fill: var(--accent); opacity: .25; }
.flight .pin text { fill: var(--text); font: 700 20px 'DM Sans', sans-serif; }
.flight image { filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.status { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); background: var(--surface); border-radius: var(--pill); padding: 10px 18px; box-shadow: var(--shadow); font-weight: 500; white-space: nowrap; font-size: 16px; }
.status b { color: var(--accent); }

/* Colour-block cards, as in the app */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card-c { border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-c .art { width: 132px; margin: auto 0 0 auto; }
.card-c .num { font: 400 64px/1 'Anton', sans-serif; opacity: .9; }
.card-c p { max-width: 24em; }
.tilt-l { transform: rotate(-1.5deg); } .tilt-r { transform: rotate(1.5deg); }
.t-coral { background: var(--coral); color: var(--coral-ink); } .t-mustard { background: var(--mustard); color: var(--mustard-ink); }
.t-sky { background: var(--sky); color: var(--sky-ink); } .t-lavender { background: var(--lavender); color: var(--lavender-ink); }
.t-sage { background: var(--sage); color: var(--sage-ink); } .t-lime { background: var(--lime); color: var(--lime-ink); }
.t-peach { background: var(--peach); color: var(--peach-ink); } .t-periwinkle { background: var(--periwinkle); color: var(--periwinkle-ink); }
.t-ink { background: var(--ink-card); color: var(--ink-card-ink); }
.t-ink .art { filter: invert(1) hue-rotate(180deg); }

/* The stamp icon, shown big */
.stamp-show { max-width: 360px; justify-self: center; transform: rotate(3deg); }
.stamp-show img { border-radius: 22%; box-shadow: var(--shadow); }
@media (max-width: 900px) { section .wrap[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; } }

/* "What it doesn't have" */
.nope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--line); }
.nope li { list-style: none; padding: 22px 8px; border-bottom: 1.5px solid var(--line); font: 800 clamp(20px, 2.4vw, 28px)/1.2 'Bricolage', sans-serif; letter-spacing: -.4px; }
.nope li span { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.nope { padding: 0; margin: 0; }
@media (max-width: 700px) { .nope { grid-template-columns: 1fr 1fr; } }

/* Routes table */
.routes { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.routes th, .routes td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.routes th { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.routes tr:last-child td { border-bottom: 0; }

/* Lists of facts */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); padding: 0; margin: 0; }
.facts li { list-style: none; background: var(--surface); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.facts li strong { display: block; font: 800 20px/1.3 'Bricolage', sans-serif; margin-bottom: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--surface); border-radius: 20px; padding: 0 24px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 20px 0; font: 800 20px/1.35 'Bricolage', sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font: 400 28px/1 'DM Sans'; }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq .a { padding-bottom: 20px; }

/* Note card (letter on paper) */
.paper { background: #FFFCF3; color: #2a2118; border-radius: 6px; padding: 34px 36px; box-shadow: var(--shadow); background-image: repeating-linear-gradient(transparent 0 33px, #e8dcc6 33px 34px); line-height: 34px; font-size: 26px; }
.paper .hand { font-size: 28px; }

/* Closing */
.closing { text-align: center; }
.closing .cta { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Footer */
footer { border-top: 1.5px solid var(--line); padding: 44px 0 56px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; } footer a:hover { text-decoration: underline; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* Prose pages */
.prose { max-width: 46em; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(30px, 4vw, 42px); }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: 8px; }
.crumb { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.updated { font-size: 14px; color: var(--muted); }

/* Early-access form */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { margin-top: 12px; max-width: 560px; }
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-row input { flex: 1 1 240px; min-height: 56px; padding: 0 22px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 500 18px 'DM Sans', sans-serif; }
.wl-row input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.wl-row .btn { flex: 0 0 auto; }
.wl-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.wl-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.wl-msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 500; font-size: 16px; }
.wl-msg.bad { color: #E5484D; }
.waitlist.done .wl-msg { color: var(--text); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.closing-form { display: flex; justify-content: center; text-align: left; margin-top: 26px; }
@media (max-width: 520px) { .wl-row .btn { width: 100%; justify-content: space-between; } }

/* Privacy notice */
.notice { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; background: var(--surface); color: var(--text); border-radius: 22px; padding: 18px 20px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.45); display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); }
.notice[hidden] { display: none; }
.notice p { margin: 0; font-size: 15px; line-height: 1.45; }
.notice .btn { min-height: 44px; padding: 0 20px; font-size: 16px; flex: none; }
@media (max-width: 520px) { .notice { flex-direction: column; align-items: stretch; } }

/* Guides */
.guide-card { text-decoration: none; }
.guide-card:hover { transform: translateY(-3px) rotate(0deg); transition: transform .2s; }
.guide-cta { margin: 48px 0 8px; min-height: 0; }
.guide-cta .wl-row input { border-color: transparent; }
.guide-cta .wl-consent { color: inherit; opacity: .85; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); }
