/* Dwell: one sky, sunrise to night, top of the page to the foot. Colours are the app's
   own (app/design/tokens.json: sky.*, brandInk, brandSun). */
/* Nunito (SIL Open Font License), served from this site so no visitor's address goes to a font host. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #002342;
  --ink-soft: #2a4763;
  --sun: #fff8d6;
  --sun-edge: #ffb430;
  --accent: #1b7bd8;
  --paper: #fffdf7;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-hero: clamp(3.1rem, 9.4vw, 9.5rem);
  --step-h2: clamp(2.2rem, 5.2vw, 5rem);
  --step-lead: clamp(1.15rem, 1.5vw, 1.55rem);
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: clamp(16px, 0.55vw + 10px, 22px); }
body {
  margin: 0;
  font-family: var(--rounded);
  color: var(--ink);
  background: #082344;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 8px; }
.on-paper :focus-visible { outline-color: var(--accent); }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.75rem) var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: #fff; }
.mark img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 18px rgba(0, 35, 66, 0.25); }
.bar nav { display: flex; gap: clamp(0.25rem, 1.2vw, 1rem); }
.bar nav a {
  text-decoration: none; font-weight: 600; color: #fff;
  padding: 0.55rem 0.95rem; border-radius: 999px; white-space: nowrap;
  transition: background-color 180ms var(--ease);
}
.bar nav a:hover { background: rgba(255, 255, 255, 0.22); }
.bar nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.28); }

/* ---------- hero: day ---------- */
.day {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end;
  gap: var(--gutter);
  padding: clamp(7rem, 13vh, 11rem) var(--gutter) 0;
  background: linear-gradient(180deg, #2c92fe 0%, #55b0fd 22%, #8acdf6 42%, #d9e6d4 60%, #fde3a6 76%, #ffc65c 100%);
}
.day::before {
  /* the sun, rising behind the phone */
  content: ""; position: absolute; z-index: 0;
  right: calc(var(--gutter) - 14vw); bottom: -30vw;
  width: 62vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--sun) 0 52%, #ffe9a8 78%, #ffd67a 100%);
  box-shadow: 0 0 140px 60px rgba(255, 246, 216, 0.75);
}
.day > * { position: relative; z-index: 1; }
.pitch { align-self: center; padding-bottom: clamp(3rem, 9vh, 7rem); }
h1 {
  margin: 0; color: #fff;
  font-size: var(--step-hero); line-height: 0.94; letter-spacing: -0.045em; font-weight: 800;
  text-shadow: 0 4px 40px rgba(0, 35, 66, 0.22);
}
.lead { max-width: 34ch; margin: clamp(1.25rem, 2.4vw, 2.25rem) 0 0; font-size: var(--step-lead); font-weight: 500; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: clamp(1.5rem, 2.6vw, 2.5rem); }
.soon {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.soon::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sun-edge); }
.quiet { font-weight: 700; color: var(--ink); text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.quiet:hover { text-decoration-thickness: 4px; }

.phone {
  margin: 0; justify-self: center; width: min(100%, 27rem);
  border-radius: 3.2rem 3.2rem 0 0; overflow: hidden;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.6), 0 40px 110px rgba(0, 35, 66, 0.35);
  background: #fff;
}
.day .phone { max-height: 78svh; }
.day .phone img { width: 100%; }

