/* ============================================================
   SOFTWARE PAGE — software.css
   The hub for the five apps. Same language as the product pages:
   dark hero with the real programs, warm light sections, real
   screenshots everywhere, one orange accent.
   ============================================================ */

/* ============================================================
   SHARED — headings, buttons, reveal
   ============================================================ */
.sw-eyebrow {
  margin-bottom: 14px;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--primary-on-light);
}
.sw-eyebrow--dark { color: var(--primary-on-dark); }

.sw-title {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-h1);
  line-height: 1.05;
  color: var(--text-primary);
}
.sw-title--dark { color: var(--text-on-dark); }

.sw-lead {
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.sw-lead--dark { color: var(--text-muted-on-dark); }

.sw-head { margin-bottom: var(--sp-6); }
.sw-head--center { text-align: center; }
.sw-head--center .sw-title { margin-bottom: 20px; }
.sw-head--center .sw-lead { margin: 0 auto; }
/* Title left, lead right, both sitting on the same baseline */
.sw-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-3) var(--sp-6);
  align-items: end;
}
.sw-head--split .sw-lead { justify-self: end; }

/* ── Buttons ── */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.sw-btn--lg { min-height: 54px; padding: 0 28px; font-size: var(--fs-body); }
.sw-btn:active { transform: scale(0.98); }
.sw-btn svg { transition: transform var(--transition); }

.sw-btn--primary {
  background: var(--primary-solid);
  color: #fff;
  box-shadow: 0 10px 30px rgba(209, 64, 0, 0.28);
}
.sw-btn--primary:hover { background: var(--primary-solid-hover); }
@media (hover: hover) and (pointer: fine) { .sw-btn--primary:hover svg { transform: translateY(2px); } }
@media (hover: hover) and (pointer: fine) { .sw-cta .sw-btn--primary:hover svg { transform: translateX(3px); } }

/* Ghost buttons only live on dark surfaces on this page */
.sw-btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-on-dark);
}
.sw-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); }

/* ── Reveal on scroll (software.js adds .visible) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out) var(--delay, 0s),
              transform 0.8s var(--ease-out) var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }


/* ============================================================
   S1 — HERO
   ============================================================ */
.sw-hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height, 64px);
  background: var(--dark-bg);
}

.sw-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sw-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 75%;
  height: 120%;
  background:
    radial-gradient(ellipse at 60% 45%, rgba(255, 90, 31, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 169, 138, 0.06) 0%, transparent 50%);
  filter: blur(20px);
}
.sw-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sw-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-6);
  align-items: center;
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}

.sw-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

/* The five app icons, fanned like a dock: a link to the catalogue */
.sw-hero-suite {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-bottom: var(--sp-4);
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), background-color var(--transition);
}
.sw-hero-suite:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
/* Side by side with clear space: no icon covers another */
.sw-hero-icons { display: flex; gap: 6px; }
.sw-hero-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.sw-hero-suite-text { font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--text-muted-on-dark); }

.sw-hero-title {
  margin-bottom: var(--sp-3);
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  color: var(--text-on-dark);
}
/* Warm-only gradient: every stop stays ≥ 4.5:1 on --dark-bg */
.sw-hero-title-em {
  background: linear-gradient(118deg, #FFE9DE 0%, #FFB79D 45%, #FF8A5C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (forced-colors: active) {
  .sw-hero-title-em { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
}

.sw-hero-sub {
  max-width: 46ch;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted-on-dark);
}

.sw-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-3); }

.sw-hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sw-hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}
.sw-hero-note svg { color: var(--primary-on-dark); flex-shrink: 0; }

/* ── Stage: three real app windows ── */
.sw-hero-stage {
  position: relative;
  aspect-ratio: 1.22;
  /* Bleed a little towards the viewport edge, like the product heroes */
  margin-right: calc(-1 * min(var(--sp-6), max(0px, (100vw - var(--max-w)) / 2)));
}

.sw-win {
  position: absolute;
  overflow: hidden;
  border-radius: 14px;
  background: #1F1A14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.3);
}
.sw-win picture img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.sw-win--back {
  top: 0;
  right: 0;
  width: 58%;
  aspect-ratio: 1200 / 893;
  opacity: 0.75;
}
.sw-win--main {
  top: 16%;
  left: 0;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1100 / 735;
}
.sw-win--side {
  right: 2%;
  bottom: 0;
  z-index: 3;
  width: 48%;
  aspect-ratio: 1240 / 776;
}

