/* FlowIDE landing page. Orimovo glass, kept quiet: graphite and paper,
   a muted slate accent, and coral only for the main action. */

@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(fonts/NunitoSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(fonts/NunitoSans-Bold.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 900; font-display: swap; src: url(fonts/NunitoSans-Black.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: light-dark(#F4F5F7, #0E1014);
  --bg-2: light-dark(#ECEEF1, #14171C);
  --ink: light-dark(#1E2227, #E7E9EC);
  --ink-2: light-dark(#3D434B, #BFC4CB);
  --mute: light-dark(#5B626C, #8C929B);
  --accent: light-dark(#4F6E9A, #8FA9CF);
  --accent-soft: light-dark(rgba(79,110,154,.12), rgba(143,169,207,.14));
  --coral: #E0907E;
  --on-coral: #2A120D;
  --glass: linear-gradient(160deg, light-dark(rgba(255,255,255,.85), rgba(191,213,242,.09)), light-dark(rgba(229,237,247,.57), rgba(255,255,255,.02)));
  --glass-fill: light-dark(rgba(255,255,255,.5), rgba(20,23,28,.55));
  --edge: light-dark(rgba(30,34,39,.09), rgba(255,255,255,.085));
  --edge-hi: light-dark(rgba(255,255,255,.9), rgba(255,255,255,.14));
  --shadow: 0 30px 75px -32px light-dark(rgba(30,40,60,.35), rgba(0,0,0,.7)), 0 9px 27px -15px light-dark(rgba(30,40,60,.2), rgba(0,0,0,.5));
  --glow-a: light-dark(rgba(99,141,199,.14), rgba(113,156,214,.16));
  --glow-b: light-dark(rgba(137,164,200,.10), rgba(125,151,187,.08));
  --radius: 18px;
  --st-line: light-dark(rgba(30,34,39,.13), rgba(191,213,242,.15));
  --st-line-f: light-dark(rgba(30,34,39,.07), rgba(191,213,242,.08));
  --st-pane: light-dark(rgba(255,255,255,.35), rgba(255,255,255,.018));
  --st-pane-2: light-dark(rgba(79,110,154,.07), rgba(191,213,242,.055));
  --st-ink: light-dark(rgba(30,34,39,.42), rgba(231,233,236,.5));
  --st-faint: light-dark(rgba(30,34,39,.14), rgba(231,233,236,.17));
  --st-str: light-dark(rgba(79,110,154,.5), rgba(143,169,207,.5));
  --st-dot: light-dark(rgba(30,34,39,.06), rgba(191,213,242,.06));
  --logo-0: light-dark(#2F3A48, #C9D8EE);
  --logo-1: light-dark(#5E80B2, #7F9BC6);
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shot-day: none;
  --shot-night: block;
}
@media (prefers-color-scheme: light) {
  :root { --shot-day: block; --shot-night: none; }
}
[data-theme="light"], [data-theme="day"] {
  color-scheme: light; --shot-day: block; --shot-night: none;
}
[data-theme="dark"], [data-theme="night"] {
  color-scheme: dark; --shot-day: none; --shot-night: block;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 75% 760px at 50% 0, var(--glow-a), transparent 70%),
    radial-gradient(40% 30% at 90% 35%, var(--glow-b), transparent 70%),
    radial-gradient(40% 30% at 5% 70%, var(--glow-a), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .pill:focus-visible, .dl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
img { max-width: 100%; height: auto; display: block; }
code { font: .88em var(--mono); background: var(--accent-soft); padding: .1em .4em; border-radius: 6px; color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.glass {
  background: var(--glass), var(--glass-fill);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

/* Nav */
.top { position: sticky; top: 0; z-index: 5; padding: 14px 0 0; }
.nav {
  width: min(1180px, 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 14px; border-radius: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.035em; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-cta { padding: 9px 18px !important; font-size: 15px !important; border-radius: 9px !important; white-space: nowrap; }

/* Language menu */
.lang { position: relative; margin-left: -12px; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  padding: 8px 10px; border-radius: 8px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--accent-soft); }
.lang summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang summary svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; z-index: 6;
  display: grid; padding: 6px; border-radius: 12px;
  /* Backdrop blur doesn't apply inside the blurred nav, so the menu is near solid. */
  background: var(--glass), light-dark(rgba(244,245,247,.96), rgba(20,23,28,.96));
}
.lang-menu a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.lang-menu a:hover { color: var(--ink); background: var(--accent-soft); }
.lang-menu a[aria-current] { color: var(--ink); font-weight: 700; }
.lang-menu a[aria-current]::after { content: "✓"; float: right; color: var(--accent); margin-left: 12px; }

/* Chinese, Japanese and Korean: no tight tracking, and no breaks inside words. */
:lang(ja) :is(h1, h2, h3, .brand), :lang(ko) :is(h1, h2, h3, .brand), :lang(zh-Hans) :is(h1, h2, h3, .brand) { letter-spacing: 0; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
:lang(ko) { word-break: keep-all; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-go { background: var(--coral); color: var(--on-coral); box-shadow: 0 10px 30px -12px rgba(224, 144, 126, .6), inset 0 1px 0 rgba(255,255,255,.35); }
.pill-go:hover { background: #E89D8C; }
.pill-ghost { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--edge); }
.pill-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } .pill:hover { transform: none; } }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3 { font-weight: 900; letter-spacing: -.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.4vw, 84px); }
h1 .em { color: var(--accent); }
.lede { color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); max-width: 640px; margin: 22px auto 0; text-wrap: pretty; }
.small { color: var(--mute); font-size: 14px; }
.center { text-align: center; }

/* Hero */
.hero { text-align: center; padding: clamp(32px, 5vw, 62px) 0 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero .small { margin: 16px 0 0; }

/* Three reasons */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(56px, 9vw, 96px); }
.card { border-radius: var(--radius); padding: 26px 26px 24px; }
.card h2, .card h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }

/* Sections */
.features, .screens, .download { padding-top: clamp(80px, 12vw, 140px); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(64px, 9vw, 110px); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 4px; top: calc(.42em + 4px);
  width: 7px; height: 4px; border: solid var(--accent); border-width: 0 0 1.6px 1.6px;
  transform: rotate(-45deg);
}

.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Every screen */
.devices { position: relative; display: grid; grid-template-columns: 1fr; padding-right: clamp(60px, 14vw, 170px); }
.device { margin: 0; }
.device figcaption { margin-top: 12px; color: var(--mute); font-size: 14px; font-weight: 700; }
.device.phone { position: absolute; right: 0; bottom: 0; width: clamp(150px, 23%, 270px); }
.device.phone figcaption { text-align: center; }

/* Download */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dl {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 22px 20px 20px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, border-color .15s ease;
}
.dl:hover { transform: translateY(-2px); border-color: var(--accent); }
.dl svg { width: 30px; height: 30px; fill: var(--ink-2); margin-bottom: 12px; }
.dl-web svg { fill: none; color: var(--ink-2); }
.dl strong { font-size: 18px; font-weight: 900; }
.dl span { font-size: 13.5px; color: var(--mute); }
.dl-yours { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), inset 0 1px 0 var(--edge-hi), var(--shadow); }
.dl-yours::after { content: "Your system"; position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.download .small { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } .dl:hover { transform: none; } }

/* Closer */
.closer { padding-top: clamp(80px, 12vw, 140px); }
.closer-card { border-radius: 28px; padding: clamp(40px, 7vw, 72px) 24px; text-align: center; }
.closer-card .logo { display: block; margin: 0 auto 22px; }
.closer-card h2 { font-size: clamp(28px, 4.4vw, 44px); }
.closer-card .actions { margin-top: 28px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 56px 0 44px; margin-top: 72px; border-top: 1px solid var(--edge); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .small { margin: 0 0 0 auto; }

/* Smaller screens */
@media (max-width: 1120px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .also { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .nav { gap: 12px; }
  .trio { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dl-web { grid-column: 1 / -1; }
  .devices { padding-right: 0; }
  .device.phone { position: relative; width: min(270px, 84%); margin: 24px auto 0; }
  .foot .small { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
  .pill { padding: 12px 20px; }
  .actions .pill { width: 100%; justify-content: center; }
}

/* Install page */
.page-hero { padding-bottom: 0; }
.install-sec { padding-top: clamp(64px, 9vw, 104px); }
.install-sec > h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 18px; }
.install-sec .lede.left { margin: 0 0 32px; max-width: 760px; }
.sub { font-size: 22px; letter-spacing: -.01em; margin: 48px 0 18px; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.steps .card p, .numbered .card p { margin-bottom: 14px; }
.cmd {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 4px;
  padding: 10px 10px 10px 16px; border-radius: 12px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--edge);
}
.cmd code { flex: 1; background: none; padding: 0; font-size: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.copy-btn {
  flex: none; font: 700 13px var(--sans); color: var(--ink); cursor: pointer;
  background: var(--accent-soft); border: 0; border-radius: 999px; padding: 7px 14px;
  box-shadow: inset 0 0 0 1px var(--edge);
}
.copy-btn:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.label { font-weight: 700; font-size: 14px; color: var(--mute) !important; margin: 16px 0 4px !important; }
.grid-install { grid-template-columns: repeat(3, 1fr); }
.grid-install .dl { padding-top: 20px; }
.install-sec > .small { margin-top: 18px; }
.numbered { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.numbered > li { counter-increment: step; position: relative; padding-left: 74px; }
.numbered > li::before {
  content: counter(step); position: absolute; left: 24px; top: 24px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--edge);
}
.numbered .card p:last-child { margin-bottom: 0; }
.table-wrap { border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
td { color: var(--ink-2); }
@media (max-width: 980px) { .grid-install { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .grid-install { grid-template-columns: 1fr; }
  .numbered > li { padding-left: 24px; padding-top: 70px; }
}
.cmd-center { max-width: 560px; margin: 28px auto 0; }
.also-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .also-4 { grid-template-columns: 1fr; } }
.steps > *, .numbered > *, .cmd { min-width: 0; }
@media (max-width: 760px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 12px 16px; border-bottom: 1px solid var(--edge); }
  tr:last-child { border-bottom: 0; }
  td { padding: 0; border: 0; }
  td:first-child { white-space: normal; margin-bottom: 4px; }
}


/* Brand mark: chevron, flowing line and a cursor dot. Drawn inline so it
   can follow the theme and move a little when the page opens. */
.logo { flex: none; overflow: visible; }
.logo-s0 { stop-color: var(--logo-0); }
.logo-s1 { stop-color: var(--logo-1); }
.logo-c, .logo-w { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-c { stroke-width: 4.6; }
.logo-w { stroke: var(--accent); stroke-width: 3.6; stroke-dasharray: 24; }
.logo-d { fill: var(--coral); }

/* Stencil illustrations (drawn by tools/site_art.py, rules in
   docs/design/illustrations.md): hairlines and soft bars on frosted glass. */
.art { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(var(--st-dot) 1px, transparent 1.4px) 0 0 / 16px 16px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%);
}
.stencil { position: relative; display: block; width: 100%; height: auto; font-family: var(--sans); overflow: visible; }
.stencil * { vector-effect: non-scaling-stroke; }
.stencil .bar { vector-effect: none; }
.stencil .ln, .stencil .ln-f, .stencil .ic, .stencil .ic-a, .stencil .ok, .stencil .join, .stencil .join-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stencil .ln { stroke: var(--st-line); stroke-width: 1; }
.stencil .ln-f { stroke: var(--st-line-f); stroke-width: 1; }
.stencil .pane { fill: var(--st-solid); stroke: var(--st-line); stroke-width: 1; }
.stencil .pane-2 { fill: var(--st-solid-2); stroke: var(--st-line); stroke-width: 1; }
.stencil .node { fill: var(--st-solid-2); stroke: var(--st-line); stroke-width: 1; }
.stencil .sel { fill: var(--accent-soft); }
.stencil .field { fill: var(--st-pane); stroke: var(--st-line); stroke-width: 1; }
.stencil .ic { stroke: var(--st-ink); stroke-width: 1.3; }
.stencil .ic-a, .stencil .ok { stroke: var(--accent); stroke-width: 1.5; }
.stencil .ok { stroke-width: 1.8; }
.stencil .big { stroke-width: 1.8; }
.stencil .active { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.stencil .dots { stroke: var(--st-ink); stroke-width: 3; stroke-linecap: round; vector-effect: none; }
.stencil .bar { fill: none; stroke-width: 5; stroke-linecap: round; }
.stencil .b-k { stroke: var(--accent); }
.stencil .b-i { stroke: var(--st-ink); }
.stencil .b-s { stroke: var(--st-str); }
.stencil .b-c { stroke: var(--st-faint); }
.stencil .caret { stroke: var(--accent); stroke-width: 1.8; }
.stencil .run { fill: var(--coral); }
.stencil .run-i { fill: var(--on-coral); }
.stencil .btn { fill: var(--accent); }
.stencil text { fill: var(--ink-2); font-size: 12.5px; }
.stencil .t-s { fill: var(--ink); font-weight: 700; }
.stencil .t-m { fill: var(--mute); }
.stencil .t-h { fill: var(--mute); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.stencil .t-k { fill: var(--mute); font: 10.5px var(--mono); }
.stencil .run-t { fill: var(--on-coral); font-weight: 700; font-size: 12.5px; }
.stencil .num { fill: var(--st-faint); font: 10px var(--mono); }
.stencil .mono, .stencil .mono-s, .stencil .mono-a { font-family: var(--mono); font-size: 12px; }
.stencil .mono { fill: var(--ink-2); opacity: .8; }
.stencil .mono-s { fill: var(--ink); }
.stencil .mono-a { fill: var(--accent); }
.stencil .mk-c, .stencil .mk-w { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stencil .mk-c { stroke: var(--logo-1); stroke-width: 2.6; }
.stencil .mk-w { stroke: var(--accent); stroke-width: 2; }
.stencil .mk-d { fill: var(--accent); }

/* Anchor the pin to the full image. The mobile window can crop the image
   without moving the pin away from its control. */
.feature-figure {
  --gutter: 116px;
  --entry-y: var(--pin-y);
  position: relative; width: 100%; max-width: 700px; min-width: 0;
  justify-self: center; margin: 0;
}
.figure-clone { --pin-x: 9.4%; --pin-y: 32%; --readable-width: 112%; }
.figure-kscript { --pin-x: 93.6%; --pin-y: 45.2%; --readable-width: 560px; }
.figure-terminal { --gutter: 40px; --pin-x: 23.5%; --pin-y: 91%; --readable-width: 520px; }
.figure-palette { --pin-x: 5.8%; --pin-y: 23.7%; --readable-width: 550px; }
.figure-extensions { --pin-x: 42.8%; --pin-y: 52.8%; --entry-y: 50%; --readable-width: 555px; }
.feature-shot {
  position: relative; margin-left: var(--gutter);
  border-radius: 16px; box-shadow: var(--shadow);
}
.figure-kscript .feature-shot { margin: 0 var(--gutter) 0 24px; }
.shot-window {
  overflow: hidden; border: 1px solid var(--edge); border-radius: inherit;
  background: var(--bg-2);
}
.shot-plane { position: relative; }
.shot-plane img { width: 100%; height: auto; }
.shot-night { display: var(--shot-night); }
.shot-day { display: var(--shot-day); }
.shot-pin {
  position: absolute; left: var(--pin-x); top: var(--pin-y);
  transform: translate(-50%, -50%); width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--accent); background: var(--accent-soft);
}
.shot-pin::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.shot-leader {
  position: absolute; top: var(--entry-y); left: 0; width: var(--pin-x);
  height: calc(var(--pin-y) - var(--entry-y)); border: dashed var(--accent);
  border-width: 1px 1px 0 0; opacity: .85;
}
/* The context menu's label sits on the right, the terminal's below. */
.figure-kscript .shot-leader { left: var(--pin-x); width: calc(100% - var(--pin-x)); height: 0; border-width: 1px 0 0; }
.figure-terminal .shot-leader { top: var(--pin-y); left: var(--pin-x); width: 0; height: calc(100% - var(--pin-y)); border-width: 0 0 0 1px; }
.shot-label {
  position: absolute; right: calc(100% + 8px); top: var(--entry-y);
  transform: translateY(-50%); padding: 6px 9px; border-radius: 9px;
  white-space: nowrap; font-size: 12px; font-weight: 700; line-height: 1.3;
}
.shot-label b { color: var(--accent); }
.shot-label::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: 9px;
  border-top: 1px dashed var(--accent); opacity: .85;
}
.figure-kscript .shot-label { right: auto; left: calc(100% + 8px); }
.figure-kscript .shot-label::after { left: auto; right: 100%; }
.figure-terminal .shot-label { right: auto; left: var(--pin-x); top: calc(100% + 12px); transform: translateX(-50%); }
.figure-terminal .shot-label::after { left: 50%; top: auto; bottom: 100%; width: 0; height: 13px; border-top: 0; border-left: 1px dashed var(--accent); }
.feature-note {
  position: relative; width: max(224px, calc((100% - var(--gutter)) * .47));
  margin: -42px 0 0 calc(var(--gutter) - 36px); padding: 14px 16px;
  border-radius: 17px;
}
.figure-kscript .feature-note { margin-left: 0; }
.figure-terminal .feature-note { margin-left: auto; margin-right: -8px; }
.feature-note .stencil { max-width: 265px; }
.feature-note p { margin-top: 10px; font-size: 14px; line-height: 1.42; }
.feature-note strong { color: var(--ink); }
.feature-note code { font-weight: 700; }
.st-also { width: min(216px, 100%); margin-bottom: 16px; }
.st-also .sample-day { color-scheme: light; }
.st-also .sample-night { color-scheme: dark; }
.st-also :is(.sample-day, .sample-night) .pane-2 { fill: var(--bg-2); }

@media (max-width: 860px) {
  .feature-figure { --gutter: 30px; }
  .shot-label, .shot-leader { display: none; }
  .feature-note { margin-left: 0; }
}
@media (max-width: 600px) {
  .feature-figure { --gutter: 0px; }
  .figure-kscript .feature-shot { margin: 0; }
  .shot-plane { width: max(100%, var(--readable-width)); }
  .figure-kscript .shot-window { display: flex; justify-content: flex-end; }
  .figure-kscript .shot-plane { flex: none; }
  /* Trim the backdrop on both sides so the whole dialog shows. */
  .figure-clone .shot-plane { margin-left: -6%; }
  .figure-terminal .feature-shot { margin-bottom: 16px; }
  .feature-figure .feature-note { width: auto; margin: -28px 14px 0; }
}

/* The hero is the app itself. The flow diagram sits in its own band below. */
.flow-band { margin-top: clamp(72px, 10vw, 120px); }
.flow { width: min(1180px, 100%); margin: 0 auto clamp(18px, 3vw, 30px); }
.st-flow .folder-face { fill: var(--bg-2); stroke: var(--accent); stroke-width: 1.2; }
.st-flow .join { stroke: var(--st-line); stroke-width: 1.4; }
.st-flow .join-flow { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 9; opacity: .8; }
.stencil .join-end { fill: var(--accent); }
.st-flow .t-step { fill: var(--ink); font-weight: 700; font-size: 15px; }
.art-hero { margin-top: clamp(44px, 7vw, 72px); border-radius: 16px; }
.art-narrow, .art-medium, .art-medium .st-tablet-sm, .device .st-tablet-sm { display: none; }
.devices .art { border-radius: var(--radius); }
.device.phone .art-phone { border-radius: 34px; box-shadow: 0 0 0 5px var(--bg-2), 0 0 0 6px var(--edge), var(--shadow); }
@media (max-width: 600px) {
  .art-hero { width: min(320px, 86%); margin-inline: auto; border-radius: 34px; box-shadow: 0 0 0 5px var(--bg-2), 0 0 0 6px var(--edge), var(--shadow); }
  .art-hero .art-wide { display: none; }
  .art-hero .art-narrow { display: block; }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .art-hero { max-width: 820px; margin-inline: auto; }
  .art-hero .art-wide { display: none; }
  .art-hero .art-medium { display: block; }
}
@media (min-width: 601px) and (max-width: 790px) {
  .art-hero { max-width: 520px; }
  .art-medium .st-tablet { display: none; }
  .art-medium .st-tablet-sm { display: block; }
}
@media (max-width: 1000px) {
  .devices .st-tablet { display: none; }
  .devices .st-tablet-sm { display: block; }
}
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 75%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes flow-dash { to { stroke-dashoffset: -48; } }
@keyframes caret-blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes logo-draw { from { stroke-dashoffset: 24; } }
@keyframes logo-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes section-arrive { from { opacity: .72; transform: translateY(8px); } }

@media (prefers-reduced-motion: no-preference) {
  .shot-pin { animation: pin-pulse 2.4s ease-out infinite; }
  .st-flow .join-flow { animation: flow-dash 2.4s linear infinite; }
  .stencil .caret { animation: caret-blink 1.1s steps(1) infinite; }
  .logo-w { animation: logo-draw 900ms cubic-bezier(.3, .7, .2, 1) 150ms backwards; }
  .logo-d { animation: logo-blink 1.1s steps(1) 3 1s; }
  .brand:hover .logo-w { animation: logo-draw 700ms cubic-bezier(.3, .7, .2, 1); }
  .ico svg { transition: transform 240ms ease-out; }
  @media (hover: hover) {
    .card:hover .ico svg { transform: translateY(-2px); }
  }
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 85%) {
    .feature-figure, .section-head, .install-sec > h2, .trio .ico {
      animation: section-arrive 1s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}

/* Footer: the Orimovo family mark, as on the other Orimovo product sites. */
.orimovo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 900; text-decoration: none; padding: 7px 14px 7px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--edge); background: var(--accent-soft); }
.orimovo svg { color: var(--accent); }
.orimovo:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.st-flow-sm { display: none; }
@media (max-width: 600px) {
  .flow-install .st-flow { display: none; }
}
@media (max-width: 860px) {
  .flow-steps .st-flow { display: none; }
  .flow-steps .st-flow-sm { display: block; max-width: 420px; margin-inline: auto; }
}
.flow-install { width: min(640px, 100%); }

/* The steps diagram plays as one loop: files rise out of the folder, the
   code types in, Run is pressed and the output prints line by line. It only
   runs while on screen (the page adds .playing) and never with reduced motion. */
@keyframes fa-papers { 0% { transform: translateY(34px); opacity: 0; } 12%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: translateY(34px); opacity: 0; } }
@keyframes fa-code { 0%, 16% { clip-path: inset(0 0 100% 0); } 44%, 88% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 0 100% 0); } }
@keyframes fa-run { 0%, 48% { transform: none; } 51% { transform: scale(.88); } 55%, 100% { transform: none; } }
@keyframes fa-o1 { 0%, 56% { opacity: 0; transform: translateX(-6px); } 60%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes fa-o2 { 0%, 60% { opacity: 0; transform: translateX(-6px); } 64%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes fa-o3 { 0%, 64% { opacity: 0; transform: translateX(-6px); } 68%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes fa-o4 { 0%, 68% { opacity: 0; transform: translateX(-6px); } 72%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes fa-o5 { 0%, 73% { opacity: 0; transform: translateX(-6px); } 77%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.st-flow .fa-run { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .flow-steps.playing .fa-papers { animation: fa-papers 9s cubic-bezier(.3, .7, .2, 1) infinite; }
  .flow-steps.playing .fa-code { animation: fa-code 9s steps(6, end) infinite; }
  .flow-steps.playing .fa-run { animation: fa-run 9s ease-in-out infinite; }
  .flow-steps.playing .fa-o1 { animation: fa-o1 9s ease-out infinite; }
  .flow-steps.playing .fa-o2 { animation: fa-o2 9s ease-out infinite; }
  .flow-steps.playing .fa-o3 { animation: fa-o3 9s ease-out infinite; }
  .flow-steps.playing .fa-o4 { animation: fa-o4 9s ease-out infinite; }
  .flow-steps.playing .fa-o5 { animation: fa-o5 9s ease-out infinite; }
}

/* Drawings are opaque: every pane, card and sheet has a solid fill and a
   single outline, so nothing shows through and no line crosses content. */
.stencil { --st-solid: color-mix(in srgb, var(--bg-2) 92%, var(--ink)); --st-solid-2: color-mix(in srgb, var(--bg-2) 88%, var(--accent)); }
.stencil .solid, .stencil .sheet { fill: var(--st-solid); stroke: var(--st-line); stroke-width: 1; }
.stencil .sheet { fill: color-mix(in srgb, var(--bg-2) 86%, var(--ink)); }
.stencil .solid-back { fill: color-mix(in srgb, var(--bg-2) 60%, var(--bg)); stroke: var(--st-line); stroke-width: 1; }
.stencil .sheet-back { fill: color-mix(in srgb, var(--bg-2) 80%, var(--bg)); stroke: var(--st-line-f); stroke-width: 1; }
.st-flow .folder-face { fill: var(--st-solid); }

/* Privacy page: a short summary, then one glass card per section with its
   drawing beside the text (above it on narrow screens). */
.privacy-hero .small { margin-top: 14px; }
.privacy-hero .flow-privacy { margin: clamp(36px, 5vw, 56px) auto 0; }
.legal { display: grid; gap: 18px; max-width: 760px; padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 8vw, 96px); }
.legal .card { padding: clamp(24px, 3vw, 34px); }
.legal .card h2 { font-size: 24px; margin-bottom: 12px; }
.legal .card h3 { font-size: 16px; margin: 22px 0 6px; color: var(--ink); }
.legal .card p, .legal li, .legal dd { line-height: 1.65; }
.legal .card p + p { margin-top: 12px; }
.legal-short { max-width: 760px; width: 100%; margin-inline: auto; }
.legal-short .ticks { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.legal-sec { max-width: 760px; width: 100%; margin-inline: auto; }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 14px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--edge); }
.legal-list dt { margin: 0; }
.legal-list dd { margin: 0; color: var(--ink-2); }
.legal-dots { margin: 10px 0 14px; padding-left: 20px; color: var(--ink-2); }
.legal-dots li { padding-left: 4px; }
.legal-dots li::marker { color: var(--accent); }
.legal-cta { margin-top: 20px !important; }
.legal code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }
.legal a:not(.pill) { color: inherit; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .legal-short .ticks { grid-template-columns: 1fr; }
  .legal-list { grid-template-columns: 1fr; gap: 2px; }
  .legal-list dd { margin-bottom: 8px; }
}

/* Privacy drawings: the device diagram above the headline (a small one on
   phones) and one motif on each card. */
.flow-privacy { width: min(640px, 100%); }
@media (max-width: 600px) {
  .flow-privacy .st-flow { display: none; }
  .flow-privacy .st-flow-sm { display: block; max-width: 360px; }
  .flow-privacy .st-flow-sm .t-step { font-size: 13px; }
}
.st-privacy .node-1 { stroke: var(--accent); }
.stencil .run-ok { fill: none; stroke: var(--on-coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
