/* Night sky, warm windows: the palette comes from the Mountain Chalet wallpapers.
   The season picker swaps the accent colour along with the weather. */
:root {
  --night: #0e1428;
  --night-2: #151d38;
  --night-3: #1d2749;
  --ink: #f4f1ea;
  --muted: #b5bcd2;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --amber: #f3b25e;
  --amber-deep: #e0892e;
  --accent: #a9d2ff;
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --text: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  color-scheme: dark;
}

html[data-season="autumn"] { --accent: #f08a3c; }
html[data-season="rain"] { --accent: #8cc4d8; }
html[data-season="spring"] { --accent: #f4a9c6; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(80, 100, 190, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(243, 178, 94, 0.08), transparent 60%),
    linear-gradient(var(--night), var(--night-2) 40%, var(--night));
  -webkit-font-smoothing: antialiased;
}

/* A sprinkle of stars behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 72% 8%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.4px 1.4px at 88% 34%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 62%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.2px 1.2px at 22% 84%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 64% 92%, rgba(255,255,255,0.4), transparent);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.6s;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #2a1606;
  background: linear-gradient(var(--amber), var(--amber-deep));
  box-shadow: 0 8px 24px rgba(224, 137, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.button-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.button-small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(14, 20, 40, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.topnav { display: flex; gap: 1.6rem; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.topnav a:hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) 4rem;
  text-align: center;
}
.lede { max-width: 640px; margin: 1.4rem auto 2rem; font-size: 1.15rem; color: var(--muted); }

.season-picker {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 1.6rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.season-picker button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.season-picker button[aria-pressed="true"] { color: var(--night); background: var(--accent); }

/* The live demo: a pretend Mac desktop the weather plays on. */
.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  text-align: left;
}
.stage-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.stage-wallpaper.is-fading { opacity: 0.25; }
.stage-menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0.9rem;
  font-size: clamp(0.6rem, 1.1vw, 0.78rem);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 14, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menubar-left, .menubar-right { display: flex; gap: 1rem; align-items: center; }
.menubar-icon { color: var(--accent); transition: color 0.6s; }

.fake-window {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(30, 32, 42, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
  will-change: transform;
}
.fake-window.is-dragging { cursor: grabbing; }
.fake-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fake-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.fake-titlebar i:nth-child(2) { background: #febc2e; }
.fake-titlebar i:nth-child(3) { background: #28c840; }
.fake-titlebar span { margin-left: auto; margin-right: auto; padding-right: 40px; }
.fake-body { padding: 0.8rem 1rem; font-size: clamp(0.62rem, 1.1vw, 0.82rem); color: rgba(255, 255, 255, 0.78); }
.fake-body p { margin: 0 0 0.5rem; }
.fake-heading { font-weight: 700; font-size: 1.15em; color: #fff; }
.fake-line { height: 0.55em; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.fake-line.short { width: 60%; }

.stage-weather { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.critter { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; transition: opacity 0.6s; will-change: transform; }
.critter.is-hidden { opacity: 0; }
.stage-dock {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.2%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  padding: 0.4rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stage-dock i { width: clamp(16px, 2.6vw, 30px); aspect-ratio: 1; border-radius: 24%; background: linear-gradient(#6ea8ff, #3a6fe0); }
.stage-dock i:nth-child(2) { background: linear-gradient(#ffd36b, #f0a53a); }
.stage-dock i:nth-child(3) { background: linear-gradient(#7be08f, #33a854); }
.stage-dock i:nth-child(4) { background: linear-gradient(#ff8b8b, #e0475a); }
.stage-dock i:nth-child(5) { background: linear-gradient(#c7a6ff, #8a5ce6); }
.stage-dock i:nth-child(6) { background: linear-gradient(#e8edf5, #b9c2d3); }
.stage-hint {
  position: absolute;
  z-index: 5;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--night);
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: opacity 0.4s, background 0.6s;
}
.stage-hint.is-done { opacity: 0; }

.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.fineprint { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* Phones and tablets get "Email me the link" instead of the download buttons (html.is-handheld, set in <head>). */
html .only-handheld { display: none; } /* beats .button's display */
html.is-handheld .only-desktop { display: none; }
html.is-handheld .only-handheld { display: block; }
html.is-handheld .topbar .only-handheld { display: inline-flex; }

.email-link-slot { max-width: 520px; margin: 2.2rem auto 0; scroll-margin-top: 6rem; }
.hero .email-link-slot + .hero-actions { margin-top: 1.2rem; }
.email-link-pitch { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.5; color: var(--muted); }
.email-link-pitch strong { color: var(--ink); font-weight: 600; }
.email-link-row { display: flex; gap: 0.6rem; }
.email-link-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px or more keeps iOS from zooming in on focus */
}
.email-link-input::placeholder { color: rgba(181, 188, 210, 0.65); }
.email-link-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.email-link-input[aria-invalid="true"] { border-color: #ff8f8f; }
.email-link-send { flex: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.email-link-send:disabled { opacity: 0.7; cursor: progress; transform: none; }
.email-link-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.email-link-note { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--muted); }
.email-link-note.is-error { color: #ff9d9d; }
.email-link-sent { padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.email-link-sent-title { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); outline: none; }
.email-link-sent .email-link-note { margin-top: 0.4rem; }
.closing .email-link-slot { margin-top: 0; }
.closing .email-link-pitch { color: var(--ink); }

@media (max-width: 420px) {
  .email-link-input { padding-inline: 1rem; }
  .email-link-send { padding-inline: 1.1rem; }
  /* The closing card has its own padding, so there's no room side by side. */
  .closing .email-link-row { flex-direction: column; }
  .closing .email-link-send { width: 100%; }
}
@media (max-width: 359px) {
  .email-link-row { flex-direction: column; }
  .email-link-send { width: 100%; }
}

/* Sections */
.section { max-width: 1160px; margin: 0 auto; padding: 5rem clamp(1rem, 4vw, 2rem); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 1rem; }

.season-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.season-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.2s;
}
.season-card:hover { transform: translateY(-3px); }
html[data-season="winter"] [data-card="winter"],
html[data-season="autumn"] [data-card="autumn"],
html[data-season="rain"] [data-card="rain"],
html[data-season="spring"] [data-card="spring"] { border-color: var(--accent); }
.season-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  height: 170px;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.14), transparent 70%), var(--night-3);
}
[data-card="winter"] .season-art { background: radial-gradient(circle at 50% 120%, rgba(169, 210, 255, 0.35), transparent 70%), #1a2448; }
[data-card="autumn"] .season-art { background: radial-gradient(circle at 50% 120%, rgba(240, 138, 60, 0.35), transparent 70%), #2a1d2c; }
[data-card="rain"] .season-art { background: radial-gradient(circle at 50% 120%, rgba(140, 196, 216, 0.3), transparent 70%), #16263a; }
[data-card="spring"] .season-art { background: radial-gradient(circle at 50% 120%, rgba(244, 169, 198, 0.32), transparent 70%), #22203a; }
.season-art img { width: auto; height: 120px; }
.season-art .season-art-side { height: 64px; }
.season-card h3 { margin-bottom: 0.5rem; }
.season-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.78rem; color: var(--ink); background: rgba(255, 255, 255, 0.08); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
}
.gallery-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
  position: absolute;
  left: 0.9rem; bottom: 0.8rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(14, 20, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature svg { width: 30px; height: 30px; margin-bottom: 0.8rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.6s; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  color: var(--night);
  background: var(--amber);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); }

.plans { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.plan { flex: 0 1 320px; padding: 1.8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; }
.plan-price { font-family: var(--display); font-size: 2.6rem; margin: 0.6rem 0; }
.plan-price span { display: block; font-family: var(--text); font-size: 0.9rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 0.7rem; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

.closing {
  width: min(1160px, 100% - 2rem);
  margin: 2rem auto 5rem;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(rgba(14, 20, 40, 0.55), rgba(14, 20, 40, 0.85)), url("assets/wallpapers/winter-thumb.jpg") center / cover;
}
html[data-season="autumn"] .closing { background-image: linear-gradient(rgba(14, 20, 40, 0.55), rgba(14, 20, 40, 0.85)), url("assets/wallpapers/autumn-thumb.jpg"); }
html[data-season="rain"] .closing { background-image: linear-gradient(rgba(14, 20, 40, 0.55), rgba(14, 20, 40, 0.85)), url("assets/wallpapers/rain-thumb.jpg"); }
html[data-season="spring"] .closing { background-image: linear-gradient(rgba(14, 20, 40, 0.55), rgba(14, 20, 40, 0.85)), url("assets/wallpapers/spring-thumb.jpg"); }
.closing p { color: var(--muted); margin: 0.8rem 0 1.8rem; }

.footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.2rem; margin-left: auto; }
.footer a { color: var(--muted); }

/* Legal and other plain pages */
.page { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.page h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.page h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.page p, .page li { color: var(--muted); }

@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar .button { margin-left: auto; }
  .season-cards, .features, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stage { aspect-ratio: 4 / 5; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .season-picker { gap: 0.2rem; }
  .season-picker button { padding: 0.5rem 0.7rem; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .season-card, .gallery-item img { transition: none; }
}