/* App name tag on each window */
.sw-win-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(22, 18, 13, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--text-on-dark);
}
.sw-win-tag img { width: 20px; height: 20px; border-radius: 50%; }
.sw-win--back .sw-win-tag { top: 12px; bottom: auto; left: auto; right: 12px; }

/* ── At a glance ── */
.sw-glance {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #1D1812;
}
.sw-glance-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sw-glance-item {
  display: flex;
  flex-direction: column-reverse;   /* figure above its label; <dt> stays first in the DOM */
  gap: 6px;
  padding: var(--sp-4) var(--sp-3);
}
.sw-glance-item + .sw-glance-item { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.sw-glance-item:first-child { padding-left: 0; }
.sw-glance-item dt { font-size: var(--fs-meta); color: var(--text-muted-on-dark); }
.sw-glance-item dd {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1;
  color: var(--text-on-dark);
}


/* ============================================================
   S2 — THE APPS
   ============================================================ */
.sw-apps {
  padding: var(--sp-8) 0;
  background: var(--surface);
}

.sw-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

/* ── Card ──
   --app-tint: the app's hue as "R G B", used only to tint the
   screenshot stage (decorative, never under text). */
.sw-app {
  --app-tint: 255 90 31;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 18px 50px rgba(33, 26, 20, 0.06);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition);
}
.sw-app:hover {
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 28px 64px rgba(33, 26, 20, 0.11);
}

/* Screenshot stage: the real app on a soft wash of its own colour */
.sw-app-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: var(--sp-4) var(--sp-4) 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(var(--app-tint) / 0.16) 0%, rgb(var(--app-tint) / 0.04) 60%, transparent 100%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.sw-app-shot > img,
.sw-app-shot picture img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px rgba(33, 26, 20, 0.08), 0 18px 40px rgba(33, 26, 20, 0.16);
  transition: transform var(--transition-spring);
  transform-origin: 50% 0;
}
@media (hover: hover) and (pointer: fine) { .sw-app:hover .sw-app-shot img { transform: translateY(-4px); } }

.sw-app-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  padding: var(--sp-4);
}

.sw-app-head { display: flex; align-items: center; gap: 14px; }
.sw-app-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(33, 26, 20, 0.14);
}

/* The job the app does, with a dot in its colour */
.sw-app-job {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.sw-app-job::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--app-tint));
}

.sw-app-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 24px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  line-height: 1.15;
  color: var(--text-primary);
}
.sw-app-chip {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-primary);
}

.sw-app-desc { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.sw-app-feats { display: grid; gap: 9px; }
.sw-app-feats li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-small);
  color: var(--text-primary);
}
.sw-app-feats li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--primary-on-light);
  border-bottom: 2px solid var(--primary-on-light);
  transform: rotate(-45deg);
}

/* Price + actions: pushed to the bottom so every card lines up */
.sw-app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sw-app-price { display: flex; align-items: center; gap: 12px; }
.sw-app-price-num {
  font-size: 32px;
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1;
  color: var(--text-primary);
}
.sw-app-price-meta { font-size: var(--fs-meta); line-height: 1.35; color: var(--text-secondary); }

.sw-app-actions { display: flex; align-items: center; gap: 6px; }
.sw-app-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition);
}
.sw-app-link:hover { text-decoration-color: currentColor; }
.sw-app-buy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--primary-solid);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: #fff;
  transition: background-color var(--transition), transform var(--transition);
}
.sw-app-buy:hover { background: var(--primary-solid-hover); }
.sw-app-buy:active { transform: scale(0.98); }

