/* ==========================================================================
   Veyla Studios
   veylastudios.ca
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg:            #F7F6F3;
  --bg-tint:       #EFEDE8;
  --surface:       #FFFFFF;
  --surface-2:     #FBFAF8;
  --surface-sunk:  #F2F0EC;

  /* Ink */
  --ink:           #14171C;
  --ink-2:         #3D444F;
  --ink-3:         #626A78;
  --ink-invert:    #FFFFFF;

  /* Lines */
  --line:          #E4E1DA;
  --line-2:        #D6D2C9;

  /* Brand */
  --accent:        #1C6E72;
  --accent-hover:  #155A5E;
  --accent-tint:   #E7F1F1;
  --focus:         #1C6E72;

  /* Spectrum: the thread that runs through every app */
  --spectrum: linear-gradient(90deg, #2E7D5B 0%, #2A8288 34%, #5B6EE6 72%, #A38CFA 100%);

  /* App accents */
  /* Each app accent doubles as small label text, so every one of them has to
     clear WCAG AA against both the page and card surfaces. */
  --novellaire:    #6A5CE0;
  --foliover:      #2E7D5B;
  --dayloom:       #A35276;
  --folden:        #2F6DA1;

  /* Shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .05), 0 2px 8px rgba(20, 23, 28, .04);
  --shadow:    0 2px 4px rgba(20, 23, 28, .05), 0 12px 28px rgba(20, 23, 28, .07);
  --shadow-lg: 0 4px 8px rgba(20, 23, 28, .05), 0 28px 60px rgba(20, 23, 28, .11);

  /* Layout */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #0C0E12;
  --bg-tint:       #12151B;
  --surface:       #14181E;
  --surface-2:     #181D24;
  --surface-sunk:  #101318;

  --ink:           #ECEEF1;
  --ink-2:         #B7BFCB;
  --ink-3:         #8E97A5;
  --ink-invert:    #0C0E12;

  --line:          #232932;
  --line-2:        #2E3540;

  --accent:        #6FCFC9;
  --accent-hover:  #8ADDD7;
  --accent-tint:   #14262A;
  --focus:         #6FCFC9;

  --novellaire:    #9C90FF;
  --foliover:      #63B48C;
  --dayloom:       #E495B6;
  --folden:        #79B4E8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 2px 6px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .45), 0 32px 70px rgba(0, 0, 0, .5);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.95rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.95rem, 3.9vw, 2.85rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.42rem); letter-spacing: -.012em; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -.005em; }

p { margin: 0 0 1.1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: .18em;
  transition: color .18s var(--ease);
}
a:hover { color: var(--accent-hover); }

/* Some hosts inject a visited colour. Keep brand links stable. */
a:visited { color: var(--accent); }
.btn:visited, .nav a:visited, .brand:visited, .footer a:visited,
.app-card:visited, .tile:visited { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--ink);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 760px; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--sunk { background: var(--surface-sunk); border-block: 1px solid var(--line); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ink-invert);
  padding: .75rem 1.15rem;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 0; color: var(--ink-invert); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
}

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--ink-invert);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #000; color: var(--ink-invert); box-shadow: var(--shadow); }
html[data-theme="dark"] .btn--primary { background: var(--ink); color: var(--ink-invert); }
html[data-theme="dark"] .btn--primary:hover { background: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.btn--soft {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--soft:hover { color: var(--ink); box-shadow: var(--shadow); }

.btn--sm { padding: .58rem 1.1rem; font-size: .88rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}
.btn-row.center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.arrow-link svg { transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--spectrum);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }
.header.is-stuck::after { opacity: .5; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -.015em;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 26px; height: 26px; }

.nav { display: flex; align-items: center; gap: .3rem; }

.nav a {
  position: relative;
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .15rem;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }

.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: .8rem .9rem; border-radius: var(--r-sm); font-size: 1rem; }
  .nav a[aria-current="page"]::after { left: .9rem; transform: none; bottom: .55rem; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .38;
}
.hero-bg span:nth-child(1) {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: -6%; left: 2%;
  background: radial-gradient(circle, #5B6EE6, transparent 68%);
}
.hero-bg span:nth-child(2) {
  width: 40vw; height: 40vw; max-width: 540px; max-height: 540px;
  top: 8%; right: 0;
  background: radial-gradient(circle, #A38CFA, transparent 68%);
}
.hero-bg span:nth-child(3) {
  width: 38vw; height: 38vw; max-width: 500px; max-height: 500px;
  bottom: 2%; left: 26%;
  background: radial-gradient(circle, #2E7D5B, transparent 68%);
  opacity: .26;
}
html[data-theme="dark"] .hero-bg span { opacity: .3; }
html[data-theme="dark"] .hero-bg span:nth-child(3) { opacity: .2; }

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .85rem .38rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 550;
  letter-spacing: .005em;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--spectrum);
  flex-shrink: 0;
}

.hero h1 { margin-bottom: 1.1rem; }

.grad-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.hero .lede { font-size: clamp(1.08rem, 1.8vw, 1.28rem); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 92px; }
.hero-meta dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: .2rem;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ink);
}

/* Constellation of app icons */
.constellation {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.9rem, 2.4vw, 1.5rem);
  max-width: 430px;
  margin-inline: auto;
  width: 100%;
}

.con-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.con-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--app) 12%, transparent), transparent 62%);
  opacity: .9;
  pointer-events: none;
}
.con-item:hover {
  transform: translateY(-5px);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--app) 34%, var(--line));
}
/* Brick offset on the right hand column. Written as nth-child(even) rather than
   fixed positions so the stagger still reads correctly at any number of apps. */
