/* site.css — studio.svgr.in public website. Tokens follow design-system/svgr-studio/MASTER.md. */
:root {
  --bg: #fafafa; --surface: #fff; --surface-2: #f4f4f5; --ink: #18181b; --ink-2: #52525b; --muted: #63636b;
  --line: #e4e4e7; --primary: #18181b; --on-primary: #fff; --accent: #b45309; --accent-fill: #f59e0b; --on-accent: #18181b;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -24px rgb(0 0 0 / .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --surface: #18181b; --surface-2: #131316; --ink: #fafafa; --ink-2: #d4d4d8; --muted: #a1a1aa;
    --line: #3f3f46; --primary: #fafafa; --on-primary: #18181b; --accent: #fbbf24;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b; --surface: #18181b; --surface-2: #131316; --ink: #fafafa; --ink-2: #d4d4d8; --muted: #a1a1aa;
  --line: #3f3f46; --primary: #fafafa; --on-primary: #18181b; --accent: #fbbf24; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; }
.center { justify-content: center; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 480px) and (max-width: 719px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s ease-out, background-color .15s ease-out, border-color .15s ease-out; touch-action: manipulation; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.accent { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn.accent:hover { background: #fbbf24; }
.btn.on-dark { background: transparent; color: #fafafa; border-color: #52525b; }
.btn.on-dark:hover { border-color: #a1a1aa; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .row { height: 64px; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 8px; background: #18181b; color: #fafafa; display: grid; place-items: center; }
.brand.small { font-size: 15px; } .brand.small .mark { width: 26px; height: 26px; border-radius: 7px; } .brand.small .i { width: 15px; height: 15px; }
.links { display: none; gap: 4px; }
.links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.links a:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 900px) { .links { display: flex; } }
@media (max-width: 420px) { .hide-xs { display: none; } }

/* hero */
.hero { padding: 56px 0 32px; text-align: center; overflow: hidden; }
@media (min-width: 720px) { .hero { padding: 88px 0 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow .i { width: 15px; height: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 700; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent-fill) 45%, transparent) 62%); padding: 0 .05em; }
.lead { max-width: 660px; margin: 20px auto 0; font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.cta { margin-top: 28px; justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .i { color: #15803d; width: 16px; height: 16px; }

.shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.browser { margin-top: 48px; text-align: left; }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser .bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* highlight strip */
.strip { padding: 24px 0 8px; }
.strip .grid > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; }
.strip b { font-size: 17px; } .strip span { font-size: 14px; color: var(--muted); }

/* sections */
.sec { padding: 72px 0; }
@media (min-width: 720px) { .sec { padding: 104px 0; } }
.sec.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.sec h2, .final h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 620px; margin: 14px 0 0; text-wrap: pretty; }
#features h2, #features .sub, #how h2, #how .sub, .sec.alt > .wrap > h2, .sec.alt > .wrap > .sub { text-align: center; margin-left: auto; margin-right: auto; }

.feats { margin-top: 44px; }
.feats article, .steps li { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feats h3, .steps h3 { font-size: 18px; margin: 14px 0 6px; }
.feats p, .steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-fill) 16%, transparent); color: var(--accent); }
.ic .i { width: 21px; height: 21px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 56px; } .split.rev { grid-template-columns: 7fr 5fr; } .split.rev > :first-child { order: 2; } }
.list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list .i { color: #15803d; margin-top: 4px; }

.phones { margin-top: 44px; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
.phones figure { margin: 0; text-align: center; }
.phone { border: 8px solid #18181b; border-radius: 32px; overflow: hidden; background: #18181b; box-shadow: var(--shadow); aspect-ratio: 9 / 17; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.phones figcaption { margin-top: 14px; font-weight: 600; }
@media (max-width: 719px) {
  .phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-inline: -16px; padding-inline: 16px; }
  .phones figure { scroll-snap-align: center; }
}

.steps { list-style: none; padding: 0; margin: 44px 0 0; }
.steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 15px; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 32px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .15s ease-out; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0 0 18px; color: var(--ink-2); }

.final { background: #18181b; color: #fafafa; text-align: center; padding: 88px 0; }
.final .small { color: #a1a1aa; margin-top: 18px; }

.foot { padding: 28px 0; border-top: 1px solid var(--line); }
.foot .row { justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 6px 4px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* website showcase */
.demo-link { margin: 18px 0 0; }
.demo-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-underline-offset: 4px; }
.sec.web { background: #16120e; color: #f7f2ea; }
.sec.web .eyebrow { color: #e0b96a; }
.sec.web .sub { color: #d6ccbf; }
.sec.web .list li { color: #ece4d8; }
.sec.web .list .i { color: #e0b96a; }
.sec.web .shot { border-color: #3a3129; }
.sec.web .browser .bar { background: #221c16; border-color: #3a3129; }
.sec.web .browser .bar span { background: #16120e; border-color: #3a3129; color: #c9bfb2; }
.sec.web .browser .bar i { background: #3a3129; }
.web-grid { display: grid; gap: 32px; margin-top: 40px; align-items: start; }
@media (min-width: 960px) { .web-grid { grid-template-columns: 7fr 4fr; } }
.web-grid .list { margin-top: 0; }
.sec.web .browser { margin-top: 0; }
.phone.mini { max-width: 230px; margin: 28px auto 0; }
.sec.web .cta { justify-content: flex-start; margin-top: 36px; }

/* legal pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
