/* hairselfie.app: the app's look on the web. Dark only, in the app's "purple glow + soft lavender" colors
   (owner, Nov 30 2026; mobile/src/theme.ts): purple-black background with a soft purple glow at the top, flat
   lavender buttons with white text and no glow, soft gradients and cast shadows on cards (the owner finds flat
   fills amateurish). Fonts are the app's: Fraunces for headings, Inter for text. */

@font-face { font-family: 'Fraunces'; font-weight: 400; font-display: swap; src: url('/assets/fonts/fraunces-400.woff') format('woff'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('/assets/fonts/fraunces-600.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff') format('woff'); }

:root {
  --ground: #06040f;
  --glow: #2e1e4d;
  --glow-mid: #120c22;
  --surface: #1e1a29;
  --raised: #262033;
  --line: #3a3150;
  --rule: #231d33;
  --ink: #fff;
  --text: #dcd7e8;
  --muted: #aba3bf;
  --faint: #7d7591;
  --accent: #e4dff2;
  --lavender: #7862d4;
  --lavender-hover: #6a55c4;
  --lavender-text: #a796f2;
  --bright: #f3f0ff;
  --todo: #f0907a;
  --radius: 22px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  background:
    radial-gradient(1200px 640px at 50% 0, var(--glow) 0%, var(--glow-mid) 45%, transparent 75%) no-repeat,
    var(--ground);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: rgba(167, 150, 242, 0.6); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lavender-text); }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--lavender-text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* header + footer */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.brand span { font: 600 22px/1 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.home .brand span { display: none; } /* the big name is right below on the home page */
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.foot { margin-top: 96px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--rule); text-align: center; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-bottom: 14px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 6px 0; }
.foot .copy { color: var(--faint); font-size: 14px; }

/* home: hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding-top: 40px; }
.wordmark { margin: 0; font: 400 clamp(56px, 8.4vw, 92px)/1 var(--serif); color: var(--ink); letter-spacing: -0.025em; }
.tagline { margin: 14px 0 0; font: 400 clamp(22px, 2.6vw, 28px)/1.3 var(--serif); color: var(--accent); }
.lede { margin: 20px 0 0; max-width: 30em; color: var(--muted); font-size: 18px; }
.soon { margin: 32px 0 0; }
.soon span {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--lavender);
}

/* the phone: the welcome screen's before/after with the bright reveal line sweeping across */
.phone {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
  aspect-ratio: 1210 / 2400;
  border-radius: 46px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 9px #110d1c,
    0 0 0 10px var(--line),
    0 50px 90px rgba(0, 0, 0, 0.7);
}
.phone img, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.after { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.line {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
  background: var(--bright);
  box-shadow: 0 0 14px 3px rgba(167, 150, 242, 0.6);
  opacity: 0;
}
.phone .after { animation: phone-after 9s ease-in-out infinite; }
.phone .line { animation: phone-line 9s ease-in-out infinite; }
@keyframes phone-after {
  0%, 12% { clip-path: inset(0 100% 0 0); }
  38%, 62% { clip-path: inset(0 0 0 0); }
  88%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes phone-line {
  0%, 12% { left: 0; opacity: 0; }
  14% { opacity: 1; }
  36% { opacity: 1; }
  38%, 62% { left: 100%; opacity: 0; }
  64% { opacity: 1; }
  86% { opacity: 1; }
  88%, 100% { left: 0; opacity: 0; }
}

/* home: tiles, split before/after; one at a time sweeps across, like the app's home screen */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 96px; }
.tile { margin: 0; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.tile .shot { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.tile .after { clip-path: inset(0 0 0 50%); animation: tile-after 16s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
.tile .line { left: 50%; opacity: 0.9; animation: tile-line 16s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes tile-after {
  0% { clip-path: inset(0 0 0 50%); }
  8% { clip-path: inset(0 0 0 0); }
  17% { clip-path: inset(0 0 0 100%); }
  25%, 100% { clip-path: inset(0 0 0 50%); }
}
@keyframes tile-line {
  0% { left: 50%; }
  8% { left: 0; }
  17% { left: 100%; }
  25%, 100% { left: 50%; }
}
.tile figcaption { padding: 14px 16px 16px; font-weight: 600; font-size: 16px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .phone .after, .phone .line, .tile .after, .tile .line { animation: none; }
  .phone .after { clip-path: inset(0 0 0 50%); }
  .phone .line { left: 50%; opacity: 1; }
}

/* text pages */
.doc { padding-top: 40px; }
.doc h1 { margin: 0 0 10px; font: 400 clamp(36px, 5.5vw, 48px)/1.1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.doc h2 { margin: 48px 0 12px; font: 600 24px/1.25 var(--serif); color: var(--ink); }
.doc h3 { margin: 28px 0 8px; font: 600 18px/1.3 var(--sans); color: var(--ink); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 0 0 10px; padding-left: 4px; }
.doc li::marker { color: var(--faint); }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 32px !important; }
.updated { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); font-size: 15px; }
.legal h2 { padding-top: 32px; border-top: 1px solid var(--rule); }
.legal .health { margin-top: 72px; }
.legal .health > h2:first-child { font: 400 34px/1.15 var(--serif); padding-top: 48px; border-top: 1px solid var(--line); }
mark.todo { color: var(--todo); background: rgba(240, 144, 122, 0.12); border: 1px dashed rgba(240, 144, 122, 0.6); border-radius: 6px; padding: 0 4px; }

.card {
  margin: 0 0 18px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--raised), var(--surface));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.card > :last-child { margin-bottom: 0; }
.doc .card-title { margin: 0 0 12px; padding: 0; border: 0; font: 600 20px/1.3 var(--serif); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols .card { margin: 0; }
.steps li::marker { color: var(--lavender-text); font-weight: 700; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact .label { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact .big { margin: 0 0 8px; font: 600 clamp(20px, 3vw, 24px)/1.3 var(--sans); }
.contact .big a { text-decoration: none; }
.button {
  flex: none;
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--lavender);
}
.button:hover { background: var(--lavender-hover); }

.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 400 24px/1 var(--sans); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text); }

/* phones */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 24px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 72px; }
  .cols { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .top { height: 64px; }
  .tile figcaption { font-size: 14px; padding: 12px; }
  .card { padding: 20px; }
}
