/* InkVisionApp site
   Layout: brand-gradient hero with phone stack, then a narrow reading column
   for steps, features and legal text. Healed-ink navy is the dark ground. */
:root {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --fg: #11152b;
  --muted: #565c78;
  --line: #e2e3f0;
  --accent-text: #4f46e5;
  --violet: #6c63ff;
  --teal: #00d4aa;
  --ink: #001e28;
  --on-brand: #ffffff;
  --brand: linear-gradient(160deg, #6c63ff 0%, #3f8fe0 50%, #00d4aa 100%);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --radius: 18px;
  --wrap: 72rem;
  --read: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04161d;
    --surface: #0a2430;
    --fg: #eaf4f6;
    --muted: #9ab3ba;
    --line: #173845;
    --accent-text: #aaa5ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #04161d;
  --surface: #0a2430;
  --fg: #eaf4f6;
  --muted: #9ab3ba;
  --line: #173845;
  --accent-text: #aaa5ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.read { max-width: var(--read); margin-inline: auto; padding-inline: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--brand);
  color: var(--on-brand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-brand);
  text-decoration: none;
}
.brand .mark {
  width: 40px;
  aspect-ratio: 624 / 399;
  background: var(--on-brand);
  -webkit-mask: url("images/logo-mark-white.png") center / contain no-repeat;
  mask: url("images/logo-mark-white.png") center / contain no-repeat;
}
.wordmark { font-family: var(--font-script); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--step--1); font-weight: 600; }
.site-nav a { color: var(--on-brand); text-decoration: none; opacity: 0.9; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: var(--brand);
  color: var(--on-brand);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: 56px 0;
}
.hero-copy { display: grid; gap: 22px; padding-bottom: 56px; }
.hero h1 { font-size: var(--step-3); font-weight: 800; }
.hero .lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; opacity: 0.95; }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  font-size: var(--step--1);
}
.availability::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--on-brand);
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  min-height: 420px;
}
.phone {
  width: min(42%, 230px);
  border-radius: 30px 30px 0 0;
  border: 7px solid #0b0e22;
  border-bottom: 0;
  background: #0b0e22;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 20, 40, 0.35);
}
.phone img { width: 100%; }
.phone.side { transform: translateY(40px); opacity: 0.92; }
.phone.side.left { margin-right: -28px; }
.phone.side.right { margin-left: -28px; }
.phone.front { position: relative; z-index: 2; width: min(48%, 260px); }

/* Placeholder for the finished-tattoo screenshot. Replace the inner
   .preview-slot with <img src="images/screen-preview.jpg" alt="..."> later. */
.preview-slot {
  aspect-ratio: 585 / 1266;
  background:
    radial-gradient(120% 60% at 50% 40%, rgba(108, 99, 255, 0.35), transparent 70%),
    #001e28;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: #eaf4f6;
}
.preview-slot .mark {
  width: 70%;
  aspect-ratio: 624 / 399;
  background: #eaf4f6;
  -webkit-mask: url("images/logo-mark-white.png") center / contain no-repeat;
  mask: url("images/logo-mark-white.png") center / contain no-repeat;
}
.preview-slot span { font-family: var(--font-script); font-size: 1.6rem; line-height: 1.1; }

/* ---------- Sections ---------- */
section.block { padding-block: 72px; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40rem; }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.steps li { display: grid; gap: 8px; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
}
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); }

.ink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.swatches { display: flex; gap: 14px; }
.swatch { display: grid; gap: 8px; justify-items: center; font-size: var(--step--1); color: var(--muted); }
.swatch i {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--line);
}
.swatch code { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.ink h2 { font-size: var(--step-2); margin-bottom: 12px; }
.ink p { color: var(--muted); max-width: 52ch; }

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- Legal / support pages ---------- */
.page-title { padding-block: 48px 8px; }
.page-title h1 { font-size: var(--step-3); }
.page-title .meta { margin-top: 10px; color: var(--muted); font-size: var(--step--1); }
.prose { padding-block: 24px 80px; }
.prose h2 { font-size: var(--step-1); margin: 40px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose .table-wrap { overflow-x: auto; margin-bottom: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.contact-email { font-weight: 700; font-size: var(--step-1); word-break: break-all; }
.todo { background: #ffe58a; color: #3a2c00; padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 0; }
  .hero-copy { padding-bottom: 8px; }
  .phones { min-height: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .ink { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: 14px; }
  .phone { border-width: 5px; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone { transition: transform 0.4s ease; }
  .phones:hover .phone.side.left { transform: translateY(30px) rotate(-2deg); }
  .phones:hover .phone.side.right { transform: translateY(30px) rotate(2deg); }
}