/* ── Featured (Site Designer): copy left, the app bleeding off the right ── */
.sw-app--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.sw-app--featured .sw-app-shot {
  order: 2;
  aspect-ratio: auto;
  min-height: 100%;
  padding: var(--sp-5) 0 0 var(--sp-5);
  border-bottom: 0;
  border-left: 1px solid var(--border);
}
.sw-app--featured .sw-app-shot img {
  width: 118%;
  max-width: none;
  border-radius: 12px 0 0 0;
}
.sw-app--featured .sw-app-body { padding: var(--sp-5); gap: 20px; }
.sw-app--featured .sw-app-icon { width: 56px; height: 56px; }
.sw-app--featured .sw-app-name { font-size: clamp(28px, 2.8vw, 36px); font-weight: var(--fw-strong); letter-spacing: var(--tr-h2); }
.sw-app--featured .sw-app-desc { font-size: var(--fs-body); }
.sw-app--featured .sw-app-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }

/* ── Super Pack band ── */
.sw-pack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-3);
  overflow: hidden;
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 90, 31, 0.22) 0%, transparent 60%),
    var(--dark-bg);
  color: var(--text-on-dark);
}
.sw-pack-eyebrow {
  margin-bottom: 12px;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--primary-on-dark);
}
.sw-pack-title {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.1;
  color: var(--text-on-dark);
}
.sw-pack-title span { color: var(--primary-on-dark); }
.sw-pack-desc { max-width: 52ch; margin-bottom: var(--sp-3); font-size: 15px; line-height: 1.65; color: var(--text-muted-on-dark); }

.sw-pack-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-pack-icons li {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.sw-pack-icons img { width: 34px; height: 34px; }

.sw-pack-buy {
  padding: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.sw-pack-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.sw-pack-price-num {
  font-size: clamp(48px, 5vw, 60px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-h1);
  line-height: 1;
  color: var(--text-on-dark);
}
.sw-pack-price-was { font-size: 20px; color: var(--text-muted-on-dark); }
.sw-pack-save { margin-bottom: var(--sp-3); font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--primary-on-dark); }
.sw-pack-actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* ============================================================
   S3 — OWN YOUR TOOLS
   ============================================================ */
.sw-own {
  padding: var(--sp-8) 0;
  background: var(--surface-subtle);
}

/* Comparison grid: question | CoffeeCup | Subscription.
   Each row asks one question, so the two answers sit side by side. */
.sw-own-board {
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(33, 26, 20, 0.1);
}

.sw-own-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
}
.sw-own-row + .sw-own-row > * { border-top: 1px solid var(--border); }

.sw-own-q {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sw-own-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 28px;
  font-size: 15px;
  line-height: 1.5;
}
.sw-own-cell--cc { background: #fff; color: var(--text-primary); }
.sw-own-cell--sub { border-left: 1px solid var(--border); color: var(--text-secondary); }
.sw-own-cell strong { font-weight: var(--fw-strong); color: var(--text-primary); }

/* Yes / no marks: a check in a mint disc, a cross in a neutral one */
.sw-own-yes,
.sw-own-no {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0;
  border-radius: 50%;
}
.sw-own-yes { background: rgba(0, 115, 92, 0.12); }
.sw-own-yes::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--mint-on-light);
  border-bottom: 2px solid var(--mint-on-light);
  transform: rotate(40deg);
}
.sw-own-no { background: rgba(33, 26, 20, 0.07); }
.sw-own-no::before,
.sw-own-no::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-secondary);
  transform: rotate(45deg);
}
.sw-own-no::after { transform: rotate(-45deg); }

/* Header row: who is who */
.sw-own-row--head .sw-own-cell { flex-direction: column; gap: 10px; padding-top: 28px; padding-bottom: 24px; }
.sw-own-brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }

/* The logo tile: the brand orange with the ink cup (as in apple-touch-icon) */
.sw-own-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(33, 26, 20, 0.08), 0 6px 16px rgba(255, 90, 31, 0.28);
}
.sw-own-mark--muted {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* The official wordmark (blue SVG) recoloured to ink */
.sw-own-wordmark { width: auto; height: 24px; filter: brightness(0); opacity: 0.88; }

.sw-own-sub-name { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); color: var(--text-primary); }
.sw-own-kind { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--text-secondary); }
.sw-own-cell--cc .sw-own-kind { color: var(--primary-on-light); }

/* Last row: five years of payments */
.sw-own-row--cost .sw-own-cell { flex-direction: column; gap: 16px; }
.sw-own-total { display: flex; flex-direction: column; gap: 2px; }
.sw-own-total strong { font-size: 24px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); line-height: 1.15; }
.sw-own-total span { font-size: var(--fs-meta); color: var(--text-secondary); }

