/* Runline landing. System fonts only: the page loads nothing from third parties. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --line: rgba(20, 20, 40, 0.09);
  --line-strong: rgba(20, 20, 40, 0.16);
  --text: #16171d;
  --muted: #5d606c;
  --faint: #8b8e99;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --ok: #1fa855;
  --ok-soft: rgba(52, 199, 89, 0.14);
  --warn: #c76a00;
  --warn-soft: rgba(255, 149, 0, 0.15);
  --dot: rgba(20, 20, 40, 0.14);
  --bezel-ring: transparent;
  --shadow: 0 1px 2px rgba(15, 15, 30, 0.05), 0 8px 24px rgba(15, 15, 30, 0.07);
  --shadow-lg: 0 2px 6px rgba(15, 15, 30, 0.06), 0 30px 60px rgba(15, 15, 30, 0.12);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;

  /* Step colours, as in the app. */
  --c-ask: #0a84ff;
  --c-extract: #c544d8;
  --c-classify: #ff9500;
  --c-decide: #00c2a8;
  --c-agent: #5e5ce6;
  --c-image: #a2845e;
  --c-web: #6a4ff0;
  --c-api: #18b4e6;
  --c-tool: #4078d9;
  --c-telegram: #29a1e8;
  --c-text: #20c1cf;
  --c-switch: #ff2d55;
  --c-together: #34c759;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f13;
    --surface: #17181d;
    --surface-2: #1f2027;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);
    --text: #f2f2f5;
    --muted: #a8abb6;
    --faint: #7b7e8a;
    --accent: #8b85ff;
    --accent-soft: rgba(139, 133, 255, 0.14);
    --ok: #4cd97b;
    --ok-soft: rgba(76, 217, 123, 0.14);
    --warn: #ffb340;
    --warn-soft: rgba(255, 179, 64, 0.14);
    --dot: rgba(255, 255, 255, 0.1);
    --bezel-ring: rgba(255, 255, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #0e0f13;
  --surface: #17181d;
  --surface-2: #1f2027;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f2f2f5;
  --muted: #a8abb6;
  --faint: #7b7e8a;
  --accent: #8b85ff;
  --accent-soft: rgba(139, 133, 255, 0.14);
  --ok: #4cd97b;
  --ok-soft: rgba(76, 217, 123, 0.14);
  --warn: #ffb340;
  --warn-soft: rgba(255, 179, 64, 0.14);
  --dot: rgba(255, 255, 255, 0.1);
  --bezel-ring: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sprite { position: absolute; }

/* Icons drawn from the sprite: stroke icons sized by their box. */
svg use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.tile {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  flex: none;
  background: var(--tile, #8e8e93);
}
.tile svg { width: 64%; height: 64%; }
.tile.gray { background: #8e8e93; }
.c-ask { --tile: var(--c-ask); }
.c-extract { --tile: var(--c-extract); }
.c-classify { --tile: var(--c-classify); }
.c-decide { --tile: var(--c-decide); }
.c-agent { --tile: var(--c-agent); }
.c-image { --tile: var(--c-image); }
.c-web { --tile: var(--c-web); }
.c-api { --tile: var(--c-api); }
.c-tool { --tile: var(--c-tool); }
.c-telegram { --tile: var(--c-telegram); }
.c-text { --tile: var(--c-text); }
.c-switch { --tile: var(--c-switch); }
.c-together { --tile: var(--c-together); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--muted); font-size: 15px; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.lang {
  font: 600 13px/1 inherit;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
}
.lang:hover { border-color: var(--accent); }
@media (max-width: 760px) { .nav-link { display: none; } }

main > section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px) !important;
  padding-bottom: clamp(56px, 8vw, 104px) !important;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 750; }
.lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
}
a.soon:hover { text-decoration: none; opacity: 0.88; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.25); }
.text-link { font-weight: 600; font-size: 16px; }

/* The hero visual: a shortcut whose middle action opens into a Runline flow. */
.stage {
  margin: 0;
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 28px;
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.shortcut { display: grid; gap: 10px; }
.shortcut-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  box-shadow: var(--shadow);
}
.action.run { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.run-icon { border-radius: 7px; }
.action b { font-weight: 650; }

.flow {
  display: grid;
  justify-items: center;
  margin: 2px 18px;
  padding: 16px 12px;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-right: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 0 0 14px 14px;
}
.node {
  width: min(100%, 300px);
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.node-kind { display: block; font-size: 11px; color: var(--faint); padding: 5px 10px 4px; }
.node-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 4px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--surface);
}
.node-body b { display: block; font-size: 14px; font-weight: 650; line-height: 1.25; }
.node-body small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.wire { position: relative; width: 2px; height: 18px; background: var(--line-strong); }
.wire i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); opacity: 0; }
.result {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 600;
  font-size: 14.5px;
}

