/* ============================================================
   QR Studio — shared stylesheet
   ============================================================ */

:root {
  --paper: #F4F7F3;
  --paper-raised: #FFFFFF;
  --ink: #0E211B;
  --ink-soft: #45564F;
  --ink-faint: #7C8B85;
  --teal-deep: #1F6E5E;
  --teal-bright: #2C9C82;
  --amber: #E7A93D;
  --line: rgba(15, 38, 32, 0.12);
  --shadow: 0 24px 60px -32px rgba(14, 33, 27, 0.35);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1613;
    --paper-raised: #12211C;
    --ink: #EAF3EF;
    --ink-soft: #A9BDB5;
    --ink-faint: #6C7F77;
    --teal-deep: #2C9C82;
    --teal-bright: #55C9AC;
    --amber: #F0B94D;
    --line: rgba(234, 243, 239, 0.14);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-weight: 450;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-bright));
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

.navlinks {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.navlinks a { color: var(--ink-soft); }
.navlinks a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 620px) { .navlinks .hide-sm { display: none; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}
.pill-solid { background: var(--ink); color: var(--paper); }
.pill-solid:hover { opacity: 0.88; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--teal-deep), var(--teal-bright) 78%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(52px, 8vw, 96px);
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.99;
  margin-top: 14px;
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .pill-solid { background: #fff; color: var(--teal-deep); }
.hero .pill-ghost { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; }
.hero .pill-ghost:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }

.trust-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0.85; }

/* Viewfinder */
.viewfinder {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(400px, 100%);
  margin-inline: auto;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.viewfinder canvas {
  position: absolute; inset: 16px;
  width: calc(100% - 32px); height: calc(100% - 32px);
  border-radius: 16px;
}
.vf-corner { position: absolute; width: 34px; height: 34px; border: 3.5px solid #fff; opacity: 0.95; }
.vf-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.vf-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
.vf-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }
.vf-br { bottom: 8px; right: 8px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
.vf-caption {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.78); white-space: nowrap;
}

/* ---------- Sections ---------- */
section { padding-top: clamp(60px, 9vw, 104px); padding-bottom: clamp(60px, 9vw, 104px); }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Feature grid */
.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-tile { background: var(--paper-raised); padding: 30px 26px 34px; position: relative; }
.tile-bracket {
  width: 20px; height: 20px;
  border-top: 2.5px solid var(--teal-bright);
  border-left: 2.5px solid var(--teal-bright);
  border-radius: 6px 0 0 0; margin-bottom: 20px;
}
.feature-tile h3 { font-size: 1.12rem; font-weight: 750; }
.feature-tile p { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.feature-tile .num {
  position: absolute; top: 26px; right: 26px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem; color: var(--ink-faint);
}

/* Lookup band */
.band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
}
.band-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
}
@media (max-width: 780px) { .band-inner { grid-template-columns: 1fr; } }
.band h2 { color: var(--paper); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.band .eyebrow { color: var(--amber); }
.band p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.lookup-list { display: grid; gap: 18px; align-content: start; }
.lookup-row { display: flex; gap: 14px; align-items: baseline; }
.lookup-row .tag { color: var(--amber); font-size: 0.82rem; flex: none; width: 74px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.lookup-row .txt strong { font-size: 0.98rem; color: var(--paper); }
.lookup-row .txt p { font-size: 0.9rem; margin-top: 4px; }

/* Pricing */
.pricing-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: stretch;
}
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border-radius: 24px; padding: 34px 30px; border: 1px solid var(--line);
  background: var(--paper-raised); display: flex; flex-direction: column;
}
.price-card.pro {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal-bright));
  color: #fff; border: none; box-shadow: var(--shadow);
}
.plan-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.price { margin-top: 14px; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.price span { font-size: 0.9rem; font-weight: 500; opacity: 0.75; }
.price-alt { margin-top: 4px; font-size: 0.85rem; opacity: 0.82; }
.price-list { margin-top: 24px; display: grid; gap: 12px; font-size: 0.92rem; flex: 1; }
.price-list div { display: flex; gap: 10px; align-items: flex-start; }
.price-list .tick { flex: none; width: 16px; }
.price-card.pro .price-list { color: rgba(255, 255, 255, 0.92); }
.price-card:not(.pro) .price-list { color: var(--ink-soft); }
.plan-foot { margin-top: 24px; font-size: 0.78rem; opacity: 0.78; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 48px 0 8px; }
.legal-hero .eyebrow { color: var(--teal-bright); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 12px; }
.legal-hero .meta {
  margin-top: 12px; font-size: 0.82rem; color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 32px 0 80px; }
@media (max-width: 780px) { .doc-grid { grid-template-columns: 1fr; gap: 20px; } }
.doc-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 8px;
  border-left: 2px solid var(--line); padding-left: 16px; }
@media (max-width: 780px) { .doc-toc { position: static; } }
.doc-toc a { font-size: 0.85rem; color: var(--ink-faint); padding: 3px 0; }
.doc-toc a:hover { color: var(--teal-bright); text-decoration: none; }
.doc-body { max-width: 68ch; }
.doc-body h2 {
  font-size: 1.2rem; font-weight: 750; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc-body p { margin-top: 12px; color: var(--ink-soft); font-size: 0.98rem; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; color: var(--ink-soft); font-size: 0.98rem; }
.doc-body li { margin-top: 6px; }
.callout {
  margin-top: 20px; padding: 18px 20px; border-radius: 14px;
  background: color-mix(in srgb, var(--teal-bright) 12%, var(--paper-raised));
  border: 1px solid color-mix(in srgb, var(--teal-bright) 30%, transparent);
  font-size: 0.94rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.foot-grid {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between;
  align-items: flex-start; padding-bottom: 26px;
}
.foot-links { display: flex; gap: 22px; font-size: 0.9rem; color: var(--ink-soft); flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