.con-item:nth-child(even) { margin-top: clamp(1rem, 3vw, 2.2rem); }

.con-item img,
.con-item .ico {
  width: clamp(46px, 9vw, 58px);
  height: clamp(46px, 9vw, 58px);
  border-radius: 26%;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.con-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  position: relative;
}
.con-item span {
  font-size: .8rem;
  color: var(--ink-3);
  line-height: 1.45;
  position: relative;
}

@media (max-width: 560px) {
  .con-item:nth-child(even) { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   7. Cards and grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; margin-bottom: 0; }

a.card { text-decoration: none; color: var(--ink); display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }

/* Principles */
.principle {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.7rem, 3.4vw, 2.3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.principle::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
  opacity: .8;
}
.principle .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: color-mix(in srgb, var(--ink) 16%, transparent);
  margin-bottom: .8rem;
}
.principle h3 { font-size: 1.16rem; margin-bottom: .45rem; }
.principle p { font-size: .95rem; margin-bottom: 0; }

/* Feature tiles with icon */
.tile {
  display: flex;
  gap: 1rem;
  padding: clamp(1.25rem, 2.6vw, 1.6rem);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tile .tile-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}
.tile .tile-ico svg { width: 19px; height: 19px; }
.tile h4 { margin: 0 0 .3rem; }
.tile p { font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   8. App cards
   -------------------------------------------------------------------------- */

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 130% at 0% 0%, color-mix(in srgb, var(--app) 10%, transparent), transparent 58%);
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--app) 30%, var(--line));
}
.app-card > * { position: relative; }

.app-icon {
  width: clamp(66px, 12vw, 88px);
  height: clamp(66px, 12vw, 88px);
  border-radius: 24%;
  box-shadow: var(--shadow);
}

.app-body { min-width: 0; }

.app-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-bottom: .55rem;
}
.app-title h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.72rem);
}
.app-tagline {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--app);
  margin-bottom: .7rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .62rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  background: var(--surface-2);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--live { color: #1E7A54; border-color: color-mix(in srgb, #1E7A54 32%, transparent); background: color-mix(in srgb, #1E7A54 8%, transparent); }
.status--soon { color: #9A6B12; border-color: color-mix(in srgb, #9A6B12 32%, transparent); background: color-mix(in srgb, #9A6B12 8%, transparent); }
.status--dev  { color: var(--ink-3); }
html[data-theme="dark"] .status--live { color: #6FD3A0; }
html[data-theme="dark"] .status--soon { color: #E2B45E; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .68rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 550;
  color: var(--ink-2);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
}
.chip svg { width: 13px; height: 13px; opacity: .75; }

.app-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.feature-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .5rem .3rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--app, var(--accent));
  opacity: .55;
}

@media (max-width: 620px) {
  .app-card { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. Callout band
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .band {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 110% at 12% 0%, rgba(91, 110, 230, .34), transparent 60%),
    radial-gradient(70% 120% at 92% 100%, rgba(46, 125, 91, .3), transparent 58%);
  pointer-events: none;
}
.band > * { position: relative; }
.band h2 { color: #fff; margin-bottom: .6rem; }
.band p { color: rgba(255, 255, 255, .76); }
.band a { color: #fff; }
.band .btn--soft {
  background: #fff;
  color: #101319;
  border-color: transparent;
}
.band .btn--soft:hover { background: #fff; color: #000; }
.band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.band .btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------------------------
   10. Prose (about, legal, support articles)
   -------------------------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.8rem; font-size: clamp(1.5rem, 2.8vw, 1.95rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: 1.16rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .38em;
}

.notice {
  display: flex;
  gap: .85rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r);
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--ink-2);
  font-size: .93rem;
  margin-bottom: 2.2rem;
}
.notice svg { flex-shrink: 0; width: 19px; height: 19px; color: var(--accent); margin-top: .12rem; }
.notice p { margin: 0; font-size: .93rem; }

/* --------------------------------------------------------------------------
   11. Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 4.8rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .7rem; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.6rem 1.25rem 0;
  position: relative;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute;
  right: .3rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .answer { padding: 0 2.6rem 1.5rem 0; }
.faq .answer p { font-size: .96rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { padding-left: 1.2rem; color: var(--ink-2); font-size: .96rem; }

/* --------------------------------------------------------------------------
   13. Contact card
   -------------------------------------------------------------------------- */

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.contact-card .email {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  word-break: break-word;
}
@media (max-width: 620px) {
  .contact-card { grid-template-columns: 1fr; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .05rem;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-sans);
}
.steps strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.6rem;
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand p {
  font-size: .93rem;
  max-width: 34ch;
  margin-top: .9rem;
  color: var(--ink-3);
}
.footer h4 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--ink-3);
  margin-bottom: .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer li a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .93rem;
  transition: color .18s var(--ease);
}
.footer li a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-3);
}
.footer-bottom p { margin: 0; color: var(--ink-3); font-size: .86rem; }
.footer-rule {
  height: 3px;
  border-radius: 3px;
  background: var(--spectrum);
  opacity: .75;
  margin-bottom: 2.4rem;
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .07s; }
.js .reveal[data-delay="2"] { transition-delay: .14s; }
.js .reveal[data-delay="3"] { transition-delay: .21s; }
.js .reveal[data-delay="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   16. Utilities
   -------------------------------------------------------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */

@media print {
  .header, .footer, .hero-bg, .band, .skip, .icon-btn { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding: 1.2rem 0; }
  a { color: #000; }
  .faq details { break-inside: avoid; }
  .faq details > .answer { display: block !important; }
}
