/* Exist website. Colors and type come from the app (CustomColors / ExistType). */
:root {
  --bg: #0A0A0C;
  --bg-raised: #111116;
  --card: #15151B;
  --border: #26262E;
  --fg: #F4F4F7;
  --muted: #9A9AA5;
  --violet: #8454DB;
  --spectrum: linear-gradient(110deg, #EE653B 0%, #E84B52 14%, #B450CA 30%, #8454DB 45%, #6E71DA 58%, #639ECA 72%, #79CDCF 86%, #85E3C1 100%);
  --warm: linear-gradient(110deg, #EE653B, #E84B52 45%, #B450CA);
  --radius: 18px;
  --max: 1120px;
  --display: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid #B450CA; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(10,10,12,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(38,38,46,.6); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.5px; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav .btn { color: var(--bg); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--body); padding: 14px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); border: 0; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { color: var(--muted); font-size: 14px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 36em; }
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(132,84,219,.32), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(121,205,207,.14), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .phone { margin-inline: auto; } }
.divider { height: 1px; background: var(--spectrum); opacity: .35; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 700 14px/1 var(--display); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); margin-bottom: 18px; }
.card .muted, .muted { color: var(--muted); }
.promise { display: flex; gap: 16px; align-items: flex-start; }
.promise .dot { flex: 0 0 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--spectrum); }

/* Pricing */
.price { display: flex; gap: 20px; flex-wrap: wrap; }
.price .card { flex: 1 1 260px; }
.price .amount { font: 700 40px/1 var(--display); margin: 10px 0 6px; }
.price .badge { display: inline-block; font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; background: var(--warm); color: #fff; }

/* Press */
.press a { text-decoration: none; }
.press .card { height: 100%; transition: border-color .15s ease; }
.press a:hover .card { border-color: #3a3a46; }
.press .outlet { font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.press .headline { font: 700 22px/1.3 var(--display); }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details summary { cursor: pointer; list-style: none; font: 600 18px/1.4 var(--body); display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { color: var(--muted); padding-top: 10px; max-width: 48em; }

/* Crisis band */
.crisis { border: 1px solid rgba(232,75,82,.35); background: linear-gradient(110deg, rgba(238,101,59,.10), rgba(180,80,202,.08)); border-radius: var(--radius); padding: 24px 28px; }
.crisis strong { font-family: var(--display); }

/* Legal / long-form pages */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 26px; margin-top: 2.2em; }
.doc h3 { font-size: 19px; margin-top: 1.6em; }
.doc p, .doc li { color: #D6D6DD; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin: .35em 0; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; }
.doc .summary h2 { margin-top: 0; font-size: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 600; }
.doc .toc { columns: 2; gap: 32px; padding-left: 1.2em; }
@media (max-width: 640px) { .doc .toc { columns: 1; } .doc table { font-size: 14px; } }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { color: var(--fg); font: 600 14px/1 var(--body); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* v2: real logo, real screenshots, simpler footer */
.brand img { width: auto; height: 28px; }
.site-footer .brand img { height: 24px; }
.hero-shot { width: min(360px, 100%); margin-inline: auto; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 120px rgba(132,84,219,.28); border: 1px solid #2c2c35; }
.hero-shot img { width: 100%; height: auto; }
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, calc((100vw - var(--max)) / 2)) 24px; scrollbar-width: thin; }
.strip figure { flex: 0 0 min(250px, 70vw); margin: 0; scroll-snap-align: center; }
.strip img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-row .socials { margin: 0 0 0 auto; }
@media (max-width: 720px) { .foot-row .socials { margin-left: 0; } }

/* Orbit navigation: collapsed nodes that open into tabs on hover, focus or tap */
.nav { gap: 14px; }
.orbit-nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid transparent; transition: background .4s cubic-bezier(.16,1,.3,1), border-color .4s cubic-bezier(.16,1,.3,1); }
.orbit-nav:hover, .orbit-nav:focus-within, .orbit-nav.open, .orbit-nav.peek { background: rgba(18,17,24,.72); border-color: rgba(244,244,247,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.orbit-nav .tab { display: flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; transition: color .25s, background .25s; }
.orbit-nav .tab:hover, .orbit-nav .tab:focus-visible { color: var(--fg); background: rgba(244,244,247,.07); }
.orbit-nav .tab[aria-current="page"] { color: var(--fg); }
.orbit-nav .node { position: relative; flex: 0 0 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(244,244,247,.42); }
.orbit-nav .node::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #F4F4F7; box-shadow: 0 0 6px rgba(183,155,240,.9); animation: nodeOrbit 5.5s linear infinite; }
.orbit-nav .tab + .tab .node::after { animation-duration: 8s; animation-direction: reverse; }
.orbit-nav .tab[aria-current="page"] .node { border-color: #B79BF0; }
@keyframes nodeOrbit { from { transform: rotate(0deg) translateY(-8px); } to { transform: rotate(360deg) translateY(-8px); } }
.orbit-nav .label { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-left: 0; transition: max-width .55s cubic-bezier(.16,1,.3,1), opacity .3s, margin-left .55s cubic-bezier(.16,1,.3,1); }
.orbit-nav:hover .label, .orbit-nav:focus-within .label, .orbit-nav.open .label, .orbit-nav.peek .label { max-width: 220px; opacity: 1; margin-left: 10px; }
@media (max-width: 720px) {
  .nav { position: relative; gap: 8px; }
  .nav a:not(.btn) { display: flex; }
  .orbit-nav .tab { padding: 0 12px; height: 44px; }
  .site-header .btn.small { min-height: 42px; }
  .orbit-nav:hover .label, .orbit-nav:focus-within .label { max-width: 0; opacity: 0; margin-left: 0; }
  .orbit-nav.open { position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; padding: 8px; border-radius: 20px; min-width: 230px; }
  .orbit-nav.open .tab { height: 44px; font-size: 15px; }
  .orbit-nav.open .label { max-width: 200px; opacity: 1; margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .orbit-nav .node::after { animation: none; transform: translateY(-8px); } }

/* Policies hub */
.policy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 640px) { .policy-list { grid-template-columns: 1fr; } }
.policy { display: block; text-decoration: none; padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); transition: border-color .2s, transform .2s; }
.policy:hover { border-color: #3a3a46; transform: translateY(-2px); }
.policy h2 { font-size: 20px; margin: 0 0 8px; }
.policy p { color: var(--muted) !important; margin: 0 0 14px; font-size: 15.5px; }
.policy span { font-size: 13px; color: var(--muted); }

/* A soft pulse on the nodes so they read as something you can open */
.orbit-nav .node { box-shadow: 0 0 0 0 rgba(183,155,240,.0); animation: nodePulse 4.8s ease-in-out infinite; }
.orbit-nav .tab + .tab .node { animation-delay: 1.2s; }
@keyframes nodePulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(183,155,240,0); } 80% { box-shadow: 0 0 0 6px rgba(183,155,240,.18); } 92% { box-shadow: 0 0 0 10px rgba(183,155,240,0); } }
.orbit-nav:hover .node, .orbit-nav.open .node, .orbit-nav.peek .node { animation: none; }
@media (prefers-reduced-motion: reduce) { .orbit-nav .node { animation: none; } }
@media (max-width: 420px) {
  .brand img { height: 22px; }
  .site-header .btn.small { padding: 9px 13px; }
}
