/* =========================================================
   Vela Studios website: one stylesheet for every page.
   Colours live in :root. Change them here, and they change everywhere.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F6F8;
  --text: #111111;
  --muted: #6B6B76;
  --line: #EAEAEE;
  --accent: #7C5CFF;
  --accent-deep: #5234CC;
  --accent-tint: #F2EEFF;
  --radius: 28px;
  --max: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .6); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav (frosted glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 26px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center;
  text-align: center;
  padding: 48px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: auto 50% 10% auto;
  width: 900px; height: 600px; transform: translateX(50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, .14), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; transform-origin: 50% 30%; }
.hero-mascot-wrap { width: clamp(150px, 22vw, 230px); margin: 0 auto 28px; }
.hero-mascot img { width: 100%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(17, 17, 17, .12)); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.hero h1 {
  font-size: clamp(54px, 11vw, 136px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 800;
  margin: 0 0 24px;
}
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-line { display: block; }
.hero-line .accent { color: var(--accent); }
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 34ch; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-price { display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.hero-price:hover { text-decoration: underline; text-underline-offset: 4px; }
.pricing-manage { text-align: center; font-size: 15px; margin: 12px 0 0; color: var(--muted); }
.pricing-manage a { color: var(--accent); font-weight: 600; text-decoration: none; }
.doc .box .btn-primary { color: #fff; text-decoration: none; }
.scroll-hint { margin-top: 56px; font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Features with pinned phone ---------- */
.features { position: relative; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.feature-panel {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0;
}
.feature-panel .num { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.feature-panel h2 {
  font-size: clamp(42px, 6vw, 84px);
  line-height: .98; letter-spacing: -.05em; font-weight: 800;
  margin: 0 0 22px; max-width: 11ch;
}
.feature-panel p { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 30ch; margin: 0 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); }
.feature-panel .fine { font-size: 13px; margin-top: 18px; }
.pill-premium { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; vertical-align: 4px; letter-spacing: 0; }

.phone-col { position: relative; }
.phone-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.phone-sticky::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .16), transparent);
}

/* Generic phone frame (not a real device) */
.phone {
  position: relative;
  width: min(320px, 26vw);
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2A2A30, #0B0B0D);
  box-shadow: 0 50px 100px -30px rgba(17, 17, 17, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; }
.phone-screen::before {
  content: ""; position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 24px; border-radius: 20px; background: #0B0B0D;
}
.screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.screen.is-active { opacity: 1; transform: none; }
.phone.inline { display: none; }

/* ---------- More features ---------- */
.section { padding: 120px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.05em; font-weight: 800; margin: 0 0 18px; }
.section-head p { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); margin: 0 auto; max-width: 40ch; }

.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; }
.tile .ico { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--accent); margin-bottom: 40px; }
.tile .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-soft); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; }
.plan {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 470px;
}
.plan h3 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.02em; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 4px; }
.plan .per { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 28px; font-size: 15px; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan.featured {
  min-height: 520px;
  border: 2px solid var(--accent);
  box-shadow: 0 40px 80px -40px rgba(124, 92, 255, .55);
  transform: scale(1.04);
  z-index: 1;
}
.plan.featured .btn-primary { background: var(--accent); }
.plan.featured .btn-primary:hover { background: var(--accent-deep); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
}
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; max-width: 60ch; margin: 44px auto 0; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; }
.cta img { width: 110px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Text pages (privacy, terms, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 800; margin: 0 0 14px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 26px; letter-spacing: -.03em; margin: 52px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: #2A2A30; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc .box { background: var(--bg-soft); border-radius: 22px; padding: 24px 28px; margin: 24px 0; }
.doc .box h2 { margin-top: 0; font-size: 20px; }
.doc .box > :last-child { margin-bottom: 0; }
.draft {
  background: #FFF6D6; color: #5A4500;
  border-radius: 16px; padding: 14px 18px; margin: 0 0 32px; font-size: 15px;
}
/* Details still to be decided. Search the code for class="tbd" */
.tbd { background: #FFF1A8; color: #5A4500; border-radius: 6px; padding: 0 6px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); }

details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > :not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 22px; margin-bottom: 0; }
.contact {
  background: var(--text); color: #fff;
  border-radius: var(--radius); padding: 32px; margin: 32px 0 8px;
}
.contact p { margin: 0 0 16px; color: rgba(255, 255, 255, .75); }
.contact a.mail { color: #fff; font-size: clamp(18px, 4vw, 24px); font-weight: 700; word-break: break-all; }

/* ---------- Animation start states ----------
   html.anim is only added when JavaScript runs AND the visitor
   hasn't asked for reduced motion, so content is never hidden otherwise. */
html.anim .hero-line { transform: translateY(110%); }
html.anim [data-hero-fade], html.anim .hero-mascot, html.anim [data-reveal],
html.anim .fx, html.anim .more-grid .tile, html.anim .plans .plan { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .plan, .plan.featured { min-height: 0; }
  .plan.featured { transform: none; }
}
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; }
  .phone-col { display: none; }
  .feature-panel { min-height: 0; padding: 48px 0; }
  .feature-panel h2 { font-size: clamp(36px, 10vw, 54px); margin-bottom: 16px; }
  .feature-panel p { margin-bottom: 18px; }
  .phone.inline { display: block; width: min(210px, 56vw); margin: 32px auto 0; padding: 8px; border-radius: 40px; }
  .phone.inline .phone-screen { border-radius: 33px; }
  .phone.inline .phone-screen::before { top: 9px; height: 18px; }
  .phone.inline .screen { opacity: 1; transform: none; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .section { padding: 88px 0; }
  .more-grid, .plans { grid-template-columns: 1fr; }
  .plans { gap: 20px; }
  .doc { padding: 48px 16px 72px; }
  .contact { padding: 24px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
}

/* ---------- Respect "Reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot img { animation: none; }
  .screen { transition: none; }
  .btn, summary::after { transition: none; }
}
