/* Plainpane storefront */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1a1917;
  --muted: #6b6760;
  --border: #e4e1da;
  --accent: #2f5d50;
  --accent-strong: #234a3f;
  --accent-soft: #e5eeea;
  --on-accent: #ffffff;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110; --surface: #191918; --text: #ecebe8; --muted: #a29e96; --border: #2c2b28;
    --accent: #8cc7b4; --accent-strong: #a9d8c8; --accent-soft: #1b2b26; --on-accent: #0f1a17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111110; --surface: #191918; --text: #ecebe8; --muted: #a29e96; --border: #2c2b28;
  --accent: #8cc7b4; --accent-strong: #a9d8c8; --accent-soft: #1b2b26; --on-accent: #0f1a17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Header */
.top { border-bottom: 1px solid var(--border); }
.top__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo__mark { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 5px; position: relative; }
.logo__mark::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px; background: currentColor; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.top nav a:hover { color: var(--text); }
@media (max-width: 520px) { .top nav a.opt { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 750; max-width: 16ch; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-bottom: 1.6rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { color: var(--accent); }

/* Products */
.products { display: grid; gap: 20px; padding-bottom: 32px; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product__preview { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--accent-soft); border-right: 1px solid var(--border); overflow: hidden; }
.product__preview iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.product__preview .open { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 8px; background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); }
.product__body { padding: 28px; display: flex; flex-direction: column; }
.product__kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.product h2 { font-size: 1.6rem; }
.product__desc { color: var(--muted); }
.product ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: .93rem; }
.product li { display: flex; gap: 8px; align-items: flex-start; }
.product li svg { color: var(--accent); margin-top: 3px; }
.buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; margin-right: 4px; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.product--bundle { grid-template-columns: 1fr; border: 2px solid var(--accent); }
.product--bundle .product__body { padding: 32px; }
.bundle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
.strike { color: var(--muted); text-decoration: line-through; font-size: 1rem; font-weight: 500; margin-left: 6px; }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product__preview { border-right: 0; border-bottom: 1px solid var(--border); }
  .product__body { padding: 22px; }
  .bundle-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* Info sections */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.cols h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; }
.cols h3 svg { color: var(--accent); }
.cols p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { margin: 0; }

/* Policy pages */
.doc { max-width: 720px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.doc .updated { color: var(--muted); margin-bottom: 2rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.doc li { margin-bottom: 6px; }
.doc .box { padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.fill { background: #fff3c4; color: #5c4500; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fill { background: #4a3a06; color: #ffe08a; } }
