/* Quiet Moon site. The app's palettes and type (src/theme.ts) on its own painted skies.
   The visitor picks a sky and the whole page follows, the way the app does. */

@font-face { font-family: 'Fraunces'; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/Fraunces_300Light.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/Fraunces_400Regular_Italic.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/Fraunces_600SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(fonts/DMSans_400Regular.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(fonts/DMSans_500Medium.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(fonts/DMSans_600SemiBold.woff2) format('woff2'); }

/* Sunset is the sky a first visit opens on; site.js swaps data-sky on <html>. */
:root, :root[data-sky="sunset"] {
  --bg: #fbeee4; --ink: #4a2530; --soft: #5e3340; --muted: #83565d; --card: rgba(255,250,246,0.86); --solid: #fffaf6;
  --chip: rgba(74,37,48,0.07); --line: rgba(74,37,48,0.16); --accent: #b2472f; --frame: #3a1d26; --track: rgba(74,37,48,0.1);
  --arc-m: #f0b7c3; --arc-f: #f7c79f; --arc-o: #f2e39a; --arc-l: #d3bfe0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: light;
}
:root[data-sky="linen"] {
  --bg: #f8f1ec; --ink: #3a2a3f; --soft: #4c3a52; --muted: #7a6680; --card: rgba(255,255,255,0.84); --solid: #ffffff;
  --chip: rgba(58,42,63,0.07); --line: rgba(58,42,63,0.16); --accent: #96405f; --frame: #2a1f2d; --track: rgba(58,42,63,0.1);
}
:root[data-sky="tide"] {
  --bg: #eef3f2; --ink: #1f3a42; --soft: #2c4c55; --muted: #4f6b72; --card: rgba(255,255,255,0.84); --solid: #ffffff;
  --chip: rgba(31,58,66,0.07); --line: rgba(31,58,66,0.16); --accent: #2a7179; --frame: #13262c; --track: rgba(31,58,66,0.1);
}
:root[data-sky="deepnight"] {
  --bg: #100c13; --ink: #f4ebe6; --soft: rgba(244,235,230,0.84); --muted: #b3a0b8; --card: rgba(29,22,33,0.86); --solid: #1d1621;
  --chip: rgba(244,235,230,0.09); --line: rgba(244,235,230,0.18); --accent: #ef9fb4; --frame: #000; --track: rgba(244,235,230,0.08);
  --arc-m: #4d2230; --arc-f: #4a2d1a; --arc-o: #433714; --arc-l: #3a2a41;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .5s ease, color .5s ease; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
em { font-family: var(--serif); font-weight: 400; font-style: italic; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* The painted skies: four layers, the chosen one faded in. */
.skies-bg { position: absolute; inset: 0 0 auto; height: min(1200px, 100%); z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.skies-bg i { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0; transition: opacity .7s ease; }
:root[data-sky="linen"] .skies-bg .linen, :root[data-sky="deepnight"] .skies-bg .deepnight,
:root[data-sky="sunset"] .skies-bg .sunset, :root:not([data-sky]) .skies-bg .sunset, :root[data-sky="tide"] .skies-bg .tide { opacity: 1; }

.eyebrow { font: 600 12px var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; color: var(--soft); max-width: 46ch; }
.body { color: var(--soft); max-width: 58ch; }
.small { font-size: 13px; color: var(--muted); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px var(--serif); text-decoration: none; min-height: 44px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.links { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; }
.links a { text-decoration: none; padding: 12px 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; background: var(--chip); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 480px) { .nav .pill { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-block: 20px 72px; }
.hero .stack { display: grid; gap: 22px; min-width: 0; justify-items: start; }
h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 0.98; }
h1 em, h2 em { color: var(--accent); }
.skies { display: flex; flex-wrap: wrap; gap: 8px; }
.skies button { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 8px 14px 8px 8px; background: var(--chip); font-size: 14px; font-weight: 500; min-height: 44px; }
.skies button i { width: 24px; height: 24px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.skies button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 9px 16px 9px 12px; background: var(--ink); color: var(--bg); min-height: 52px; cursor: default; }
.store.later { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.store small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.store b { font-weight: 600; font-size: 16px; line-height: 1.1; }
.store svg { width: 20px; height: 20px; flex: none; }

/* The phone, showing Today in the chosen sky */
.phone { width: min(300px, 100%); aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px; background: var(--frame); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55); transition: background-color .5s ease; }
.screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; position: relative; padding: 38px 20px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.screen > * { position: relative; z-index: 1; }
.screen .skies-bg { height: 100%; -webkit-mask-image: none; mask-image: none; z-index: 0; position: absolute; }
/* In the phone, two skies are shown closer in, from the left, so the moon and the tide's sun
   stay clear of the headline and the dial. */
.screen .skies-bg .deepnight, .screen .skies-bg .tide { background-size: 200% auto; background-position: left top; }
.screen .sb { position: absolute; top: 12px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; opacity: 0.8; }
.screen .ey { font: 600 10px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.screen .hd { font: 600 26px/1.05 var(--serif); letter-spacing: -0.02em; }
.screen .mini { border-radius: 18px; padding: 12px 14px; font-size: 12.5px; line-height: 1.4; background: var(--card); color: var(--soft); }

/* The Moon dial (drawn by site.js, coloured by the sky) */
.dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.dial .arc { fill: none; }
.dial .a-m { stroke: var(--arc-m); } .dial .a-f { stroke: var(--arc-f); } .dial .a-o { stroke: var(--arc-o); } .dial .a-l { stroke: var(--arc-l); }
.dial .trk { stroke: var(--track); } .dial .fc { fill: var(--solid); } .dial .ink { fill: var(--ink); } .dial .mut { fill: var(--muted); } .dial .acc { fill: var(--accent); } .dial .accs { stroke: var(--accent); }
.dial.go .arc { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: draw var(--t) cubic-bezier(.6,0,.3,1) forwards; animation-delay: var(--d); }
.dial.go .badge, .dial.go .pin, .dial.go .spread { opacity: 0; animation: fade .4s ease-out forwards; animation-delay: var(--d); }
.dial.go .today { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: popin .5s cubic-bezier(.3,1.6,.5,1) forwards 1.3s, breathe 2.4s ease-in-out infinite 1.9s; }
.dial.go .face { opacity: 0; animation: fade .9s ease-out forwards .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes popin { to { transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

.sec { padding-block: clamp(48px, 8vw, 96px); }
.sec h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; }
.head { display: grid; gap: 14px; margin-bottom: 28px; }
.card { background: var(--card); border-radius: 28px; padding: 26px; transition: background-color .5s ease; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio .card { display: grid; gap: 10px; align-content: start; }
.trio h3 { font-size: 24px; line-height: 1.15; }
.trio p:last-child { color: var(--soft); font-size: 15.5px; }
.weathers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.weather { background: var(--card); border-radius: 26px; padding: 22px; display: grid; gap: 10px; align-content: start; transition: background-color .5s ease; }
.weather svg { width: 56px; height: 56px; }
.weather h3 { font-size: 22px; line-height: 1.15; }
.weather p { font-size: 15px; line-height: 1.5; color: var(--soft); }
.weather .days { font: 600 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* The new features: the lock screen sky, then four real screens */
.yours { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.yours .head { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--soft); }
.walls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: center; }
.walls img { width: 100%; height: auto; border-radius: 18px; }
.walls img:nth-child(3) { transform: scale(1.12); position: relative; z-index: 1; box-shadow: 0 20px 50px -24px rgba(0,0,0,0.5); }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; background: var(--card); border-radius: 28px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: background-color .5s ease; }
.shot img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.shot figcaption { padding: 18px 22px 22px; display: grid; gap: 6px; align-content: start; }
.shot h3 { font-size: 22px; line-height: 1.15; }
.shot p { font-size: 15px; line-height: 1.5; color: var(--soft); }
.note { margin-top: 18px; }
@media (max-width: 980px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .yours { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 460px) { .shots { grid-template-columns: 1fr; } .walls { gap: 6px; } .walls img { border-radius: 10px; } }
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price .card { display: grid; gap: 14px; align-content: start; }
.price .amount { font: 300 64px/1 var(--serif); letter-spacing: -0.03em; }
.price ul { padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--soft); }
.price li { display: flex; gap: 10px; }
.price li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 9px; background: var(--accent); }
.price li b { color: var(--ink); font-weight: 600; }
.foot { padding-block: 36px 56px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 6px; }
.foot nav a { padding: 12px 8px; margin: -12px 0; }
.foot p { max-width: 62ch; }

@media (max-width: 860px) {
  /* On phones the pictures are shown closer in, from the left, which keeps the moon off the headline. */
  body > .skies-bg i { background-size: 180% auto; background-position: left top; }
  .hero { grid-template-columns: 1fr; justify-items: center; }
  .hero .stack { justify-self: stretch; }
  .trio { grid-template-columns: 1fr; }
  .weathers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .weathers { grid-template-columns: 1fr; } }

/* Text pages: privacy and credits */
.doc { max-width: 720px; padding-block: 24px 72px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.02; margin-bottom: 6px; }
.doc h2 { font-size: 26px; line-height: 1.15; margin-top: 22px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc .card { display: grid; gap: 10px; }
.tablewrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 600 11px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.doc td:first-child { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.doc td { color: var(--soft); }
.doc .never { color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .card, .weather, .phone, .skies-bg i { transition: none; }
  .dial.go .arc, .dial.go .badge, .dial.go .pin, .dial.go .spread, .dial.go .today, .dial.go .face { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
}
