/* Variant: Switch — light blue and sunny yellow; a Before/After toggle (CSS only) contrasts
   scattered spreadsheets and notes with one tidy app. Hero markup in src/variants/switch. */

:root {
  --bg: #f2f7ff;
  --surface: #ffffff;
  --muted: #e6efff;
  --ink: #10213f;
  --ink-2: #4a5b78;
  --line: #d9e4f5;
  --accent: #f5b301;
  --accent-ink: #10213f;
  --accent-soft: #fff3c4;
  --green-soft: #e3edff;
  --amber-soft: #fff3c4;
  --night: #10213f;
  --night-2: #1a2f55;

  --ui-accent: #2f6bff;
  --ui-img: #e6eeff;
  --ui-tint-a: #dbe6ff;
  --ui-tint-b: #fff0c2;
  --ui-tint-c: #ffe1dc;

  color-scheme: light;
}

.sw-hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
}
@media (min-width: 64em) { .sw-hero__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.sw-title { font-size: clamp(2.75rem, 5.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.05em; }
.sw-hero .hero__lead { margin-top: 1.5rem; }
.sw-hero .hero__actions { margin-top: 2rem; }
.pill--accent { font-weight: 650; }

.sw { position: relative; }
.sw__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sw__toggle {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.sw__toggle label {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
#sw-before:checked ~ .sw__toggle [for="sw-before"],
#sw-after:checked ~ .sw__toggle [for="sw-after"] { background: var(--ink); color: #ffffff; }
#sw-before:focus-visible ~ .sw__toggle [for="sw-before"],
#sw-after:focus-visible ~ .sw__toggle [for="sw-after"] { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

.sw__stage { margin-top: 14px; }
.sw__view { display: none; }
#sw-before:checked ~ .sw__stage .sw__view--before,
#sw-after:checked ~ .sw__stage .sw__view--after { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sw__view { animation: sw-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes sw-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
}
.sw__view figcaption { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--ink-2); }
.sw__view figcaption strong { color: var(--ink); }

/* Before: the mess */
.sw-mess {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #e3e9f3;
}
.sw-sheet { position: absolute; left: 6%; top: 9%; width: 56%; padding: 10px; border-radius: 8px; background: #ffffff; box-shadow: 0 14px 30px -18px rgba(16, 33, 63, 0.5); rotate: -4deg; }
.sw-sheet__name { display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.sw-sheet__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #d5dce8; border: 1px solid #d5dce8; }
.sw-sheet__grid i { height: 18px; background: #ffffff; }
.sw-sheet__grid i:nth-child(-n+6) { background: #eef1f6; }
.sw-sheet__grid i:nth-child(9), .sw-sheet__grid i:nth-child(16) { background: #ffe1dc; }
.sw-inbox { position: absolute; right: 5%; top: 16%; display: grid; gap: 6px; width: 36%; padding: 12px; border-radius: 10px; background: #ffffff; box-shadow: 0 14px 30px -18px rgba(16, 33, 63, 0.5); rotate: 4deg; font-size: 0.8125rem; }
.sw-inbox span { color: #d13b2a; font-weight: 600; }
.sw-inbox i { height: 8px; border-radius: 999px; background: #e3e7ee; }
.sw-note { position: absolute; display: grid; place-items: center; width: 6.5rem; aspect-ratio: 1; padding: 0.5rem; box-shadow: 0 10px 20px -12px rgba(16, 33, 63, 0.5); font-size: 0.9375rem; font-weight: 650; text-align: center; }
.sw-note--1 { left: 12%; bottom: 10%; background: #ffe76a; rotate: -8deg; }
.sw-note--2 { right: 18%; bottom: 8%; background: #ffc2d1; rotate: 7deg; }
.sw-folder { position: absolute; left: 42%; bottom: 14%; width: 22%; aspect-ratio: 4 / 3; border-radius: 4px 10px 6px 6px; background: #f3c56b; box-shadow: 0 10px 20px -12px rgba(16, 33, 63, 0.5); rotate: 5deg; }
.sw-folder::before { content: ""; position: absolute; left: 0; top: -10%; width: 40%; height: 14%; border-radius: 4px 4px 0 0; background: #e9b452; }

/* After: one tidy app */
.sw-app { aspect-ratio: 4 / 3; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(16, 33, 63, 0.4); }
.sw-app__body { flex: 1; display: grid; grid-template-columns: 22% minmax(0, 1fr); min-height: 0; }
.sw-app__side { display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; border-right: 1px solid var(--ui-line); }
.sw-app__side .is-on { background: var(--ui-accent); }
.sw-app__main { display: flex; flex-direction: column; padding: 16px 20px; }
.sw-app__title { margin-bottom: 6px; font-size: 1rem; font-weight: 650; }
.sw-app .docs { flex: 1; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.sw-app .doc.is-sel { background: var(--accent); }

/* Shared sections */
.tile--dark .focus strong { color: var(--accent); }
.ticks li::before { border-color: var(--ui-accent); }
.steps li::before { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary::after { background: var(--accent); color: var(--accent-ink); }
.product__link { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.phscale__ticks { color: var(--ink-2); }
.contact__card:first-child { background: var(--accent); color: var(--accent-ink); }
.contact__card:first-child .contact__label { color: var(--accent-ink); opacity: 0.7; }
