/* Onest, served from this site (no Google Fonts request). Variable weight, same files as tvcp.app. */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/onest-latin-ext-wght.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/onest-latin-wght.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; }

/* Calm Home Screen: calmhome.tv design page.
   Colours come from the app's own icon: the night room (#0A2A35), the tent's
   pink (#D7598F) and the warm light inside it (#FFDDB3), the name's cream (#FFF4E0). */

:root {
  --night: #0a2a35;
  --night-2: #0e3842;
  --night-deep: #061a21;
  --cream: #fff4e0;
  --cream-soft: #c5d3cf;
  --glow: #ffddb3;
  --glow-2: #ffecd3;
  --pink: #d7598f;
  --pink-deep: #a33665;

  --paper: #071d25;
  --paper-2: #0a2630;
  --surface: #0d303b;
  --ink: #fff4e0;
  --ink-2: #b4c6c6;
  --line: rgba(255, 244, 224, 0.13);
  --accent: #f6a6c6;
  --btn-bg: #ffe7c2;
  --btn-ink: #0b2a34;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.28);

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 22px;
  --font: "Onest", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--glow); color: var(--night); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--glow); }

/* ---------- the night room: hero, page heads, closing block, footer ---------- */

.night {
  position: relative;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--night-2) 0%, var(--night) 55%, #08232c 100%);
  overflow: hidden;
}
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 244, 224, 0.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(255, 244, 224, 0.55) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 244, 224, 0.7) 0 2.2px, transparent 2.9px),
    radial-gradient(circle, rgba(255, 244, 224, 0.45) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 244, 224, 0.6) 0 1.5px, transparent 2.1px),
    radial-gradient(circle, rgba(255, 244, 224, 0.4) 0 1.1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 244, 224, 0.5) 0 1.8px, transparent 2.4px);
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-position: 7% 22%, 23% 68%, 41% 12%, 58% 84%, 72% 9%, 88% 42%, 95% 78%;
}

/* ---------- header ---------- */

.top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding-block: 18px; color: var(--cream); }
.top :focus-visible { outline-color: var(--glow); }
.hero, .pagehead { padding-top: 76px; }
.top__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 244, 224, 0.14), 0 6px 18px rgba(0, 0, 0, 0.3); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--cream-soft); white-space: nowrap; }
.nav a:hover { color: var(--cream); background: rgba(255, 244, 224, 0.08); }
.nav a[aria-current="page"] { color: var(--cream); background: rgba(255, 244, 224, 0.1); }
.top .btn, .top .play { display: none; }
@media (min-width: 860px) { .top .btn, .top .play { display: inline-flex; } }

/* ---------- buttons ---------- */

/* Google's own "Get it on Google Play" badge, unedited. The file carries Google's clear space (10 of 60 on every
   side, a quarter of the badge height), so the badge itself is 2/3 of the image height. Never tinted or redrawn. */
.play { display: inline-flex; flex: none; line-height: 0; border-radius: 10px; margin: -8px; }
.play img { display: block; height: 72px; width: auto; max-width: none; }
.play--sm img { height: 60px; }
.play:focus-visible { outline: 2px solid var(--glow-2, currentColor); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.night .btn, .btn--glow {
  background: linear-gradient(180deg, var(--glow-2), var(--glow));
  color: var(--night);
  box-shadow: 0 0 0 1px rgba(255, 221, 179, 0.5), 0 10px 36px rgba(255, 190, 120, 0.28);
}
.night .btn:hover, .btn--glow:hover { box-shadow: 0 0 0 1px rgba(255, 221, 179, 0.7), 0 14px 44px rgba(255, 190, 120, 0.4); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.night .btn--line { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, 0.55); }

.link { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2.5px; }
.link--arrow::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform 0.2s ease; }
.link--arrow:hover::after { transform: translateX(3px); }

