/* Undertone's website: the app's ink, aurora and type, on the web. */
:root {
  --ink: #090a13;
  --text: rgba(255, 255, 255, 0.95);
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.10);
  --surface: rgba(255, 255, 255, 0.06);
  --accent: #6bccbd;
  --violet: #8a6cf0;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* The aurora: two soft lights drifting slowly behind everything. */
.aurora { position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.aurora::before {
  width: 70vmax; height: 70vmax; left: 10%; top: 0;
  background: radial-gradient(circle, rgba(124, 92, 230, 0.55), transparent 65%);
  animation: drift 38s ease-in-out infinite alternate;
}
.aurora::after {
  width: 60vmax; height: 60vmax; right: 5%; top: 25%;
  background: radial-gradient(circle, rgba(70, 180, 170, 0.40), transparent 65%);
  animation: drift 46s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to { transform: translate3d(5%, 4%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .aurora::before, .aurora::after { animation: none; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.links { display: flex; gap: 18px; font-size: 15px; }
nav.links a { color: var(--text-2); }
nav.links a:hover { color: var(--text); }

/* Home */
.hero { text-align: center; padding: 72px 0 0; position: relative; z-index: 1; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 60px rgba(107, 204, 189, 0.18); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 9vw, 68px); line-height: 1.05; margin: 28px 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.hero p { color: var(--text-2); font-size: 20px; margin: 0 auto; max-width: 30ch; text-wrap: balance; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  padding: 12px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline);
  color: var(--text-2); font-size: 15px; font-weight: 500;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 40px 0 24px; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 20px; }
.feature img { width: 48px; height: 48px; display: block; margin-bottom: 10px; }
.feature h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }


/* The dot sea from the launch screen, full width under the hero. */
canvas.sea {
  display: block; width: 100vw; margin-left: calc(50% - 50vw);
  height: clamp(300px, 52vh, 560px); margin-top: -40px; margin-bottom: 24px;
  pointer-events: none;
}

/* The app, one feature at a time: a looping clip in a phone frame beside a few lines. */
.tour { position: relative; z-index: 1; display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; margin: 0 0 120px; }
.tour.flip { grid-template-columns: 1fr 280px; }
.tour.flip .phone { order: 2; }
.phone { aspect-ratio: 1206 / 2622; border-radius: 38px; overflow: hidden; background: #000; border: 1px solid var(--hairline);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(0, 0, 0, 0.5); }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.words h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 38px); line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
.words p:not(.eyebrow) { color: var(--text-2); margin: 0 0 12px; }
@media (max-width: 680px) {
  .tour, .tour.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 88px; text-align: center; }
  .tour.flip .phone { order: 0; }
  .tour .phone { width: min(260px, 72vw); margin: 0 auto; }
}

/* Documents: privacy, terms, support */
.doc { padding: 40px 0 24px; }
.doc h1 { text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 7vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.doc .meta { color: var(--text-3); font-size: 15px; margin: 0 0 32px; }
.doc .lede { font-size: 19px; color: var(--text); }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 40px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 20px 22px; margin: 18px 0; }
.card p { margin: 0; }

details { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
details summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

footer { border-top: 1px solid var(--hairline); margin-top: 56px; padding: 26px 0 48px; color: var(--text-3); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
footer .links a { color: var(--text-2); }
footer p { margin: 6px 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  nav.links { gap: 14px; font-size: 14px; }
  .hero { padding-top: 48px; }
}