.sw-own-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.sw-own-bars li { display: grid; grid-template-rows: 44px auto; gap: 6px; }
.sw-own-bar { align-self: end; height: 3px; border-radius: 3px; background: var(--border-strong); }
.sw-own-bars li.is-paid .sw-own-bar { height: 100%; border-radius: 6px; background: var(--primary); }
.sw-own-bars--sub li.is-paid .sw-own-bar { background: #9C968D; }
.sw-own-yr { font-size: var(--fs-label); text-align: center; color: var(--text-secondary); }

.sw-own-note {
  max-width: 640px;
  margin: var(--sp-3) auto 0;
  text-align: center;
  font-size: var(--fs-meta);
  color: var(--text-secondary);
}
.sw-own-note a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   S4 — BUILT DIFFERENT
   Pinned heading + chapter index on the left, chapters on the right.
   ============================================================ */
.sw-craft {
  position: relative;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
}

.sw-craft-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--sp-6);
}

.sw-craft-pin {
  position: sticky;
  top: calc(var(--nav-height, 64px) + var(--sp-5));
}
.sw-craft-pin .sw-title { margin-bottom: 20px; }

/* Chapter index: a rail with the current chapter lit */
.sw-craft-index { margin-top: var(--sp-5); }
.sw-craft-index ol { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.sw-craft-index a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding-left: 20px;
  color: var(--text-muted-on-dark);
  transition: color var(--transition);
}
.sw-craft-index a::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform var(--transition-smooth);
}
.sw-craft-index a:hover { color: var(--text-on-dark); }
.sw-craft-index a[aria-current="true"] { color: var(--text-on-dark); }
.sw-craft-index a[aria-current="true"]::before { transform: scaleY(1); }
.sw-ci-num { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--text-muted-on-dark); }
.sw-craft-index a[aria-current="true"] .sw-ci-num { color: var(--primary-on-dark); }
.sw-ci-label { font-size: var(--fs-body); font-weight: var(--fw-medium); }

/* ── Chapters ── */
.sw-craft-chapters { display: flex; flex-direction: column; gap: var(--sp-8); }

.sw-ch { scroll-margin-top: calc(var(--nav-height, 64px) + var(--sp-4)); }
.sw-ch-text { max-width: 56ch; margin-bottom: var(--sp-4); }

.sw-ch-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--primary-on-dark);
}
.sw-ch-num::after { content: ''; width: 40px; height: 1px; background: rgba(255, 169, 138, 0.4); }

.sw-ch-title {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.1;
  color: var(--text-on-dark);
}
.sw-ch-body { margin-bottom: var(--sp-3); font-size: 17px; line-height: 1.65; color: var(--text-muted-on-dark); }

/* The apps that have this detail */
.sw-ch-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-ch-apps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--text-on-dark);
}
.sw-ch-apps img { width: 20px; height: 20px; border-radius: 50%; }

/* Media: the real screenshot on a warm stage */
.sw-ch-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 80% at 80% 0%, rgba(255, 90, 31, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #2A221A 0%, #1D1812 100%);
}
.sw-ch-frame img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* Two screenshots: the second overlaps the first's lower-right corner */
.sw-ch-frame--duo { place-items: start; }
.sw-ch-shot-a { width: 86%; }
.sw-ch-shot-b { width: 52%; margin-top: -18%; justify-self: end; }

.sw-ch-cap {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--primary-on-dark);
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}

/* With JS (desktop): the chapter not being read steps back */
@media (min-width: 1101px) {
  .sw-craft.is-tracking .sw-ch { opacity: 0.4; transition: opacity 0.5s ease; }
  .sw-craft.is-tracking .sw-ch.is-current { opacity: 1; }
}


/* ============================================================
   S4b — HOSTING (S-Drive)
   A warm light card with the publishing flow on a dark panel —
   the same dark as "Built different" right above it.
   ============================================================ */
.sw-host {
  padding: var(--sp-7) 0 0;
  background: var(--surface);
}

.sw-host-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.sw-host-copy { padding: var(--sp-6) var(--sp-6) var(--sp-5); }

.sw-host-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.sw-host-brand .sw-eyebrow { margin: 0; }
.sw-host-brand img { border-radius: 7px; }