/* ---------- the week: sunset ---------- */
.dusk {
  padding: clamp(5rem, 11vw, 11rem) var(--gutter) clamp(5rem, 10vw, 10rem);
  background: linear-gradient(180deg, #ffc65c 0%, #ff9e5e 16%, #f96e70 36%, #d85e93 56%, #9e53aa 74%, #423fa0 100%);
  color: #fff;
}
.dusk h2, .night h2 { margin: 0; font-size: var(--step-h2); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; max-width: 16ch; }
.dusk h2 { color: var(--ink); }
.week { list-style: none; margin: clamp(3rem, 6vw, 6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 3rem); align-items: start; }
.week li:nth-child(2) { margin-top: clamp(2rem, 6vw, 6rem); }
.week li:nth-child(3) { margin-top: clamp(1rem, 3vw, 3rem); }
.week li:nth-child(4) { margin-top: clamp(3rem, 9vw, 9rem); }
.week .phone { width: 100%; border-radius: 2.4rem; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35), 0 30px 80px rgba(46, 20, 80, 0.4); transition: transform 320ms var(--ease); }
.week li:hover .phone { transform: translateY(-10px); }
.week h3 { margin: 1.5rem 0 0.35rem; font-size: clamp(1.25rem, 1.7vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.week p { margin: 0; font-size: 1.05rem; font-weight: 500; color: #fff; max-width: 30ch; }

/* ---------- privacy: night ---------- */
.night {
  position: relative; overflow: hidden;
  padding: clamp(5rem, 11vw, 11rem) var(--gutter) clamp(4rem, 8vw, 8rem);
  background: linear-gradient(180deg, #423fa0 0%, #1d2f73 18%, #0c3159 44%, #092749 70%, #082344 100%);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--gutter); align-items: start;
}
.night::before {
  content: ""; position: absolute; top: clamp(2rem, 4vw, 4.5rem); left: 40%;
  width: clamp(3.2rem, 6vw, 6.5rem); aspect-ratio: 1; border-radius: 50%;
  background: #f6efd2; box-shadow: 0 0 80px 20px rgba(246, 239, 210, 0.35);
}
.night > * { position: relative; }
.night .note { margin: 1.5rem 0 0; font-size: var(--step-lead); font-weight: 500; color: #cfe0f2; max-width: 32ch; }
.kept { list-style: none; margin: 0; padding: 0; border-top: 2px dashed rgba(255, 255, 255, 0.3); }
.kept li { padding: clamp(1.25rem, 2vw, 2rem) 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.3); display: grid; grid-template-columns: minmax(8rem, 0.5fr) minmax(0, 1fr); gap: 1.5rem; }
.kept strong { font-size: clamp(1.15rem, 1.5vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
.kept span { color: #cfe0f2; font-weight: 500; font-size: 1.05rem; }
.night .more { display: inline-block; margin-top: 2rem; font-weight: 700; color: #fff; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.night .more:hover { text-decoration-thickness: 4px; }

/* ---------- foot ---------- */
.foot {
  background: #082344; color: #b6c9dd;
  padding: clamp(2rem, 4vw, 4rem) var(--gutter) clamp(2rem, 3vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.18);
}
.foot .mark { font-size: clamp(2.5rem, 6vw, 6rem); letter-spacing: -0.05em; line-height: 1; }
.foot .mark img { width: clamp(3rem, 5.5vw, 5.5rem); height: auto; border-radius: 22%; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-weight: 600; }
.foot nav a { color: #fff; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: border-color 180ms var(--ease); }
.foot nav a:hover { border-color: #fff; }
.foot small { flex-basis: 100%; font-size: 0.92rem; }

/* ---------- reading pages: privacy, terms, support ---------- */
.on-paper { background: var(--paper); }
.masthead {
  position: relative; overflow: hidden;
  padding: clamp(7rem, 13vh, 10rem) var(--gutter) clamp(2.5rem, 5vw, 5rem);
  background: linear-gradient(180deg, #2c92fe 0%, #6cbefc 55%, #b2dbea 100%);
}
.masthead::before {
  content: ""; position: absolute; right: -6vw; bottom: -22vw; width: 38vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--sun) 0 55%, #ffe9a8 100%); box-shadow: 0 0 100px 40px rgba(255, 246, 216, 0.7);
}
.masthead > * { position: relative; }
.masthead h1 { font-size: clamp(2.8rem, 7vw, 7rem); }
.masthead p { margin: 1rem 0 0; font-size: var(--step-lead); font-weight: 600; color: var(--ink); max-width: 40ch; }
.masthead p.lang { font-size: 1rem; }
.masthead p.lang a { color: var(--ink); text-underline-offset: 0.2em; }
.doc {
  display: grid; grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr); gap: var(--gutter);
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter) clamp(4rem, 8vw, 8rem);
}
.doc aside { position: sticky; top: 1.5rem; align-self: start; font-weight: 600; color: var(--ink-soft); }
.doc aside ol { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.doc aside a { display: block; padding: 0.3rem 0; text-decoration: none; color: var(--ink-soft); }
.doc aside a:hover { color: var(--accent); }
.doc article { max-width: 68ch; }
.doc section { padding: 1.6rem 0; border-top: 2px dashed #d7dfe6; }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 1.9vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; }
.doc p, .doc li { font-size: 1.08rem; color: var(--ink); }
.doc p { margin: 0 0 0.8rem; }
.doc ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.doc a { color: var(--accent); font-weight: 600; text-underline-offset: 0.2em; }
.doc a:hover { text-decoration-thickness: 3px; }

/* ---------- small screens: their own layout ---------- */
@media (max-width: 60rem) {
  .day { grid-template-columns: 1fr; text-align: center; padding-top: clamp(6.5rem, 16vh, 9rem); }
  .day::before { right: -24vw; bottom: -46vw; width: 148vw; }
  .pitch { padding-bottom: 1rem; }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .day .phone { width: min(78vw, 22rem); max-height: none; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week li:nth-child(n) { margin-top: 0; }
  .week li:nth-child(even) { margin-top: 3rem; }
  .night { grid-template-columns: 1fr; }
  .kept li { grid-template-columns: 1fr; gap: 0.35rem; }
  .doc { grid-template-columns: 1fr; }
  .doc aside { display: none; }
  .night::before { left: auto; right: var(--gutter); top: 1.5rem; }
  .bar nav a { padding-inline: 0.6rem; }
}
@media (max-width: 34rem) {
  .bar { gap: 0.5rem; }
  .bar .mark { font-size: 1.25rem; gap: 0.5rem; }
  .bar nav { gap: 0; }
  .bar nav a { padding-inline: 0.5rem; font-size: 0.95rem; }
  .week { grid-template-columns: 1fr; }
  .week li:nth-child(n) { margin-top: 0; }
  .week .phone { width: min(78vw, 22rem); margin-inline: auto; }
  .week h3, .week p { text-align: center; margin-inline: auto; }
}
/* The French nav is longer: on the narrowest phones the icon stands for the name. */
@media (max-width: 26rem) {
  html[lang="fr"] .bar .mark { font-size: 0; gap: 0; }
}

/* ---------- the sun climbs as the page scrolls ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .day::before { animation: climb linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes climb { to { transform: translateY(-9vw); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .week .phone, .bar nav a, .foot nav a { transition: none; }
}