.eyebrow { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.night .eyebrow { color: var(--glow); }

/* ---------- hero ---------- */

.hero { padding-bottom: clamp(88px, 12vw, 150px); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: clamp(24px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.25rem); line-height: 1.02; }
.hero__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--cream-soft); max-width: 34em; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.95rem; font-weight: 500; color: var(--cream-soft); }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

.hill { position: absolute; left: -10%; right: -10%; bottom: -1px; height: clamp(44px, 7vw, 96px); background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 0; }

/* ---------- the TV (a CSS frame around the real screenshot) ---------- */

.tv { position: relative; }
.tv__set {
  position: relative; padding: 1.6%; border-radius: 2.6% / 4.4%;
  background: linear-gradient(180deg, #16191d, #07090b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 60px -18px rgba(0, 0, 0, 0.55);
}
.tv__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 1.2% / 2.1%; overflow: hidden; background: #05080c; }
.tv__screen img, .tv__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv__stand { width: 26%; height: 0; margin: 0 auto; border-bottom: 9px solid #0b0e11; border-left: 14px solid transparent; border-right: 14px solid transparent; border-radius: 0 0 4px 4px; opacity: 0.95; }
.tv figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-2); text-align: center; }
.night .tv figcaption { color: var(--cream-soft); }

.tv--hero .tv__glow {
  position: absolute; inset: -20% -15% -16%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--scene, rgba(126, 96, 255, 0.5)) 52%, transparent 100%);
  filter: blur(14px); pointer-events: none;
}
.hero[data-scene="space"] { --scene: rgba(126, 96, 255, 0.5); }
.hero[data-scene="undersea"] { --scene: rgba(38, 150, 205, 0.5); }
.hero[data-scene="classic"] { --scene: rgba(72, 104, 200, 0.45); }
.tv--hero .tv__screen img { opacity: 0; transition: opacity 0.7s ease; }
.tv--hero .tv__screen img.is-on { opacity: 1; }

.scenes { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.scenes__label { font-size: 0.9rem; color: var(--cream-soft); width: 100%; text-align: center; }
.scenes button {
  font: inherit; font-size: 0.95rem; font-weight: 700; color: var(--cream); cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 244, 224, 0.06); border: 1.5px solid rgba(255, 244, 224, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.scenes button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); }
.scenes button:hover { background: rgba(255, 244, 224, 0.12); }
.scenes button[aria-pressed="true"] { background: rgba(255, 244, 224, 0.14); border-color: var(--cream); }
.scenes__note { width: 100%; text-align: center; font-size: 0.85rem; color: var(--cream-soft); opacity: 0.85; }
html:not(.js) .scenes button { display: none; }

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--paper-2); }
/* why: the support page lost its intro paragraph (go-live), so a full section gap under the page head left a hole above the Email card */
.section--after-head { padding-top: clamp(8px, 2vw, 24px); }
.section h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 18em; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.lede { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 38em; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .split--flip > :first-child { order: 2; } }

.points { display: grid; gap: 26px; }
.point { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.point h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.25; }
.point p { margin-top: 4px; color: var(--ink-2); }
.ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--night); color: var(--glow); box-shadow: inset 0 0 0 1px rgba(255, 244, 224, 0.08); }
.ico svg { width: 24px; height: 24px; }

.duo { display: grid; gap: 48px; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; } }
.duo__col { display: grid; gap: 28px; }
.note { display: grid; gap: 22px; }
.note h3 { font-size: 1.25rem; line-height: 1.2; }
.note p { margin-top: 6px; color: var(--ink-2); }

.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.card .ico { margin-bottom: 18px; }
.card h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.linkrow { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 32px; }

.honest { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 5vw, 52px); box-shadow: var(--shadow); display: grid; gap: 22px; position: relative; overflow: hidden; }
.honest::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--pink), var(--glow)); }
.honest h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.honest p { font-size: 1.125rem; color: var(--ink-2); max-width: 44em; }