.sw-host-title {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.1;
  color: var(--text-primary);
  text-wrap: balance;
}

.sw-host-lead {
  max-width: 50ch;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sw-host-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 32px;
  margin-top: var(--sp-4);
  list-style: none;
}
.sw-host-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.sw-host-facts svg { flex-shrink: 0; color: var(--primary-on-light); }

.sw-host-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: var(--sp-5);
}
@media (hover: hover) and (pointer: fine) { .sw-host .sw-btn--primary:hover svg { transform: translateX(3px); } }

/* Secondary action as a text link: still a 48px target */
.sw-host-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(33, 26, 20, 0.3);
  text-underline-offset: 4px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.sw-host-link:hover {
  color: var(--primary-on-light);
  text-decoration-color: currentColor;
}

.sw-host-meta {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-secondary);
}
.sw-host-meta strong { font-weight: var(--fw-strong); color: var(--text-primary); }

/* ── The flow illustration ── */
.sw-host-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--sp-5) var(--sp-4);
  background:
    radial-gradient(60% 50% at 50% 52%, rgba(0, 103, 255, 0.22), transparent 70%),
    var(--dark-bg);
}

.sw-host-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sw-host-apps {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
}
/* Bracket that gathers the three apps into one line */
.sw-host-apps::after {
  content: '';
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  bottom: 0;
  height: 14px;
  border: 1.5px solid rgba(242, 240, 237, 0.22);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.sw-host-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
  font-size: var(--fs-meta);
  line-height: 1.25;
  text-align: center;
  color: var(--text-muted-on-dark);
}
.sw-host-app img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.sw-host-pipe {
  width: 1.5px;
  height: 28px;
  background: linear-gradient(rgba(242, 240, 237, 0.22), rgba(0, 103, 255, 0.7));
}
.sw-host-pipe--out { background: linear-gradient(rgba(0, 103, 255, 0.7), rgba(0, 215, 172, 0.6)); }

.sw-host-hub {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: var(--dark-elevated);
  box-shadow: 0 0 0 6px rgba(0, 103, 255, 0.08), 0 16px 40px rgba(0, 55, 160, 0.35);
}
.sw-host-hub img { width: 48px; height: 48px; }

.sw-host-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--fs-small);
  color: var(--text-muted-on-dark);
  white-space: nowrap;
}
.sw-host-url svg { flex-shrink: 0; color: var(--mint-on-dark); }
.sw-host-url b { font-weight: var(--fw-medium); color: var(--text-on-dark); }

.sw-host-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 215, 172, 0.12);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--mint-on-dark);
}
.sw-host-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 1000px) {
  .sw-host-card { grid-template-columns: minmax(0, 1fr); }
  .sw-host-copy { padding: var(--sp-5) var(--sp-4) var(--sp-4); }
  .sw-host-visual { padding: var(--sp-4) var(--sp-3) var(--sp-5); }
}

@media (max-width: 640px) {
  .sw-host { padding-top: var(--sp-6); }
  .sw-host-card { border-radius: 20px; }
  .sw-host-copy { padding: var(--sp-4) 20px var(--sp-3); }
  .sw-host-lead { font-size: var(--fs-body); }
  .sw-host-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sw-host-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .sw-host-actions .sw-btn { width: 100%; }
  .sw-host-link { justify-content: center; }
  .sw-host-meta { text-align: center; }
  .sw-host-app { width: 78px; }
}

@media (max-width: 400px) {
  .sw-host-visual { padding-inline: 12px; }
  .sw-host-apps { gap: 4px; }
  .sw-host-app { width: 76px; }
  /* The scheme is implied by the padlock; the domain is what matters */
  .sw-host-url-scheme { display: none; }
}


/* ============================================================
   S6 — DETAILS: REQUIREMENTS + FAQ
   ============================================================ */
.sw-details {
  padding: var(--sp-8) 0;
  background: var(--surface-subtle);
}

.sw-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-4);
  align-items: start;
}

