/* Inside Voice website. Colours and type follow the app's Room Tone theme
   (RoomToneTheme.swift in the app repository). */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --dusk: #0e0d13;
  --night: #211f25;
  --cream: #faf4ea;
  --muted-dusk: #d1c4be;
  --ember: #eaa573;
  --ember-text: #2e1d12;
  --coral-bloom: #a85846;
  --cool-bloom: #656991;
  --paper: #f7f0e6;
  --paper-panel: #fbf8f3;
  --ink: #302a31;
  --muted-paper: #655a61;
  --line: #e6dad2;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --width: 1040px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.2em; }

a:focus-visible, .skip:focus {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
}
.skip:focus { left: var(--gutter); z-index: 10; }

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

/* Dusk band: the app's Home, with its warm coral bloom. */
.dusk {
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(168, 88, 70, 0.55), transparent 70%),
    radial-gradient(45% 40% at 90% 0%, rgba(101, 105, 145, 0.35), transparent 70%),
    var(--dusk);
  color: var(--cream);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.6rem;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 9px; }

.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted-dusk); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 88px;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.4fr 1fr; padding-top: 72px; padding-bottom: 120px; }
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dusk);
}

h1, h2, h3 { font-weight: 400; text-wrap: balance; }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.lead {
  margin: 24px 0 0;
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--muted-dusk);
}

.availability { margin-top: 36px; }

.pill {
  display: inline-block;
  margin: 0;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ember-text);
  font-weight: 600;
}

.availability small {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted-dusk);
}

.hero-icon {
  justify-self: center;
  width: min(300px, 70vw);
  border-radius: 22.5%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Paper sections: the app's recap and purchase sheet. */
section.paper { padding: 72px 0; }
section.paper + section.paper { padding-top: 0; }

.label {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-paper);
}

h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-panel);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--coral-bloom);
}

h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; }

.steps p, .promises p { margin: 0; color: var(--muted-paper); }

.promises {
  margin: 0;
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-panel);
  list-style: none;
}

.promises li { padding: 20px 0; }
.promises li + li { border-top: 1px solid var(--line); }

@media (min-width: 760px) {
  .promises { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 8px 32px; }
  .promises li:nth-child(2) { border-top: 0; }
}

.note { max-width: 44rem; }
.note p { margin: 0 0 16px; font-size: 1.15rem; color: var(--ink); }
.note p + p { font-size: 1.0625rem; color: var(--muted-paper); }

/* Text pages: privacy and support. */
.page-title { padding-top: 32px; padding-bottom: 56px; }
.page-title h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.page-title p { margin: 12px 0 0; color: var(--muted-dusk); }

.prose { max-width: 44rem; padding-top: 56px; padding-bottom: 72px; }
.prose h2 { margin: 48px 0 12px; font-size: 1.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }

.faq { margin: 0; padding: 0; list-style: none; }
.faq li { padding: 22px 0; border-top: 1px solid var(--line); }
.faq li:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { margin-bottom: 8px; }
.faq p { margin: 0; color: var(--muted-paper); }

.contact {
  margin-top: 48px;
  padding: 24px;
  border-radius: 20px;
  background: var(--paper-panel);
  border: 1px solid var(--line);
}
.contact p { margin: 0; }
.contact p + p { margin-top: 8px; }

.site-footer { padding: 40px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-footer a { color: var(--muted-dusk); }
.site-footer a:hover { color: var(--cream); }
.site-footer p { margin: 0; color: var(--muted-dusk); }
