/* Shadow Code — shadowcodeapp.com. Static, no framework, no third-party fonts. */
:root {
  --bg: #ffffff; --bg-2: #f5f5f7; --ink: #1d1d1f; --muted: #6e6e73; --line: #e2e2e7;
  --accent: #0a84ff; --accent-ink: #ffffff;
  --screen-a: #3b4160; --screen-b: #171a27; --menubar: rgba(255,255,255,.10);
  --win: #fbfbfd; --win-bar: #ebebf0; --win-line: #d8d8df;
  --lbl-main: #8e8e93; --lbl-1: #e39a2a; --lbl-2: #2f8fe6; --lbl-3: #9a5ce6;
  --skel: #e4e4ea; --skel-2: #c9cdf3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f12; --bg-2: #17171b; --ink: #f2f2f5; --muted: #9c9ca4; --line: #2a2a30;
    --screen-a: #1d2030; --screen-b: #07080c; --menubar: rgba(255,255,255,.07);
    --win: #1c1c21; --win-bar: #26262c; --win-line: #34343b;
    --skel: #2e2e35; --skel-2: #3c4474;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f12; --bg-2: #17171b; --ink: #f2f2f5; --muted: #9c9ca4; --line: #2a2a30;
  --screen-a: #1d2030; --screen-b: #07080c; --menubar: rgba(255,255,255,.07);
  --win: #1c1c21; --win-bar: #26262c; --win-line: #34343b;
  --skel: #2e2e35; --skel-2: #3c4474;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 18px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 40px 0 8px; text-align: center; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -0.022em; font-weight: 700; margin: 0 auto 18px; max-width: 900px; }
.lead { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 760px; margin: 0 auto 26px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 17px;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--bg-2); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.fine { font-size: 14.5px; color: var(--muted); margin: 16px 0 0; }

/* Screen mock (hero animation) */
.screen {
  position: relative; aspect-ratio: 16 / 10; max-width: 960px; margin: 36px auto 0;
  background: linear-gradient(160deg, var(--screen-a), var(--screen-b)); border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 3.2%; background: var(--menubar); }
.win {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); opacity: var(--o, 1);
  background: var(--win); border-radius: 7px; overflow: hidden; z-index: 1;
  box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.18);
  transition: left .9s cubic-bezier(.2,.75,.2,1), top .9s cubic-bezier(.2,.75,.2,1),
              width .9s cubic-bezier(.2,.75,.2,1), height .9s cubic-bezier(.2,.75,.2,1), opacity .5s ease;
}
.win.w-b { z-index: 2; }
.bar { position: relative; height: 24px; padding: 0 36px; background: var(--win-bar); display: flex; align-items: center; justify-content: center; gap: 8px; }
.bar::before {
  content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: #fe5f57; box-shadow: 13px 0 0 #febc2e, 26px 0 0 #28c840;
}
.lbl { font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--lbl-1); white-space: nowrap; }
.w-main .lbl { background: transparent; color: var(--ink); border: 1px solid var(--lbl-main); }
.w-2 .lbl { background: var(--lbl-2); }
.w-3 .lbl { background: var(--lbl-3); }
.w-b .lbl { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.w-b .app { font-size: 11px; color: var(--muted); }
.sk { padding: 10px 12px; display: grid; gap: 7px; }
.sk i { display: block; height: 5px; border-radius: 3px; background: var(--skel); width: 90%; }
.sk i:nth-child(3n) { width: 62%; }
.sk i.r { justify-self: end; width: 55%; background: var(--skel-2); }
.cap { text-align: center; margin: 14px 0 0; font-size: 15px; color: var(--muted); min-height: 1.6em; }

/* State 0: scattered */
.screen[data-state="0"] .w-main { --l: 3%; --t: 9%; --w: 52%; --h: 72%; }
.screen[data-state="0"] .w-1 { --l: 31%; --t: 24%; --w: 48%; --h: 64%; }
.screen[data-state="0"] .w-2 { --l: 12%; --t: 42%; --w: 44%; --h: 54%; }
.screen[data-state="0"] .w-3 { --l: 50%; --t: 7%; --w: 46%; --h: 58%; }
.screen[data-state="0"] .w-b { --l: 58%; --t: 36%; --w: 40%; --h: 60%; }
/* State 1: Grid, 4 columns */
.screen[data-state="1"] .w-main { --l: 0; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="1"] .w-1 { --l: 25%; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="1"] .w-2 { --l: 50%; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="1"] .w-3 { --l: 75%; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="1"] .w-b { --l: 58%; --t: 36%; --w: 40%; --h: 60%; --o: 0; }
/* State 2: Focus, Main left */
.screen[data-state="2"] .w-main { --l: 0; --t: 3.2%; --w: 60%; --h: 96.8%; }
.screen[data-state="2"] .w-1 { --l: 60%; --t: 3.2%; --w: 40%; --h: 32.27%; }
.screen[data-state="2"] .w-2 { --l: 60%; --t: 35.47%; --w: 40%; --h: 32.27%; }
.screen[data-state="2"] .w-3 { --l: 60%; --t: 67.73%; --w: 40%; --h: 32.27%; }
.screen[data-state="2"] .w-b { --l: 58%; --t: 36%; --w: 40%; --h: 60%; --o: 0; }
/* State 3: Keep visible (browser locked on the right) */
.screen[data-state="3"] .w-b { --l: 75%; --t: 3.2%; --w: 25%; --h: 96.8%; --o: 1; }
.screen[data-state="3"] .w-main { --l: 0; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="3"] .w-1 { --l: 25%; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="3"] .w-2 { --l: 50%; --t: 3.2%; --w: 25%; --h: 96.8%; }
.screen[data-state="3"] .w-3 { --l: 50%; --t: 3.2%; --w: 25%; --h: 96.8%; --o: 0; }
/* State 4: Grid, 2 rows */
.screen[data-state="4"] .w-main { --l: 0; --t: 3.2%; --w: 50%; --h: 48.4%; }
.screen[data-state="4"] .w-1 { --l: 50%; --t: 3.2%; --w: 50%; --h: 48.4%; }
.screen[data-state="4"] .w-2 { --l: 0; --t: 51.6%; --w: 50%; --h: 48.4%; }
.screen[data-state="4"] .w-3 { --l: 50%; --t: 51.6%; --w: 50%; --h: 48.4%; }
.screen[data-state="4"] .w-b { --l: 58%; --t: 36%; --w: 40%; --h: 60%; --o: 0; }
@media (prefers-reduced-motion: reduce) { .win { transition: none; } }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; }
.section .sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--bg-2); border-radius: 14px; padding: 22px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; margin-right: 10px; vertical-align: 2px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px 28px; }
.feature h3 { margin: 0 0 6px; font-size: 17.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); display: block; }
.shots .app-shot img { max-width: 440px; margin: 0 auto; }
.shots figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; max-width: 800px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--bg-2); display: flex; flex-direction: column; }
.plan.paid { border-color: var(--accent); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .kind { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.price { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 6px 0 8px; }
.price s { color: var(--muted); font-weight: 500; font-size: 24px; margin-right: 10px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; margin-bottom: 10px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }
.plan .after { font-size: 14px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 17.5px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; color: var(--muted); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 56px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.foot nav { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink); }
.foot p { margin: 8px 0 0; }

/* Documents (download, privacy, EULA) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; }
.doc h1 { font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; margin: 16px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.6; }
.doc .summary { background: var(--bg-2); border-radius: 14px; padding: 18px 20px; }
.doc .notice { border: 1px solid var(--accent); border-radius: 16px; padding: 24px; margin: 8px 0 28px; }
.doc .notice h2 { margin-top: 0; }
.doc .plan { margin: 8px 0 28px; }
.doc code { font: 14.5px ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg-2); padding: 1px 6px; border-radius: 5px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 14px 16px; }
  .top nav a { margin-left: 14px; font-size: 14px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .screen { border-radius: 10px; margin-top: 28px; }
  .bar { height: 16px; }
  .bar::before { display: none; }
  .lbl { font-size: 8px; padding: 2px 6px; }
  .w-b .app { display: none; }
  .sk { padding: 6px 8px; gap: 4px; }
  .sk i { height: 3px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
  .price { font-size: 36px; }
  .doc h1 { font-size: 30px; }
}

/* utilities */
.center { text-align: center; }
.section .sub.mb0 { margin-bottom: 0; }
[hidden] { display: none !important; }

/* language switcher (globe) */
.top nav { display: flex; align-items: center; }
.lang { position: relative; margin-left: 18px; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; padding: 4px 6px; border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--bg-2); }
.lang ul { position: absolute; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 150px; z-index: 10; }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; margin: 0; }
.lang li a:hover { background: var(--bg-2); text-decoration: none; }
.lang li a[aria-current="true"] { font-weight: 600; }
@media (max-width: 760px) { .lang { margin-left: 10px; } .lang summary span { display: none; } }
