/* Alpy site — built to the "golden hour editorial" reference (DESIGN.md).
   Parchment canvas, ink text, hairline borders, wine as the ONLY chromatic
   button fill, violet ONLY for links, lagoon ONLY for full-bleed bands.
   Headlines speak at weight 460. No drop shadows anywhere. */

:root {
  --wine: #421d24;
  --wine-deep: #321419;
  --violet: #714cb6;
  --lilac: #d4c7ff;
  --lagoon: #0c4243;
  --canvas: #f2f0eb;
  --line: #e3e3e2;
  --ink: #292827;
  --stone: #666666;
  --paper: #ffffff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Bradley Hand", cursive;

  --radius-tabs: 8px;
  --radius-cards: 16px;
  --radius-buttons: 16px;
  --radius-small-buttons: 8px;
  --radius-pills: 999px;

  --page-max: 1200px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 460;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); text-decoration: underline; text-decoration-color: transparent;
    text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(44px, 7vw, 64px); font-weight: 460;
  line-height: .96; letter-spacing: -0.028em; margin: 0;
}
.h-lg {
  font-size: clamp(34px, 5vw, 49px); font-weight: 460;
  line-height: 1.04; letter-spacing: -0.027em; margin: 0;
}
.h-sm { font-size: 28px; font-weight: 460; line-height: 1.14; letter-spacing: -0.022em; margin: 0; }
.kicker { font-size: 14px; font-weight: 540; color: var(--stone); margin: 0 0 16px; }
.sub { font-size: 18px; letter-spacing: -0.008em; color: var(--stone); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 460; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-wine { background: var(--wine); color: #fff; height: 48px; padding: 0 20px; border-radius: var(--radius-buttons); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-lilac { background: var(--lilac); color: var(--ink); border-color: var(--ink);
  padding: 6px 16px; border-radius: var(--radius-small-buttons); font-size: 15px; line-height: 1.4; }
.btn-lilac:hover { background: #c6b6ff; }
.btn-white { background: var(--paper); color: var(--ink); height: 48px; padding: 0 20px; border-radius: var(--radius-buttons); }
.btn-white:hover { background: #f8f7f4; }
.btn-outline-white { border-color: #fff; color: #fff; padding: 8px 20px; border-radius: var(--radius-small-buttons); }
.btn-outline-white:hover { background: rgba(255,255,255,.08); }
.ghost { color: var(--ink); text-decoration: none; }
.ghost:hover { text-decoration: underline; text-decoration-color: currentColor; }

.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img { height: 50px; width: auto; }
.prose .appstore-badge img { border-radius: 0; } /* Apple's artwork, unmodified */

/* ---------- Announcement pill ---------- */
.announce { padding: 8px 8px 0; }
.announce-pill {
  background: var(--wine); color: #fff; border-radius: var(--radius-pills);
  padding: 12px 16px; display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; font-size: 14px; text-align: center;
}
.announce-pill svg { flex: none; }
.announce-pill a { color: #fff; border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius-pills); padding: 3px 12px; text-decoration: none; }
.announce-pill a:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(242,240,235,.72); }
.bar { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; justify-self: start; }
.wordmark:hover { text-decoration: none; }
.nav-center { display: flex; gap: 32px; }
.nav-center a { color: var(--ink); font-size: 16px; text-decoration: none; }
.nav-center a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.nav-right .ghost { font-size: 16px; }
@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
}
@media (max-width: 420px) { .nav-right .ghost { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; min-height: 640px;
  display: flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .hero { min-height: 780px; } }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,16,14,.24), rgba(26,16,14,.06) 45%, rgba(26,16,14,.5)); }
.hero-inner { position: relative; text-align: center; max-width: 760px; padding: 96px var(--gutter); }
.hero .sub { color: rgba(255,255,255,.9); max-width: 620px; margin: 20px auto 32px; text-wrap: balance; }
.hero-ctas { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-ctas .ghost { color: #fff; }
.hero-credit { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.hero-credit a { color: rgba(255,255,255,.6); }

.float-card {
  position: absolute; width: 228px; padding: 16px; display: none;
  background: rgba(0,0,0,.85); color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-cards);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.float-card img { border-radius: 10px; }
.float-card .fc-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.float-card .fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); flex: none; }
.float-card .fc-title { font-size: 14px; font-weight: 540; }
.float-card .fc-body { font-size: 12px; color: rgba(255,255,255,.65); margin: 4px 0 0; line-height: 1.4; }
@media (min-width: 1180px) {
  .float-card { display: block; }
  .float-l { left: 4%; bottom: 9%; }
  .float-r { right: 4%; top: 11%; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

/* ---------- Source strip (trust logo cards) ---------- */
.trust { text-align: center; padding-top: 48px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(6, 1fr); } }
.trust-cell { background: var(--paper); border: 1px solid var(--line); margin: 0 -1px -1px 0; padding: 24px 12px; }
.trust-cell b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.trust-cell span { font-size: 12px; color: var(--stone); }

/* ---------- Suite tabs ---------- */
.suite-head { max-width: 680px; margin-bottom: 40px; }
.suite-head .sub { margin: 16px 0 0; }
.tabs {
  display: none; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-tabs);
  overflow: hidden; margin-bottom: 16px;
}
.js .tabs { display: grid; }
@media (min-width: 900px) { .tabs { grid-template-columns: repeat(6, 1fr); } }
.tab {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: background-color .2s ease;
}
@media (min-width: 900px) { .tab { border-bottom: 0; } .tab:last-child { border-right: 0; } }
@media (max-width: 899px) { .tab:nth-child(3n) { border-right: 0; } .tab:nth-child(n+4) { border-bottom: 0; } }
.tab svg { width: 20px; height: 20px; color: var(--ink); }
.tab:hover { background: #faf9f6; }
.tab[aria-selected="true"] { background: var(--lilac); }
.tab[aria-selected="true"] svg { color: var(--wine); }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-cards);
  padding: 24px; display: grid; gap: 32px; align-items: center; margin-bottom: 16px;
}
.js .panel:not(.is-active) { display: none; }
@media (min-width: 900px) { .panel { grid-template-columns: 340px 1fr; gap: 64px; padding: 48px 64px; } }
.panel-media { background: #000; border-radius: 12px; padding: 32px 24px; display: flex; justify-content: center; }
.panel-media img, .panel-media video { width: 280px; max-width: 100%; border-radius: 22px; border: 1px solid rgba(255,255,255,.14); }
.panel-copy { max-width: 520px; }
.panel-copy .h-sm { margin-bottom: 16px; }
.panel-copy p { margin: 0 0 12px; }
.panel-copy .muted { color: var(--stone); }

/* ---------- Product cards ---------- */
.cards { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-cards); padding: 24px; }
.card svg { width: 20px; height: 20px; color: var(--wine); }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.005em; margin: 16px 0 8px; }
.card p { margin: 0 0 12px; }

