/* Shoosh website. Shared by index.html and privacy.html. */

:root {
  --night: #1d1648;      /* hero band: the inside of the app icon */
  --night-2: #2b2170;
  --violet: #6c5ce7;     /* Shoosh accent */
  --lilac: #a29bfe;
  --mist: #ebe7ff;
  --paper: #faf9ff;
  --surface: #ffffff;
  --ink: #1b1830;
  --muted: #5d5878;
  --line: #e2ddf5;
  --on-violet: #ffffff;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.6rem, 6.5vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --radius-lg: 28px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --night: #120d30;
    --night-2: #1f1752;
    --violet: #9d8fff;
    --lilac: #d0c9ff;
    --mist: #2a2545;
    --paper: #0f0e17;
    --surface: #1a1826;
    --ink: #f3f1fa;
    --muted: #a7a2c2;
    --line: #2c2843;
    --on-violet: #120f24;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--violet); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: var(--step--1); }
.bar nav a { color: inherit; text-decoration: none; opacity: .82; }
.bar nav a:hover { opacity: 1; text-decoration: underline; }

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

.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 85% -10%, var(--night-2), transparent 60%),
    var(--night);
  color: #fff;
  overflow: hidden;
}
.hero .bar { color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(20px, 5vw, 56px);
  padding-bottom: 8px;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 10ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: #dcd7ff;
  max-width: 34ch;
  margin: 22px 0 32px;
}

.download {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #2b2170;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  padding: 16px 26px 16px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(10, 4, 60, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.download:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(10, 4, 60, .45); text-decoration: none; }
.download:active { transform: translateY(0); }
.download svg { width: 22px; height: 22px; flex: none; }

.release {
  margin: 14px 0 0;
  font-size: var(--step--1);
  color: #b9b2f0;
  min-height: 1.6em;
}
.release a { color: #fff; }

/* the signature: a sound wave that fades into a full stop */
.hero-wave {
  width: 100%;
  margin-top: clamp(24px, 4vw, 40px);
  overflow: visible;
}
.hero-wave path {
  fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero-wave circle { fill: #fff; }

.js .hero-wave path { stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.45, .05, .25, 1) .25s forwards; }
.js .hero-wave circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: dot .45s cubic-bezier(.3, 1.6, .5, 1) 2.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-wave path { animation: none; stroke-dashoffset: 0; }
  .js .hero-wave circle { animation: none; transform: none; }
}

/* phone */
.phone {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 300 / 610;
  border-radius: 44px;
  background: #0a0820;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(5, 0, 40, .55), inset 0 0 0 2px #3a3170;
  rotate: 3deg;
}
.screen {
  height: 100%;
  border-radius: 36px;
  background: #f5f3fa;
  color: #1b1830;
  padding: 26px 18px 18px;
  display: flex; flex-direction: column;
  font-family: "Roboto", var(--body);
  overflow: hidden;
}
.screen .app-head { display: flex; align-items: center; gap: 9px; }
.screen .app-head img { width: 30px; height: 30px; }
.screen .app-head b { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.screen .app-head span { display: block; font-size: 11px; color: #6e6a85; }
.dial { position: relative; width: 82%; margin: 26px auto 0; aspect-ratio: 1; container-type: inline-size; }
.dial svg { width: 100%; height: 100%; }
.dial-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-text small { font-size: 4.2cqw; letter-spacing: .14em; color: #6e6a85; }
.dial-text strong { font-weight: 300; font-size: 16cqw; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dial-text span { font-size: 5cqw; color: #6e6a85; }
.screen .grow { flex: 1; }
.screen .pill { border-radius: 999px; height: 42px; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.screen .pill.soft { background: #e9e5fd; color: #6c5ce7; margin-bottom: 9px; }
.screen .pill.strong { background: linear-gradient(90deg, #6c5ce7, #a29bfe); color: #fff; }

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

section { padding: clamp(64px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: var(--measure); margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: var(--step-1); line-height: 1.5; }

/* a quiet hour: the timeline */
.timeline svg { width: 100%; height: auto; overflow: visible; }
.timeline .line { fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.timeline .flat { stroke: var(--lilac); stroke-dasharray: 2 14; }
.moments {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px;
}
.moments li:nth-child(2) { text-align: center; }
.moments li:nth-child(3) { text-align: right; }
.moments time { display: block; font-family: var(--display); font-weight: 700; font-size: var(--step-2); letter-spacing: -.02em; }
.moments p { margin: 4px 0 0; color: var(--muted); }

/* everything else it does */
.features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 80px);
  margin: 0;
}
.features div { padding: 22px 0; border-top: 1px solid var(--line); }
.features dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.01em; }
.features dd { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }

/* install */
.install-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--violet);
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 2px; background: var(--line);
}
.steps h3 { font-size: var(--step-1); letter-spacing: -.01em; }
.steps p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

.scan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.scan img { width: 100%; max-width: 200px; margin: 0 auto 16px; border-radius: var(--radius-sm); }
.scan p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.scan strong { display: block; color: var(--ink); font-family: var(--display); font-size: var(--step-1); margin-bottom: 4px; }

/* questions */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-family: var(--display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet);
  rotate: 45deg; translate: 0 -3px; transition: rotate .2s ease, translate .2s ease;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: var(--measure); }

/* footer */
footer {
  background: var(--night); color: #cfc9f7;
  padding: 44px 0; font-size: var(--step--1);
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer a { color: #fff; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- privacy policy page ---------- */

.doc-hero { background: var(--night); color: #fff; padding-bottom: clamp(36px, 6vw, 64px); }
.doc-hero h1 { font-size: var(--step-4); margin-top: clamp(24px, 5vw, 48px); }
.doc-hero p { color: #dcd7ff; font-size: var(--step-1); margin: 16px 0 0; max-width: 40ch; }

.doc > * { max-width: 720px; }
.doc { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.doc h2 { font-size: var(--step-2); margin: 48px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); max-width: var(--measure); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc .summary {
  background: var(--mist); border-radius: var(--radius-lg);
  padding: 22px 26px; margin-bottom: 40px; font-size: var(--step-1); line-height: 1.5;
}
.perm { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: var(--step--1); }
.perm th, .perm td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-top: 1px solid var(--line); }
.perm th { font-family: var(--display); font-size: var(--step-0); width: 38%; }
.perm td { color: var(--muted); }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero-grid, .install-grid { grid-template-columns: 1fr; }
  .phone { width: min(250px, 72%); rotate: 0deg; margin-top: 12px; aspect-ratio: 300 / 540; }
  .features { grid-template-columns: 1fr; }
  .scan { max-width: 360px; }
}
@media (max-width: 620px) {
  .bar nav .hide-sm { display: none; }
  .scan { display: none; } /* already on a phone */
  .moments { grid-template-columns: 1fr; gap: 18px; }
  .moments li:nth-child(n) { text-align: left; }
  .perm th { width: auto; }
  .perm, .perm tbody, .perm tr, .perm th, .perm td { display: block; }
  .perm td { border-top: 0; padding-top: 0; }
}