.more { border-radius: calc(var(--radius) + 10px); padding: clamp(26px, 5vw, 56px); display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .more { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }
.more h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.more p { margin-top: 16px; color: var(--cream-soft); font-size: 1.0625rem; }
.more .btn { margin-top: 26px; }

.closing { text-align: center; padding-block: clamp(72px, 10vw, 128px) clamp(56px, 8vw, 96px); }
.closing__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.closing img.tent { width: 104px; height: 104px; border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 244, 224, 0.12), 0 0 80px rgba(255, 200, 140, 0.22); }
.closing h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16em; }
.closing p { color: var(--cream-soft); max-width: 32em; font-size: 1.125rem; }
.closing .btn { margin-top: 12px; }

/* ---------- footer ---------- */

.foot { background: var(--night-deep); color: var(--cream-soft); padding-block: 44px 52px; font-size: 0.95rem; }
.foot__grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.foot .brand { color: var(--cream); }
.foot ul { display: grid; gap: 4px; }
.foot a { color: var(--cream); text-decoration: none; display: inline-block; padding-block: 5px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot a.mail { overflow-wrap: anywhere; font-weight: 700; }
.foot a.brand { display: inline-flex; padding: 0; }
.foot a.brand:hover { text-decoration: none; }
.foot__by { margin-top: 18px; }
.foot__by a { font-weight: 700; }
.foot__note { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 244, 224, 0.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; font-size: 0.875rem; }

/* ---------- 404 ---------- */

.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
.notfound h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); max-width: 16em; }
.notfound .btn { margin-top: 12px; }

/* ---------- inner pages ---------- */

.pagehead { padding-bottom: clamp(84px, 11vw, 132px); }
.pagehead__body { position: relative; z-index: 1; padding-top: clamp(28px, 6vw, 64px); max-width: 46rem; }
.pagehead h1 { font-size: clamp(2.3rem, 6.4vw, 3.75rem); line-height: 1.04; }
.pagehead p { margin-top: 18px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--cream-soft); max-width: 34em; }

.steps { display: grid; gap: clamp(48px, 7vw, 88px); counter-reset: step; }
.step { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.step__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 18px; background: linear-gradient(180deg, var(--glow-2), var(--glow)); color: var(--night); font-weight: 800; font-size: 1.25rem; box-shadow: 0 8px 24px rgba(255, 190, 120, 0.3); }
.step h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.step p { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; }

.film { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .film { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.film h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.film p { margin-top: 14px; color: var(--ink-2); }

.stack { display: grid; gap: 22px; }
.callout { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); font-size: 1.0625rem; }
.section--tint .callout { background: var(--surface); }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 5vw, 48px); box-shadow: var(--shadow); display: grid; gap: 20px; justify-items: start; }
.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.contact p { color: var(--ink-2); font-size: 1.125rem; max-width: 36em; }
.contact .btn { overflow-wrap: anywhere; }

.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.125rem; line-height: 1.3; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__a { padding: 0 22px 22px; display: grid; gap: 12px; color: var(--ink-2); }

.legal { display: grid; gap: 14px; max-width: 44rem; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.legal p { color: var(--ink-2); }
.legal .linkrow { margin-top: 8px; }

/* ---------- small screens (last, so it wins over the rules above) ---------- */

@media (max-width: 480px) {
  .top__row { gap: 8px 10px; }
  .top .brand { gap: 8px; font-size: 0.9375rem; }
  .top .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .nav { gap: 0; }
  .nav a { padding: 8px; font-size: 0.9375rem; }
  .scenes { gap: 8px; }
  .scenes button { padding: 8px 12px; font-size: 0.9rem; gap: 7px; }
  .more { padding: 26px 20px; }
  .more .btn { padding-inline: 18px; font-size: 0.95rem; gap: 8px; }
}
@media (max-width: 359px) { .hero, .pagehead { padding-top: 112px; } }

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