/* ---------- Lagoon band ---------- */
.band-lagoon { background: var(--lagoon); color: #fff; overflow: hidden; }
.lagoon-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .lagoon-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.collage { position: relative; max-width: 440px; margin: 0 auto; width: 100%; aspect-ratio: 4 / 5; }
.collage .photo { position: absolute; inset: 6% 10% 0 0; width: 90%; height: 94%; object-fit: cover; border-radius: 4px; }
.collage .rect { position: absolute; border-radius: 2px; }
.collage .r1 { background: rgba(212,199,255,.5); width: 46%; height: 30%; left: -4%; top: 0; }
.collage .r2 { background: rgba(120,170,255,.4); width: 34%; height: 40%; right: 0; top: 30%; }
.collage .r3 { background: rgba(255,168,200,.45); width: 40%; height: 18%; left: 18%; bottom: -3%; }
.collage .script {
  position: absolute; left: 6%; bottom: 14%; margin: 0;
  font-family: var(--script); font-size: clamp(28px, 3.4vw, 40px); line-height: 1; color: #fff;
  transform: rotate(-6deg);
}
.collage .credit { position: absolute; right: 10%; bottom: -26px; margin: 0; font-size: 12px; color: rgba(255,255,255,.55); }
.collage .credit a { color: rgba(255,255,255,.55); }
.lagoon-copy .display { color: #fff; }
.lagoon-copy p { color: rgba(255,255,255,.8); max-width: 520px; margin: 24px 0 0; }
.lagoon-copy .btn { margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; } }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 20px; font-weight: 540; letter-spacing: -0.007em; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--stone); max-width: 620px; }

