/* Wingfall site: Marsh Dawn colors, dark first like the app. Shared by every page. */
:root {
  --bg: #14181A;        /* Mud */
  --surface: #232A2E;   /* Slate */
  --border: #3A3833;
  --fg: #EEF1EC;        /* Fog */
  --muted: #A9B2AF;
  --accent: #1F6F6A;    /* Teal */
  --accent-text: #5FA8A1;
  --sun: #E39A3B;       /* Sunrise */
  --on-sun: #14181A;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F1EA; --surface: #FFFFFF; --border: #DDD3C3; --fg: #14181A; --muted: #565D60;
    --accent: #1F6F6A; --accent-text: #1F6F6A; --sun: #E39A3B; --on-sun: #14181A; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F1EA; --surface: #FFFFFF; --border: #DDD3C3; --fg: #14181A; --muted: #565D60;
  --accent: #1F6F6A; --accent-text: #1F6F6A; --sun: #E39A3B; --on-sun: #14181A; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
header.bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 22px; }
.brand img { width: 40px; height: 40px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:hover { color: var(--fg); }
.hero { padding: 56px 0 40px; text-align: center; }
.hero img { width: 120px; height: 120px; }
.kicker { color: var(--sun); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.1; margin: 12px 0; letter-spacing: -0.02em; }
h2 { font-size: 26px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }
.lead { color: var(--muted); font-size: 20px; max-width: 620px; margin: 0 auto; }
.soon { display: inline-block; margin-top: 24px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 32px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin: 0; }
form.join { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 8px; }
form.join input[type="email"] { flex: 1 1 240px; max-width: 340px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-size: 16px; }
button, .button { padding: 14px 22px; border-radius: 12px; border: 0; background: var(--sun); color: var(--on-sun); font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.hidden { display: none; }
.small { color: var(--muted); font-size: 14px; }
article { padding: 8px 0 48px; }
article li { margin: 6px 0; }
footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }

/* Support contact form (Netlify Forms) */
form.contact { display: grid; gap: 14px; margin: 20px 0 8px; max-width: 520px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; }
form.contact input, form.contact textarea { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; font-weight: 400; }
form.contact button { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* ---------- Home page: quiet, dark, mobile first ---------- */
.home { background: #101416; color: #EEF1EC; font-size: 16px; line-height: 1.55; }
.home main, .home .foot { max-width: 640px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(16, 20, 22, 0.78); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.top-in { max-width: 640px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.logo { display: flex; align-items: center; gap: 10px; color: #EEF1EC; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo img { border-radius: 8px; }
.pill { background: #EEF1EC; color: #101416; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

.intro { text-align: center; padding: 48px 0 8px; position: relative; }
.intro::before { content: ""; position: absolute; inset: -56px -20px auto; height: 420px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 30%, rgba(227, 154, 59, 0.16), transparent 70%); }
.intro-icon { border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.45); }
.home h1 { font-size: clamp(34px, 9.5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 24px auto 14px; max-width: 12ch; }
.intro-lead { color: #A9B2AF; font-size: 17px; max-width: 32ch; margin: 0 auto; }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 11px 22px 11px 18px; border-radius: 14px;
  background: #EEF1EC; color: #101416; text-decoration: none; font-weight: 600; font-size: 21px; line-height: 1.05; letter-spacing: -0.01em; }
.store span { display: flex; flex-direction: column; text-align: left; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.store:active, .pill:active { transform: scale(0.97); }
.meta { color: #7E8784; font-size: 13px; margin: 12px 0 0; }

.gallery { margin: 40px calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0; }
.gallery-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-row img { flex: 0 0 auto; width: min(64vw, 250px); height: auto; border-radius: 20px; scroll-snap-align: start; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

.block { padding-top: 72px; }
.eyebrow { color: #E39A3B; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.home h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 24px; }
.home h3 { font-size: 17px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.01em; }
.feats { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.feats li { counter-increment: f; position: relative; padding: 16px 0 16px 40px; border-top: 1px solid rgba(255,255,255,0.08); }
.feats li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 18px; color: #E39A3B; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feats p, .plan p { margin: 0; color: #A9B2AF; font-size: 15px; }

.plan { background: #1A2023; border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 4px 20px; }
.plan-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px 0; }
.plan-row + .plan-row { border-top: 1px solid rgba(255,255,255,0.08); }
.plan h3 em { font-style: normal; font-size: 12px; font-weight: 600; color: #101416; background: #E39A3B; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.price { font-weight: 700; font-size: 20px; white-space: nowrap; letter-spacing: -0.02em; }
.price small { font-size: 13px; color: #A9B2AF; font-weight: 500; }
.plan .plan-alt { padding: 0 0 18px; font-size: 14px; }
.fine { color: #7E8784; font-size: 12px; margin: 14px 0 0; }

.qa details { border-top: 1px solid rgba(255,255,255,0.08); }
.qa details:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.qa summary { list-style: none; cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #7E8784; border-bottom: 2px solid #7E8784; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa details p { margin: 0 0 18px; color: #A9B2AF; font-size: 15px; }

.outro { text-align: center; padding: 88px 0 24px; }
.outro img { border-radius: 15px; }
.outro h2 { max-width: 16ch; margin: 18px auto 0; }
.foot { padding-top: 40px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #7E8784; font-size: 13px; }
.foot nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.foot nav a { color: #A9B2AF; text-decoration: none; font-size: 14px; margin: 0; }
.foot p { margin: 4px 0; }

@media (min-width: 760px) {
  .home main, .home .foot, .top-in { max-width: 960px; }
  .intro { padding-top: 72px; }
  .gallery { margin-left: 0; margin-right: 0; }
  .gallery-row { padding: 0 0 8px; scroll-padding: 0; }
  .gallery-row img { width: 220px; }
  .block { max-width: 640px; margin: 0 auto; }
  .feats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