.sw-req {
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
}
.sw-req-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.sw-req-table th,
.sw-req-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  white-space: nowrap;
}
.sw-req-table tbody tr:last-child > * { border-bottom: 0; }
.sw-req-table thead th {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sw-req-os { display: inline-flex; align-items: center; gap: 7px; }
.sw-req-table tbody th { font-weight: var(--fw-medium); color: var(--text-primary); }
.sw-req-table tbody th img {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 50%;
}
.sw-req-table td { color: var(--text-secondary); }
.sw-req-na::before { content: '— '; }

.sw-details .faq-answer a { color: var(--primary-on-light); text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   S7 — CTA FINAL
   ============================================================ */
.sw-cta {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  text-align: center;
}
.sw-cta-glow {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(900px, 120vw);
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.sw-cta-inner { position: relative; z-index: 1; }

/* ── The five apps as a dock ──
   Entrance (once, under 3 s): each icon springs up into the arc in turn,
   then a single wave runs across them. Hover/focus magnifies the icon
   and, a little, its neighbours, and shows the app's name. With reduced
   motion the base rule removes the animation and they simply sit there. */
.sw-cta-icons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: var(--sp-4);
}
.sw-cta-icons li { transform: translateY(var(--y, 0)); }
.sw-cta-icons li:nth-child(1),
.sw-cta-icons li:nth-child(5) { --y: 10px; }
.sw-cta-icons li:nth-child(2),
.sw-cta-icons li:nth-child(4) { --y: 3px; }
.sw-cta-icons li:nth-child(1) { --i: 0; }
.sw-cta-icons li:nth-child(2) { --i: 1; }
.sw-cta-icons li:nth-child(3) { --i: 2; }
.sw-cta-icons li:nth-child(4) { --i: 3; }
.sw-cta-icons li:nth-child(5) { --i: 4; }

.sw-cta-app {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform-origin: 50% 100%;
  transition: transform 0.35s var(--ease-bounce);
}
.sw-cta-app img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

/* Before the section is reached (JS adds .is-armed, then .is-in) */
.sw-cta-icons.is-armed .sw-cta-app { opacity: 0; transform: translateY(36px) scale(0.6); }
.sw-cta-icons.is-in .sw-cta-app {
  opacity: 1;
  transform: none;
  animation:
    sw-dock-pop 0.7s var(--ease-bounce) calc(var(--i) * 0.09s) both,
    sw-dock-wave 0.5s ease-in-out calc(1.1s + var(--i) * 0.08s) 1;
}
@keyframes sw-dock-pop {
  0%   { opacity: 0; transform: translateY(36px) scale(0.6); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes sw-dock-wave {
  0%, 100% { transform: none; }
  45%      { transform: translateY(-9px) rotate(-4deg); }
}

/* Magnify: the icon under the pointer, and its neighbours a little */
/* Once the entrance has run it never replays (JS adds .is-done) */
.sw-cta-icons.is-done .sw-cta-app { animation: none; }

.sw-cta-icons .sw-cta-app:focus-visible { transform: translateY(-10px) scale(1.18); animation: none; }
@media (hover: hover) and (pointer: fine) { .sw-cta-icons li:hover .sw-cta-app { transform: translateY(-10px) scale(1.18); animation: none; } }
@media (hover: hover) and (pointer: fine) { .sw-cta-icons li:has(+ li:hover) .sw-cta-app, .sw-cta-icons li:hover + li .sw-cta-app { transform: translateY(-4px) scale(1.07); animation: none; } }

/* App name above the icon */
.sw-cta-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(22, 18, 13, 0.92);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  color: var(--text-on-dark);
  opacity: 0;
  transform: translate(-50%, 4px) scale(calc(1 / 1.18));
  transform-origin: 50% 100%;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sw-cta-icons .sw-cta-app:focus-visible .sw-cta-tip { opacity: 1; transform: translate(-50%, 0) scale(calc(1 / 1.18)); }
@media (hover: hover) and (pointer: fine) { .sw-cta-icons li:hover .sw-cta-tip { opacity: 1; transform: translate(-50%, 0) scale(calc(1 / 1.18)); } }

.sw-cta-title {
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  color: var(--text-on-dark);
}
.sw-cta-sub {
  max-width: 560px;
  margin: 0 auto var(--sp-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted-on-dark);
}
.sw-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-3); }
.sw-cta-reassure { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.sw-cta-reassure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}
.sw-cta-reassure svg { color: var(--primary-on-dark); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .sw-hero { min-height: 0; }
  .sw-hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .sw-hero-stage { max-width: 760px; margin-right: 0; }

  .sw-craft-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .sw-craft-pin { position: static; }
  .sw-craft-index { display: none; }
  .sw-craft-chapters { gap: var(--sp-7); }

  .sw-details-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-req { max-width: 640px; }
}

@media (max-width: 900px) {
  .sw-head--split { grid-template-columns: minmax(0, 1fr); }
  .sw-head--split .sw-lead { justify-self: start; }

  .sw-app-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-app--featured { display: flex; }
  .sw-app--featured .sw-app-shot {
    order: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: var(--sp-4) 0 0 var(--sp-4);
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .sw-app--featured .sw-app-body { padding: var(--sp-4); }

  .sw-pack { grid-template-columns: minmax(0, 1fr); padding: var(--sp-4); }

  /* The question becomes a title row above the two answers */
  .sw-own-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sw-own-q { grid-column: 1 / -1; padding: 14px 20px 10px; background: var(--surface-subtle); }
  .sw-own-row + .sw-own-row > .sw-own-cell { border-top: 0; }
  .sw-own-corner { display: none; }
  .sw-own-cell { padding: 18px 20px; }

  .sw-glance-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-glance-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .sw-glance-item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
}

@media (max-width: 640px) {
  .sw-hero-inner { padding-top: var(--sp-6); }
  .sw-hero-suite-os { display: none; }
  .sw-hero-icons { gap: 4px; }
  .sw-hero-icons img { width: 26px; height: 26px; }
  .sw-hero-suite-text { white-space: nowrap; }
  .sw-hero-ctas { width: 100%; flex-direction: column; }
  .sw-hero-ctas .sw-btn { width: 100%; }
  /* Phones: two windows are enough */
  .sw-hero-stage { aspect-ratio: 1.15; }
  .sw-win--back { display: none; }
  .sw-win--main { top: 0; width: 92%; }
  .sw-win--side { width: 62%; right: 0; }
  .sw-win-tag { left: 8px; bottom: 8px; font-size: var(--fs-label); }

  .sw-glance-item { padding: var(--sp-3) var(--sp-2); }
  .sw-glance-item:nth-child(odd) { padding-left: 0; }

  .sw-app-shot { padding: var(--sp-3) var(--sp-3) 0; }
  .sw-app-body,
  .sw-app--featured .sw-app-body { padding: var(--sp-3); }
  .sw-app--featured .sw-app-shot { padding: var(--sp-3) 0 0 var(--sp-3); }
  .sw-app--featured .sw-app-feats { grid-template-columns: minmax(0, 1fr); }
  .sw-app-foot { flex-direction: column; align-items: stretch; }
  .sw-app-actions { flex-direction: row-reverse; }
  .sw-app-buy { flex: 1; justify-content: center; }

  .sw-pack { padding: var(--sp-3); }
  .sw-pack-buy { padding: var(--sp-3); }
  .sw-pack-actions .sw-btn { width: 100%; }

  .sw-own-cell { flex-direction: column; gap: 10px; padding: 16px; font-size: var(--fs-small); }
  .sw-own-q { padding: 12px 16px 8px; }
  .sw-own-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sw-own-mark { width: 40px; height: 40px; }
  .sw-own-wordmark { height: 18px; }
  .sw-own-sub-name { font-size: 18px; }
  .sw-own-total strong { font-size: 20px; }

  .sw-ch-frame { padding: 16px; }
  .sw-ch-shot-a { width: 92%; }
  .sw-ch-shot-b { width: 64%; }

  .sw-req-table th,
  .sw-req-table td { padding: 14px 10px; white-space: normal; }
  .sw-req-table th:first-child { padding-left: 16px; }
  .sw-req-table tbody th img { display: none; }
  .sw-req-os svg { display: none; }

  .sw-cta-actions .sw-btn { width: 100%; }
  .sw-cta-icons { gap: 8px; }
  .sw-cta-app img { width: 44px; height: 44px; }
}

/* Narrowest phones: smaller icons so the label keeps its own space */
@media (max-width: 400px) {
  .sw-hero-suite { gap: 10px; padding-right: 12px; }
  .sw-hero-icons { gap: 3px; }
  .sw-hero-icons img { width: 22px; height: 22px; }
}