/* A run passing through: each step turns green in turn. */
@media (prefers-reduced-motion: no-preference) {
  .node { animation: pass 7s infinite; }
  .n2 { animation-delay: 1s; }
  .n3 { animation-delay: 2s; }
  .n4 { animation-delay: 3s; }
  .wire i { animation: travel 7s infinite; }
  .wire:nth-of-type(2) i { animation-delay: 0.5s; }
  .wire:nth-of-type(4) i { animation-delay: 1.5s; }
  .wire:nth-of-type(6) i { animation-delay: 2.5s; }
  .result { animation: appear 7s infinite; }
}
@keyframes pass {
  0%, 4% { border-color: var(--line-strong); box-shadow: none; }
  9%, 70% { border-color: color-mix(in srgb, var(--ok) 70%, transparent); box-shadow: 0 0 0 3px var(--ok-soft); }
  80%, 100% { border-color: var(--line-strong); box-shadow: none; }
}
@keyframes travel {
  0% { top: -4px; opacity: 0; }
  2% { opacity: 1; }
  12% { top: 14px; opacity: 1; }
  14%, 100% { top: 14px; opacity: 0; }
}
@keyframes appear {
  0%, 52% { opacity: 0.25; transform: translateY(2px); }
  58%, 85% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .node { border-color: color-mix(in srgb, var(--ok) 70%, transparent); }
}

/* Sections */
.kicker { font-size: 14px; font-weight: 650; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 720; }
.section-lede { margin-top: 18px; max-width: 40em; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }

.how, .privacy, .ideas, .specs, .closing { padding-top: clamp(64px, 9vw, 120px) !important; }
/* The motion video: one file per language, only the visible one loads. */
.motion { margin: 40px 0 0; }
.motion video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 2vw, 24px);
  background: #0a0b10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.motion video[hidden] { display: none; }
.three { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.three li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.three li:nth-child(2) .num { background: var(--c-classify); }
.three li:nth-child(3) .num { background: var(--c-decide); }
.three h3 { font-size: 21px; margin-bottom: 8px; }
.three p { color: var(--muted); font-size: 16px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(72px, 10vw, 136px) !important;
}
.feature.reverse .feature-text { order: 2; }
.feature-text > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.feature.wide { grid-template-columns: 1fr; gap: 40px; }
.feature.wide .feature-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 88px); align-items: end; }
.feature.wide .feature-text > p { grid-column: 1; }
.feature.wide .feature-text > .kicker { margin-bottom: 12px; }
.feature.wide .checks { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
.feature.duo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fa855' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Screenshots already composed into Apple's product bezels (Scripts/frame-shot.swift).
   Apple's guidelines forbid adding shadows, reflections, tilts or crops to them,
   so these images get no border, shadow or radius here. */
.device { margin: 0; }
.device.phone { justify-self: center; width: min(100%, 350px); }
/* Bare screen captures, without a device: same width as the phone's screen above. */
.device.video { width: min(100%, 314px); }
.device.strip { margin-top: 32px; }
.device.strip img { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pair .device.phone { width: 100%; }

/* Steps */
.step-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 28px; }
.step-groups h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin: 18px 0 10px; }
.step-groups > div > h3:first-child { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; }
.steps li b { font-size: 15px; font-weight: 650; line-height: 1.2; }
.steps li span:not(.tile) { grid-column: 2; font-size: 14px; color: var(--muted); line-height: 1.3; }
.steps .tile { grid-row: span 2; }

/* Models */
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 15px; font-weight: 550; }
.note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 15px; }
.note .ico { color: var(--c-decide); }

