:root {
  --amber: #FFD27A;
  --ink: #1A1300;
}
/* Colours are the app's own ringing screens (apps/mobile/src/RingScreen.tsx) and its teal (ui.tsx). */
@font-face {
  font-family: "Anek Latin";
  src: url("fonts/anek-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --navy: #13202F;
  --sky: #DDEFF7;
  --blue: #2B44C9;
  --teal: #0E7C6B;
  --teal-ink: #0B5E52;
  --paper: #FFFFFF;
  --muted: #5C5748;
  --line: #E4DFD2;
  --gutter: clamp(16px, 5vw, 64px);
  --wide: 1240px;
  --text: 40rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 "Anek Latin", "Noto Sans Devanagari", system-ui, sans-serif;
}
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.04; font-stretch: 90%; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .close :focus-visible { outline-color: var(--ink); }
.honest :focus-visible, footer :focus-visible { outline-color: var(--amber); }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 10vw, 128px); }
.lead { margin-top: 20px; max-width: var(--text); font-size: 1.3rem; line-height: 1.45; }

.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--amber);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.btn.outline { background: none; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }

/* The first screen is the app's "Large & simple" ringing screen, full width. */
.hero { background: var(--amber); padding-block: 0 clamp(32px, 5vw, 56px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.name { display: inline-flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.name svg { width: 26px; height: 26px; }
.top-link { font-weight: 600; }
.langs-switch { display: flex; gap: 12px; margin-left: auto; font-weight: 600; }
.guides { margin-top: 24px; padding: 0; list-style: none; }
.guides li { padding-block: 16px; border-top: 1px solid var(--line); }
.guides a { font-size: 1.3rem; font-weight: 700; }
.page .scroll + p { margin-top: 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  padding-top: clamp(24px, 6vw, 72px);
}
.hero h1 { font-size: clamp(3.1rem, 8.2vw, 7rem); line-height: 0.96; font-stretch: 82%; }
.hero .lead { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }

.ring-time { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1.25rem; }
.ring-time b { font-size: 2rem; font-weight: 800; }
.ring-title { margin-top: 12px; font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1; font-stretch: 90%; }
.ring-note { margin-top: 8px; font-size: 1.3rem; }
.hold {
  position: relative;
  display: block;
  width: 100%;
  min-height: 136px;
  margin-top: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--ink);
  color: var(--amber);
  font: inherit;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hold b { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.hold span { display: block; color: #FFF0CF; font-size: 1.1rem; }
.hold i { position: absolute; left: 0; bottom: 0; width: 0; height: 8px; background: #FFFFFF; }
.hold.down i { width: 100%; transition: width 1s linear; }
.told {
  margin-top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: var(--teal-ink);
  color: #FFFFFF;
  font-size: 1.3rem;
  line-height: 1.3;
}
.told small { display: block; margin-bottom: 8px; color: #BDE5DB; font-size: 1.05rem; }
.told button { margin-top: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1.05rem; text-decoration: underline; cursor: pointer; }

/* How it works: a real sequence, so the numbers carry meaning. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 12px; color: var(--teal); font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 800; line-height: 1; font-stretch: 75%; }
.steps p { margin-top: 10px; }

/* The helper's side of the story is teal, as in the app. */
.honest { background: var(--teal-ink); color: #FFFFFF; }
.honest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.day { margin: 0; padding: 0; list-style: none; font-size: 1.15rem; line-height: 1.3; }
.day li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.day li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.day time { font-weight: 700; }
.day small { display: block; margin-top: 4px; color: #D5EEE7; font-size: 1.02rem; }
.day .warn { color: var(--amber); font-weight: 700; }

/* The real ringing screens side by side. Different sizes of words are the point. */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.mode { display: flex; flex-direction: column; }
.face { display: flex; flex-direction: column; flex: 1; min-height: 340px; padding: 20px; border-radius: 24px; }
.face b { font-weight: 800; line-height: 1.03; font-stretch: 90%; }
.face .pill { margin-top: auto; padding: 16px; border-radius: 16px; font-weight: 800; text-align: center; line-height: 1.15; }
.f-std { background: var(--navy); color: #FFFFFF; }
.mode .f-std p { color: #DCE3F0; }
.f-std b { font-size: 1.8rem; }
.f-std .pill { background: var(--amber); color: var(--ink); }
.f-big { background: var(--amber); }
.f-big b { font-size: 2.9rem; }
.f-big .pill { background: var(--ink); color: var(--amber); }
.f-pic { background: var(--sky); text-align: center; }
.f-pic b { font-size: 2rem; }
.f-pic svg { width: 112px; height: 112px; margin: 0 auto 16px; }
.f-pic .pill { padding-block: 26px; border-radius: 999px; background: var(--blue); color: #FFFFFF; font-size: 1.4rem; }
.mode h3 { margin-top: 16px; }
.mode p { margin-top: 6px; color: var(--muted); font-size: 1.05rem; line-height: 1.4; }


.charge { background: var(--sky); }
.charge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vw, 64px); }
.charge-grid h3 + p { margin-top: 10px; }
.charge-grid ul { margin: 12px 0 0; padding-left: 1.1em; }
.charge-grid li + li { margin-top: 8px; }
.charge-grid .never { margin-top: 12px; }

.faq { max-width: 52rem; margin-top: clamp(32px, 5vw, 56px); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding-block: 20px; font-size: 1.3rem; font-weight: 700; line-height: 1.25; cursor: pointer; }
details p { padding-bottom: 24px; max-width: var(--text); }
details p + p { margin-top: -10px; }

.close { background: var(--amber); }
.close h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-stretch: 82%; line-height: 0.98; max-width: 14ch; }
.close-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 32px; }

footer { padding-block: 40px; background: var(--ink); color: #FFF0CF; font-size: 1.05rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

blockquote { margin: 24px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--amber); font-weight: 600; }
blockquote p { margin: 0; }

/* Reading pages: privacy, terms, delete, support, the article. */
.page-top { background: var(--amber); }
.page { padding-block: clamp(40px, 7vw, 80px) clamp(64px, 9vw, 112px); }
.page article { max-width: var(--text); }
.page h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-stretch: 85%; }
.page h2 { margin-top: 48px; font-size: 1.9rem; line-height: 1.12; }
.page h3 { margin-top: 28px; }
.page p, .page ul, .page ol { margin-top: 14px; }
.page figure { margin: 28px 0 0; }
.page figure img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.page figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.page s { color: var(--muted); }
.page li + li { margin-top: 8px; }
.page .meta { margin-top: 12px; color: var(--muted); }
.draft { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: var(--amber); font-weight: 600; }
.scroll { margin-top: 20px; overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1.02rem; line-height: 1.35; }
th, td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 700; }

@media (max-width: 960px) {
  .hero-grid, .honest-grid { grid-template-columns: minmax(0, 1fr); }
  .steps, .charge-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .face { min-height: 300px; }
  .top-link { font-size: 1rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .hold.down i { transition: none; }
}
