/* AIPorter site. Colors match the extension popup: warm dark by default, light follows the system. */
:root {
  --bg: #1A1915;
  --bg-2: #201E19;
  --surface: #26241E;
  --ink: #EDE9DF;
  --muted: #A39C8C;
  --hairline: #34312A;
  --accent: #D9A441;
  --accent-soft: rgba(217, 164, 65, 0.12);
  --accent-ink: #1A1915;
  --ok: #7FB89A;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F4EC;
    --bg-2: #F0ECE1;
    --surface: #FFFDF7;
    --ink: #1A1915;
    --muted: #6E6859;
    --hairline: #DED8C8;
    --accent: #9A6A14;
    --accent-soft: rgba(154, 106, 20, 0.10);
    --accent-ink: #FFFDF7;
    --ok: #2F7A52;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
kbd {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.85em;
  padding: 2px 7px;
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px; }
.brand svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.nav .btn-primary { color: var(--accent-ink); }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 50%; transform: translateX(-50%);
  width: min(900px, 100vw); height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 6vw, 62px); max-width: 820px; margin: 0 auto 20px; position: relative; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 660px; margin: 0 auto 32px; position: relative; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.platforms { margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; position: relative; }
.chip { padding: 6px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; }

/* Demo strip: a drawn picture of a transfer */
.demo { margin: 8px auto 0; max-width: 860px; }
.demo-card {
  border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface);
  padding: 22px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
}
.pane { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px; background: var(--bg-2); text-align: left; }
.pane-head { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.line { height: 8px; border-radius: 4px; background: var(--hairline); margin: 8px 0; }
.line.short { width: 60%; }
.line.mid { width: 80%; }
.line.me { margin-left: auto; width: 55%; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.arrow { color: var(--accent); text-align: center; font-size: 13px; font-weight: 600; }
.arrow svg { width: 56px; height: 24px; display: block; margin: 0 auto 4px; }
@media (max-width: 640px) {
  .demo-card { grid-template-columns: 1fr; }
  .arrow svg { transform: rotate(90deg); }
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature.flip .feature-copy { order: 2; }
.feature-tag { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 12px; }
.feature p { color: var(--muted); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.ticks.no li::before { content: "–"; color: var(--muted); }
.visual { border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); padding: 22px; }
.visual .label { font-size: 12px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.bubble { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--bg-2); border: 1px solid var(--hairline); }
.bubble.good { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.bubble + .label { margin-top: 16px; }
.md { font-family: ui-monospace, Menlo, monospace; font-size: 13px; white-space: pre-wrap; line-height: 1.55; color: var(--ink); margin: 0; }
.meter { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--hairline); }
.meter span { display: block; height: 100%; background: var(--accent); }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; margin: 14px 0 6px; }
.meter-row:first-of-type { margin-top: 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-copy { order: 0; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--hairline); border-radius: 18px; padding: 28px; background: var(--surface); display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.price { font-family: 'Fraunces', Georgia, serif; font-size: 44px; font-weight: 600; margin: 10px 0 2px; }
.price small { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .for { color: var(--muted); font-size: 15px; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.plan .ticks { margin-bottom: 26px; flex: 1; }
.plan .btn { width: 100%; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Privacy band */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust div { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.trust h3 { font-size: 19px; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta p { color: var(--muted); margin: 0 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { flex-basis: 100%; font-size: 13px; margin-top: 8px; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; letter-spacing: 0; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary-box { border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--radius); padding: 20px 24px; }
.summary-box h2 { margin-top: 0; font-size: 20px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.notfound h1 { font-size: 64px; color: var(--accent); }

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