/* Plugin card */
.plugin-card { margin: 0; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.plugin-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plugin-head .tile { width: 40px; height: 40px; border-radius: 11px; }
.plugin-head > span:nth-child(2) { flex: 1; min-width: 0; }
.plugin-head b { display: block; font-size: 17px; }
.plugin-head small { display: block; color: var(--muted); font-size: 14px; }
.badge { flex: none; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.plugin-tools { list-style: none; padding: 0; margin: 0; }
.plugin-tools li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.plugin-tools code { font-size: 14px; font-weight: 600; }
.plugin-tools li > span:not(.badge) { grid-column: 1; color: var(--muted); font-size: 14px; }
.plugin-tools .badge { grid-column: 2; grid-row: 1 / span 2; }
.plugin-ask { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--text); font-size: 14.5px; }
.plugin-ask .ico { color: var(--warn); margin-top: 2px; }

/* Shortcuts video */
.howto { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: howto; }
.howto li { counter-increment: howto; display: grid; grid-template-columns: 32px 1fr; gap: 2px 14px; align-items: baseline; }
.howto li::before {
  content: counter(howto);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  align-self: start;
}
.howto li:nth-child(2)::before { background: var(--c-classify); }
.howto li:nth-child(3)::before { background: var(--c-decide); }
.howto b { font-size: 17px; }
.howto span { color: var(--muted); font-size: 16px; }
.device.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1566;
  border-radius: 36px;
  border: 1px solid var(--line-strong);
  background: #f2f2f7;
  box-shadow: var(--shadow-lg);
}