/* ---------- Gradient band ---------- */
.band-glow { position: relative; overflow: hidden; }
.band-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 70% at 68% 50%, rgba(140,100,230,.55), transparent 70%),
    radial-gradient(30% 70% at 93% 50%, rgba(90,140,255,.5), transparent 70%),
    radial-gradient(45% 60% at 50% 98%, rgba(255,150,190,.55), transparent 70%),
    radial-gradient(35% 50% at 50% 75%, rgba(110,220,230,.45), transparent 70%);
}
.glow-row { position: relative; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.glow-row .h-lg { max-width: 620px; }
.glow-row .sub { margin: 16px 0 0; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine); color: rgba(255,255,255,.7); padding: 64px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 12px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-brand .wordmark { color: #fff; }
.footer-brand p { margin: 12px 0 0; max-width: 300px; }
.footer-base { margin-top: 56px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-legal { margin-top: 8px; }

/* ---------- Black feature band: screenshots sink into the black ---------- */
.band-black { background: #000; color: #fff; }
.band-black .h-lg { color: #fff; }
.band-black .sub, .band-black .panel-copy .muted { color: rgba(255,255,255,.64); }
.band-black a { color: var(--lilac); }
.band-black .tabs { background: #0c0c0c; border-color: #262626; }
.band-black .tab { background: #0c0c0c; color: #fff; border-color: #262626; }
.band-black .tab svg { color: rgba(255,255,255,.85); }
.band-black .tab:hover { background: #161616; }
.band-black .tab[aria-selected="true"] { background: var(--lilac); color: var(--ink); }
.band-black .tab[aria-selected="true"] svg { color: var(--wine); }
.band-black .panel { background: transparent; border-color: transparent; }
.band-black .panel-media { background: transparent; padding: 0; }
.band-black .panel-media img, .band-black .panel-media video {
  border: 0; border-radius: 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.band-black .card { background: #0c0c0c; border-color: #262626; }
.band-black .card svg { color: var(--lilac); }

/* ---------- Page hero + sheet (every non-home page) ---------- */
.page-hero { position: relative; overflow: hidden; height: 300px; color: #fff; }
@media (min-width: 900px) { .page-hero { height: 360px; } }
.page-hero .hero-photo { object-position: center 30%; }
.page-hero-inner { position: relative; padding-top: 72px; }
.page-kicker { font-size: 15px; font-weight: 540; color: rgba(255,255,255,.88); margin: 0; }
.page-kicker a { color: #fff; }
.sheet-wrap { position: relative; margin-top: -170px; padding-bottom: 96px; }
@media (min-width: 900px) { .sheet-wrap { margin-top: -200px; } }
.prose.sheet {
  max-width: 820px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-cards); padding: 40px 24px 56px;
}
@media (min-width: 768px) { .prose.sheet { padding: 56px 64px 72px; } }
.prose.sheet > h1:first-child, .prose.sheet > p:first-child + h1 { margin-top: 0; }

/* ---------- Prose pages (blog, resorts, compare, privacy) ---------- */
.prose-wrap { padding: 56px 0 96px; }
.prose { max-width: 700px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 460; letter-spacing: -0.025em; line-height: 1.1; }
.prose h2 { font-size: 28px; font-weight: 460; letter-spacing: -0.022em; line-height: 1.14; margin-top: 2em; }
.prose h3 { font-size: 20px; font-weight: 540; letter-spacing: -0.007em; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose a { text-decoration-color: rgba(113,76,182,.35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose img { border-radius: var(--radius-cards); }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--wine); color: var(--stone); }
.prose code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: .88em; }
.prose pre { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-tabs); padding: 16px; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--paper); font-weight: 600; }
.post-meta { max-width: 700px; margin: 0 auto 8px; font-size: 14px; color: var(--stone); }
.post-meta a { color: var(--stone); }
