/* ManifesTone — palette and motifs lifted straight from the app icon:
   a glowing point source with arcs radiating out, sweeping violet → magenta. */

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

:root {
  /* backdrop, sampled from the icon's gradient */
  --ink:        #07060D;
  --ink-2:      #0C0714;
  --violet-bg:  #2A1049;

  /* the arcs, inner → outer */
  --arc-1: #7B5CFF;   /* violet-blue, innermost */
  --arc-2: #A64FE8;   /* purple */
  --arc-3: #C44FA0;   /* magenta */
  --arc-4: #C0406F;   /* pink-crimson, outermost */

  --text:   #EFEBF6;
  --muted:  #9C93B2;
  --line:   rgba(255,255,255,.09);
  --line-2: rgba(166,79,232,.34);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--arc-2); }
.wrap { width: min(1100px, 92vw); margin-inline: auto; }
.wrap.narrow { max-width: 720px; }

/* faint scanlines + vignette so it reads like a lit screen, not flat CSS */
.veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: soft-light;
}

/* ── hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(84px, 13vh, 140px) 0 clamp(76px, 11vh, 120px);
  text-align: center;
  background:
    radial-gradient(1100px 700px at 14% 8%, rgba(42,16,73,.95), transparent 68%),
    radial-gradient(900px 620px at 82% 92%, rgba(192,64,111,.20), transparent 66%),
    linear-gradient(160deg, var(--violet-bg) 0%, var(--ink-2) 58%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}

/* the icon's radiating arcs, blown up as a hero motif emanating from the left */
.rings {
  position: absolute; z-index: -1;
  left: -14vw; top: 50%; translate: 0 -50%;
  width: 150vw; aspect-ratio: 1;
  background:
    /* point source */
    radial-gradient(circle at 22% 50%, rgba(255,255,255,.95) 0 .32%, rgba(160,120,255,.55) .8%, rgba(123,92,255,.16) 3.2%, transparent 5%),
    /* four arcs, inner → outer, matching the icon's colour walk */
    radial-gradient(circle at 22% 50%, transparent 8.6%, rgba(123,92,255,.85) 8.9%, transparent 9.3%),
    radial-gradient(circle at 22% 50%, transparent 13.2%, rgba(166,79,232,.72) 13.5%, transparent 13.9%),
    radial-gradient(circle at 22% 50%, transparent 18.0%, rgba(196,79,160,.58) 18.3%, transparent 18.7%),
    radial-gradient(circle at 22% 50%, transparent 22.8%, rgba(192,64,111,.46) 23.1%, transparent 23.5%);
  filter: blur(1.5px) saturate(115%);
  /* crop to arcs sweeping right, as in the icon */
  -webkit-mask-image: linear-gradient(96deg, transparent 20%, #000 34%, #000 72%, transparent 92%);
          mask-image: linear-gradient(96deg, transparent 20%, #000 34%, #000 72%, transparent 92%);
  opacity: .62;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .52; transform: scale(1); }
  50%      { opacity: .68; transform: scale(1.018); }
}

/* horizon grid, subtle — depth without turning into a Tron poster */
.grid-floor {
  position: absolute; z-index: -2; inset: auto 0 0 0; height: 46%;
  background-image:
    linear-gradient(to right, rgba(166,79,232,.16) 1px, transparent 1px),
    linear-gradient(to top,   rgba(166,79,232,.16) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: perspective(360px) rotateX(66deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 72%);
          mask-image: linear-gradient(to top, #000, transparent 72%);
  opacity: .5;
}

.hero-inner { position: relative; }

.hero-icon {
  width: clamp(78px, 11vw, 108px); height: auto;
  border-radius: 23%;
  margin: 0 auto 26px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 50px -12px rgba(123,92,255,.55);
}

/* ── the wordmark: colour splits at the shared T ──────────────── */
.wordmark {
  margin: 0 0 10px;
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1;
  color: #FBF9FF;
  text-shadow: 0 0 26px rgba(255,255,255,.16);
}
.wordmark span {
  /* "Tone" glows in the arc gradient — the pun, done with colour */
  background: linear-gradient(96deg, var(--arc-1) 0%, var(--arc-2) 42%, var(--arc-3) 74%, var(--arc-4) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 18px rgba(166,79,232,.55)) drop-shadow(0 0 42px rgba(196,79,160,.30));
}

.tagline {
  margin: 0 0 26px; font-size: clamp(13px, 1.7vw, 15px);
  letter-spacing: .30em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
}

.sub {
  margin: 0 auto; max-width: 54ch;
  font-size: clamp(17px, 2.1vw, 20.5px); color: #C9C2DA;
}

.cta { margin-top: 34px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(96deg, var(--arc-1), var(--arc-3));
  box-shadow: 0 10px 34px -10px rgba(166,79,232,.85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -10px rgba(196,79,160,.95); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(166,79,232,.12); transform: translateY(-2px); }

.soon { margin-top: 20px; font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }

/* ── sections ─────────────────────────────────────────────────── */
section { padding: clamp(64px, 9vw, 104px) 0; border-bottom: 1px solid var(--line); position: relative; }
section.quiet { background: linear-gradient(180deg, rgba(42,16,73,.30), transparent); }

.eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--arc-3);
}
h2 {
  margin: 0 0 14px; font-weight: 700; letter-spacing: -.028em;
  font-size: clamp(27px, 4vw, 42px); line-height: 1.12;
}
.lede { color: var(--muted); max-width: 60ch; margin: 0 0 42px; font-size: 17.5px; }
section.quiet .lede { margin-bottom: 0; }

/* ── cards ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); }
.card {
  position: relative; padding: 28px 26px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.card::before {
  /* a lit top edge, like light bleeding along a panel seam */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(166,79,232,.75), transparent);
  opacity: .6;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.num {
  display: block; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em;
  color: var(--arc-1);
}
.card h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── pricing ──────────────────────────────────────────────────── */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.tier {
  position: relative; padding: 30px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: 20px;
}
.tier.featured {
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(166,79,232,.16), rgba(196,79,160,.05));
  box-shadow: 0 22px 60px -26px rgba(166,79,232,.75);
}
.flag {
  position: absolute; top: -11px; left: 26px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: linear-gradient(96deg, var(--arc-1), var(--arc-3));
}
.tier h3 {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .20em; text-transform: uppercase; color: var(--arc-3);
}
.price { font-size: 33px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 4px; }
.price span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tier li { position: relative; padding: 7px 0 7px 25px; color: var(--muted); font-size: 15.5px; }
.tier li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--arc-2); box-shadow: 0 0 9px rgba(166,79,232,.9);
}
.tier .tag { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ── footer ───────────────────────────────────────────────────── */
footer { padding: 50px 0 66px; color: var(--muted); font-size: 14.5px; }
.footmark {
  margin: 0 0 16px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #FBF9FF;
}
.footmark span {
  background: linear-gradient(96deg, var(--arc-1), var(--arc-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
footer nav a { color: var(--text); text-decoration: none; }
footer nav a:hover { color: var(--arc-2); }
.credit { max-width: 68ch; font-size: 13.5px; line-height: 1.7; }

/* ── inner pages (privacy / support) ─────────────────────────── */
.page-head {
  position: relative; overflow: hidden;
  padding: 52px 0 42px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(42,16,73,.9), transparent 70%),
    linear-gradient(160deg, var(--violet-bg), var(--ink) 78%);
}
.page-head .backlink {
  display: inline-block; margin-bottom: 16px; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: #FBF9FF; text-decoration: none;
}
.page-head .backlink span {
  background: linear-gradient(96deg, var(--arc-1), var(--arc-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-head h1 { margin: 0; font-size: clamp(29px, 5vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.page-head .updated { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

main.doc { padding: 44px 0 76px; }
main.doc h2 { font-size: 21px; margin: 42px 0 10px; }
main.doc h3 { font-size: 17px; margin: 26px 0 6px; color: var(--arc-3); font-weight: 600; }
main.doc p, main.doc li { color: #D6D0E4; }
main.doc ul { padding-left: 21px; }
main.doc li { margin: 7px 0; }
main.doc .muted { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--arc-3); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

.callout {
  background: linear-gradient(180deg, rgba(166,79,232,.14), rgba(196,79,160,.05));
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px 22px; margin: 26px 0;
}
.callout p { margin: 0; }

.contact {
  background: linear-gradient(180deg, rgba(166,79,232,.14), rgba(196,79,160,.05));
  border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; margin: 26px 0 8px;
}
.contact p { margin: 0 0 8px; }
.contact a { font-size: 19px; font-weight: 600; }

details {
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 19px; margin: 10px 0;
  background: rgba(255,255,255,.028);
}
details[open] { border-color: var(--line-2); }
details summary { cursor: pointer; font-weight: 600; }
details summary::marker { color: var(--arc-2); }
details p { margin: 11px 0 2px; }

/* ── accessibility ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .grid-floor { height: 34%; }
  .rings { opacity: .42; }
}