/* Open source */
.oss {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 120px) !important;
}
.oss-text > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  font-size: 16px;
}
.button:hover { text-decoration: none; opacity: 0.88; }
.oss-banner { display: block; margin-top: 22px; max-width: 460px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.oss-banner img { width: 100%; }
.oss-banner:hover { text-decoration: none; }
.code-card {
  margin: 0;
  border-radius: 20px;
  background: #15161b;
  color: #e9e9ef;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bezel-ring);
  overflow: hidden;
}
.code-card figcaption {
  margin: 0;
  padding: 12px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #9da0ab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.code-card .k { color: #ff7ab2; }
.code-card .t { color: #6bdfff; }
.code-card .s { color: #ffa175; }

/* Privacy */
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillars li { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pillars .tile { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 8px; }
.pillars strong { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.pillars li > span:last-child { color: var(--muted); font-size: 15px; }

/* Ideas */
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.recipe { display: grid; align-content: start; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.recipe h3 { font-size: 19px; }
.trigger { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; }
.mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.mini li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; padding: 7px 0; position: relative; }
.mini li + li::before { content: ""; position: absolute; left: 13px; top: -6px; width: 2px; height: 10px; background: var(--line-strong); }
.mini .tile { width: 28px; height: 28px; border-radius: 7px; }
.outcome { font-size: 14.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 8px 12px; border-radius: 10px; }

/* Specs */
.specs dl { margin: 28px 0 0; border-top: 1px solid var(--line); }
.specs dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 650; }
.specs dd { margin: 0; color: var(--muted); }

/* Closing */
.closing { text-align: center; padding-bottom: clamp(72px, 10vw, 128px) !important; display: grid; justify-items: center; gap: 16px; }
.closing img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.closing p { color: var(--muted); font-size: 18px; max-width: 30em; }

/* Footer */
.bottom { border-top: 1px solid var(--line); padding: 28px var(--gutter) 40px; text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.bottom .fine { font-size: 12.5px; color: var(--faint); max-width: 60em; margin: 0 auto; }

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal .updated { color: var(--faint); font-size: 14px; }
.legal table { border-collapse: collapse; margin-top: 8px; }
.legal th, .legal td { text-align: left; padding: 6px 18px 6px 0; vertical-align: top; }
.legal th { font-weight: 600; color: var(--text); }

/* Smaller screens */
@media (max-width: 960px) {
  .hero, .feature, .feature.duo { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
  .feature.wide .feature-text { grid-template-columns: 1fr; }
  .feature.wide .checks { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .oss { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .three, .pillars, .recipes, .step-groups { grid-template-columns: 1fr; }
  .pair { gap: 12px; }
  .device.video video { border-radius: 26px; }
  .code-card pre { font-size: 12px; padding: 14px; }
  .device.strip img { border-radius: 12px; }
  .specs dl > div { grid-template-columns: 1fr; gap: 4px; }
  .flow { margin: 2px 6px; padding: 12px 8px; }
}

/* Blog: one page per guide, both languages on the page like legal.html.
   Devices are Apple's bezels already composed into the images and videos, so,
   as on the landing, no shadow, radius or crop touches them. */
.nav-link.keep { display: inline; }
.blog-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.blog-hero > * { max-width: 760px; }
.blog-hero h1 { font-size: clamp(44px, 6.4vw, 72px); }

/* A soft, tinted stage behind a device: the device itself stays untouched. */
.stage {
  --tint: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%),
    color-mix(in srgb, var(--tint) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tint) 18%, var(--line));
}
.stage.ask { --tint: var(--c-ask); }
.stage.decide { --tint: var(--c-decide); }
.stage.classify { --tint: var(--c-classify); }
.stage.extract { --tint: var(--c-extract); }

.guide-grid { list-style: none; padding: 0; margin: 0 0 clamp(64px, 9vw, 112px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.guide-card { display: grid; gap: 22px; color: inherit; }
.guide-card:hover { text-decoration: none; }
.guide-card .stage { display: flex; justify-content: center; align-items: center; padding: 28px 24px; height: clamp(340px, 34vw, 440px); }
/* The whole phone always fits the stage's height: never cropped. */
.guide-card .stage img { height: 100%; width: auto; max-width: none; transition: transform 0.35s ease; }
.guide-card:hover .stage img { transform: translateY(-6px); }
.guide-card .post-meta { display: block; margin-bottom: 8px; }
.guide-card h2 { font-size: clamp(24px, 2.4vw, 30px); }
.guide-card p { color: var(--muted); margin-top: 8px; }
.read-more { display: inline-block; margin-top: 12px; font-weight: 650; color: var(--accent); }

/* Article */
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.article-hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
.article-hero .stage { padding: clamp(28px, 4vw, 48px) 24px; }
.article-hero .device { width: min(100%, 290px); }
.article-hero .device img, .article-hero .device video { display: block; width: 100%; height: auto; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.post-meta { color: var(--faint); font-size: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 22px; color: var(--faint); font-size: 14px; }
.meta-row .button { margin-top: 0; }

.article-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 72px);
}
.article-aside { position: sticky; top: 88px; align-self: start; display: grid; gap: 24px; }
.aside-box { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.aside-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 12px; }
.aside-box ol, .aside-box ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.aside-box a { color: var(--muted); }
.aside-box a:hover { color: var(--text); }

.article-content { font-size: 18px; }
.article-content > p, .article-content li { color: var(--muted); }
.article-content p + p { margin-top: 14px; }
.article-content b, .article-content strong { color: var(--text); }
.article-content ol, .article-content ul { padding-left: 22px; margin: 14px 0 0; display: grid; gap: 10px; }
.article-content .step + .step { margin-top: clamp(48px, 6vw, 72px); }
.step > :not(.step-head) + p { margin-top: 18px; }
.action-card + .action-card { margin-top: 12px; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step-head h2 { font-size: clamp(26px, 3vw, 34px); }
.step-num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-ask); color: #fff; font-weight: 700; font-size: 16px;
}
.step:nth-of-type(2) .step-num { background: var(--c-classify); }
.step:nth-of-type(3) .step-num { background: var(--c-decide); }
.step:nth-of-type(4) .step-num { background: var(--c-extract); }
.step-head.plain .step-num { display: none; }
.article-content .stage { margin-top: 28px; padding: 32px 24px; }
.article-content .stage .device { width: min(100%, 300px); }
.article-content .stage .device img { display: block; width: 100%; height: auto; }
.tip { display: flex; gap: 12px; margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: 16px; }
.tip .ico { flex: none; color: var(--accent); margin-top: 3px; }

/* An illustration of Runline's own Shortcuts action, not a screenshot. */
.action-card { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; }
.action-card header { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.action-card header img { border-radius: 6px; }
.action-card p { color: var(--text) !important; font-size: 17px; line-height: 1.5; }
.action-card p.run { line-height: 2; }
.token { display: inline-block; padding: 1px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 600; line-height: 1.6; }
.token.var { background: color-mix(in srgb, var(--c-decide) 16%, transparent); color: color-mix(in srgb, var(--c-decide) 70%, var(--text)); }
.settings-card { margin-top: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.settings-card div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; font-size: 16px; }
.settings-card div + div { border-top: 1px solid var(--line); }
.settings-card span:last-child { color: var(--muted); }
.switch-on { width: 44px; height: 26px; border-radius: 13px; background: #34c759; position: relative; flex: none; }
.switch-on::after { content: ""; position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }

.next-guide { margin-top: clamp(56px, 7vw, 88px); }
.next-guide .guide-card { grid-template-columns: 180px 1fr; align-items: center; }
.next-guide .guide-card .stage { height: 260px; padding: 20px; }

@media (max-width: 960px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-aside .toc { display: none; }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .article-content { font-size: 17px; }
  .next-guide .guide-card { grid-template-columns: 1fr; }
}
