/* ==========================================================================
   Novalyn — marketing site
   Plain CSS, no build step. Brand: indigo -> violet, amber accent.
   ========================================================================== */

:root {
  --ink: #0b1020;
  --ink-soft: #3f4864;
  --muted: #626a87;
  --line: #e7e9f2;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-tint: #f1f0fe;

  --indigo: #4f46e5;
  --violet: #7c3aed;
  --amber: #d97706;
  --amber-bg: #fef3c7;

  --brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06);
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.06), 0 18px 40px -20px rgba(11, 16, 32, 0.35);
  --maxw: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

/* A link inside running text must be distinguishable without colour alone
   (WCAG 1.4.1); buttons, nav items and footer lists keep their own style. */
p a:not(.btn), li a:not(.btn), .prose a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---- Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand span { font-size: 1.1rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 550; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #cfd3e6; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---- Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(60% 60% at 15% 0%, #eef0ff 0%, rgba(238, 240, 255, 0) 60%),
    radial-gradient(55% 55% at 100% 10%, #f6ecff 0%, rgba(246, 236, 255, 0) 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 64px 0 56px; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 .grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.9rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--violet); flex: none; }

/* App mock */
.mock {
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dcec; display: block; }
.mock-bar .t { margin-left: 8px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.mock-body { padding: 16px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-thumb { width: 42px; height: 42px; border-radius: 9px; background: var(--brand); flex: none; opacity: 0.92; }
.mock-thumb.b { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.mock-thumb.c { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.mock-lines { flex: 1; }
.mock-lines b { display: block; height: 9px; border-radius: 5px; background: #e7e9f2; margin-bottom: 6px; }
.mock-lines b:first-child { width: 62%; background: #d5d9ea; }
.mock-lines b:last-child { width: 38%; margin-bottom: 0; }
.mock-check { width: 20px; height: 20px; border-radius: 6px; background: var(--brand); flex: none; position: relative; }
.mock-check::after { content: ""; position: absolute; inset: 0; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.mock-progress { margin-top: 14px; height: 8px; border-radius: 999px; background: #eceef8; overflow: hidden; }
.mock-progress i { display: block; height: 100%; width: 68%; background: var(--brand); border-radius: 999px; }
.mock-note { margin-top: 10px; font-size: 0.76rem; color: var(--muted); }

/* ---- Notice ---------------------------------------------------------- */

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--amber-bg);
  border: 1px solid #fcd98a;
  color: #7c4a03;
}
.notice strong { color: #6a3e02; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--amber); }
.notice p { margin: 0; font-size: 0.95rem; }

/* ---- Cards / grids --------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.icon-badge {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--indigo); margin-bottom: 14px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---- Steps ----------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  counter-increment: step;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ---- Pricing --------------------------------------------------------- */

.plans { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand) border-box; box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.plan .name { font-weight: 700; font-size: 1.05rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--muted); font-size: 0.9rem; min-height: 1.3em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 0.95rem; color: var(--ink-soft); }
.plan li svg { width: 18px; height: 18px; color: var(--indigo); flex: none; margin-top: 3px; }
.plan--featured .price { color: var(--indigo); }
.pricing-foot { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 26px; }

/* ---- FAQ ------------------------------------------------------------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 12px;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 650; padding: 16px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; font-size: 0.97rem; }

/* ---- Legal / prose pages --------------------------------------------- */

.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose { padding: 32px 0 96px; }
.prose h2 { font-size: 1.35rem; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--ink-soft); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--indigo); }
.prose .meta { color: var(--muted); font-size: 0.9rem; }
.prose strong { color: var(--ink); }
.callout {
  border-left: 3px solid var(--indigo);
  background: var(--bg-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- Footer ---------------------------------------------------------- */

.site-footer { background: var(--ink); color: #c3c8dd; padding: 56px 0 30px; }
.site-footer a { color: #d9dcec; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-grid--4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #fff; }
.footer-tag { color: #9aa1bd; font-size: 0.92rem; margin-top: 12px; max-width: 30em; }
.footer-col h3, .footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 22px; font-size: 0.85rem; color: #8f96b3; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.disclaimer { font-size: 0.82rem; color: #8f96b3; margin-top: 14px; max-width: 62em; }

/* ---- Screenshots ----------------------------------------------------- */

/* Grid tracks default to `min-width: auto`, and a replaced element's intrinsic
   width is its attribute width — a 700px screenshot then forces the column
   wider than the phone it is displayed on. */
.hero-grid > *, .shot-grid > *, .compare-wrap > * { min-width: 0; }
figure { margin: 0; max-width: 100%; }

/* A screenshot is taller than any sensible slot on the page, and a hard cut can
   slice a button in half. The fade makes the bottom edge deliberate instead of
   accidental. */
.shot-clip {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 84%, rgba(0, 0, 0, 0) 100%);
}
.shot-clip .shot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.shot-clip--hero { height: 600px; }
.shot-clip--tall { height: 460px; }
@media (max-width: 820px) { .shot-clip--hero { height: 520px; } .shot-clip--tall { height: 420px; } }

.shot {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.shot-frame { position: relative; }
.shot-frame figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.shot-frame figcaption strong { color: var(--ink-soft); display: block; font-size: 0.95rem; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .shot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- The safe order -------------------------------------------------- */

.order { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .order { grid-template-columns: 1fr; } }
.order-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.order-step .n {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--indigo); font-weight: 800; font-size: 0.8rem;
  margin-bottom: 10px;
}
.order-step h3 { font-size: 1rem; margin-bottom: 4px; }
.order-step p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.order-step--last { background: #fff8f6; border-color: #f6d3c7; }
.order-step--last .n { background: #fde8e2; color: #b42318; }

/* ---- Comparison table ------------------------------------------------ */

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td {
  padding: 15px 18px;
  text-align: left;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}
.compare thead th.us { color: var(--indigo); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare td.us { background: #fbfaff; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-flex; gap: 8px; align-items: flex-start; }
.compare .yes::before, .compare .no::before { font-weight: 800; line-height: 1.5; }
.compare .yes::before { content: "\2713"; color: #0f766e; }
.compare .no::before { content: "\2715"; color: #b42318; }
.compare .no { color: var(--ink-soft); }

/* ---- Closing band ---------------------------------------------------- */

.band {
  background: var(--ink);
  color: #e6e8f4;
  padding: 72px 0;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: #b6bcd6; max-width: 34em; margin: 0 auto 26px; }
.band .trust { justify-content: center; color: #9aa1bd; }
.band .trust svg { color: #a78bfa; }
.band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.band .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.55); }

/* ---- Demo page ------------------------------------------------------- */

.demo-shell { width: 450px; max-width: 100%; margin: 0 auto; }
.demo-frame {
  width: 450px;
  height: 620px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 520px) {
  .demo-shell { width: 351px; }
  .demo-frame { transform: scale(0.78); transform-origin: top left; }
}
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.demo-bar .chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-bar .chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: transparent; }
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  max-width: min(560px, calc(100% - 32px));
}
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Utilities ------------------------------------------------------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
