/* Coming Soon page — Sapien Design System */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--sds-font-family);
  background: transparent;
  color: var(--sds-fg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Background scene ---- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* lower-left blue cloud */
    radial-gradient(circle 520px at 28% 75%, rgba(135, 175, 255, 0.32), transparent 65%),
    /* top-right pale violet wash */
    radial-gradient(circle 700px at 88% 8%, rgba(196, 185, 255, 0.32), transparent 60%),
    /* top-left soft violet */
    radial-gradient(ellipse 560px 420px at 6% 8%, rgba(208, 200, 255, 0.28), transparent 65%),
    /* mid-right pale lavender */
    radial-gradient(circle 380px at 96% 55%, rgba(192, 200, 255, 0.30), transparent 60%),
    /* bottom right faint warm-white */
    radial-gradient(circle 480px at 86% 95%, rgba(220, 226, 255, 0.25), transparent 65%),
    linear-gradient(180deg, #FBFBFF 0%, #F6F7FE 100%);
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(20, 22, 72, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 72, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 85%);
  opacity: 0.7;
}

/* Cursor-following spotlight — a soft blue+violet cloud */
.cursor-glow {
  position: absolute;
  inset: 0;
  --mx: 50%;
  --my: 30%;
  background:
    radial-gradient(circle 360px at var(--mx) var(--my), rgba(108, 162, 255, 0.38), transparent 70%),
    radial-gradient(circle 200px at var(--mx) var(--my), rgba(160, 140, 255, 0.30), transparent 70%);
  pointer-events: none;
  mix-blend-mode: normal;
  filter: blur(2px);
}

.scene .blob {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: float 22s ease-in-out infinite;
}
.scene .blob-a { background: #C7DCFF; top: -260px; left: -200px; }
.scene .blob-b { background: #E0DBFF; bottom: -260px; right: -180px; animation-delay: -8s; }
.scene .blob-c { background: #D6E4FF; top: 36%; right: 18%; width: 340px; height: 340px; animation-delay: -14s; opacity: 0.18; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
}

/* ---- Layout ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 64px);
}

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 22, 72, 0.08);
  border-radius: var(--sds-r-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header .brand .divider {
  width: 1px;
  height: 22px;
  background: var(--sds-charcol-30);
}
.header .brand img { display: block; height: 19px; width: auto; }
.header .brand .sapien { height: 22px; }

.header .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 22, 72, 0.08);
  border-radius: var(--sds-r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--sds-charcol-80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sds-brand-green-50);
  box-shadow: 0 0 0 4px rgba(42, 157, 96, 0.15);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(42, 157, 96, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(42, 157, 96, 0); }
}

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 6vh, 64px) 0 clamp(28px, 5vh, 48px);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.hero-text { max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  background: var(--sds-bg-surface);
  border: 1px solid var(--sds-border-subtle);
  border-radius: var(--sds-r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--sds-charcol-80);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(20, 22, 72, 0.04);
}
.eyebrow .tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--sds-brand-blue-10);
  color: var(--sds-brand-blue-70);
  border-radius: var(--sds-r-full);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.headline {
  font-family: var(--sds-font-family);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--sds-charcol-100);
}
.headline .accent {
  position: relative;
  display: inline-block;
  color: var(--sds-brand-blue-60);
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  padding-right: 0.08em;
}
.headline .accent-underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.28em;
  color: var(--sds-brand-blue-60);
  pointer-events: none;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: drawUnderline 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}
@keyframes drawUnderline {
  to { stroke-dashoffset: 0; }
}

.subhead {
  margin-top: 26px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--sds-charcol-70);
  max-width: 580px;
  font-weight: 400;
}
.subhead strong { color: var(--sds-charcol-100); font-weight: 600; }

/* ---- Subscribe form ---- */
.subscribe {
  margin-top: 40px;
  max-width: 560px;
}
.subscribe-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sds-brand-blue-50);
  margin-bottom: 10px;
}
.subscribe-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--sds-bg-surface);
  border: 1px solid var(--sds-border-subtle);
  border-radius: var(--sds-r-full);
  box-shadow: 0 4px 16px rgba(20, 22, 72, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.subscribe-row:focus-within {
  border-color: var(--sds-charcol-100);
  box-shadow: 0 4px 24px rgba(20, 22, 72, 0.12);
}
.subscribe-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--sds-charcol-100);
  background: transparent;
  min-width: 0;
}
.subscribe-row input::placeholder { color: var(--sds-charcol-50); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--sds-charcol-100);
  color: var(--sds-white);
  border: none;
  border-radius: var(--sds-r-full);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--sds-charcol-90); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.subscribe-helper {
  margin-top: 10px;
  font-size: 12px;
  color: var(--sds-charcol-50);
  padding-left: 24px;
}
.subscribe-success {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--sds-brand-green-10);
  border: 1px solid var(--sds-brand-green-30);
  border-radius: var(--sds-r-12);
  font-size: 14px;
  color: var(--sds-brand-green-70);
  align-items: center;
  gap: 10px;
}
.subscribe-success.show { display: flex; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* (Countdown removed) */

/* ---- Right-side visual ---- */
.hero-visual {
  position: relative;
  height: 600px;
  perspective: 1400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  padding: 4px;
}

.float-card {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  background: var(--sds-bg-surface);
  border: 1px solid var(--sds-border-subtle);
  border-radius: var(--sds-r-16);
  box-shadow: 0 20px 50px -16px rgba(20, 22, 72, 0.18), 0 4px 12px rgba(20, 22, 72, 0.06);
  padding: 16px;
  animation: cardFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.float-card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 28px 60px -18px rgba(20, 22, 72, 0.24), 0 4px 12px rgba(20, 22, 72, 0.06);
  z-index: 20;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

/* Card 1: Components — grid row 1, col 2 */
.card-components {
  grid-row: 1;
  grid-column: 2;
  --rot: 1.5deg;
  animation-delay: 0s;
  z-index: 3;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--sds-r-8);
  transition: background 0.15s;
}
.card-row:hover { background: var(--sds-bg-subtle); }
/* Component thumbnail placeholders (mini renders of the actual component) */
.card-row .thumb {
  width: 44px;
  height: 32px;
  border-radius: var(--sds-r-6);
  flex-shrink: 0;
  background: var(--sds-bg-subtle);
  border: 1px solid var(--sds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  overflow: hidden;
  position: relative;
}
.thumb-btn {
  background: var(--sds-charcol-100);
  color: var(--sds-white);
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.thumb-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--sds-brand-blue-50), var(--sds-brand-blue-60));
  border-radius: 1px;
  align-self: flex-end;
}
.thumb-input {
  width: 100%;
  height: 10px;
  background: var(--sds-white);
  border: 1px solid var(--sds-charcol-30);
  border-radius: 2px;
  position: relative;
}
.thumb-input::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 60%;
  height: 2px;
  background: var(--sds-charcol-50);
  border-radius: 1px;
}
.thumb-step {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sds-charcol-30);
  flex-shrink: 0;
}
.thumb-step.done { background: var(--sds-brand-blue-60); }
.thumb-line {
  flex: 1;
  height: 1.5px;
  background: var(--sds-charcol-30);
  border-radius: 1px;
}
.thumb-line:has(+ .thumb-step.done) { background: var(--sds-brand-blue-60); }
.card-row .meta { flex: 1; min-width: 0; }
.card-row .title { font-size: 13px; font-weight: 600; color: var(--sds-charcol-90); }
.card-row .sub { font-size: 11px; color: var(--sds-charcol-50); margin-top: 1px; }
.card-row .badge {
  padding: 2px 8px;
  background: var(--sds-brand-green-10);
  color: var(--sds-brand-green-70);
  border-radius: var(--sds-r-full);
  font-size: 10px;
  font-weight: 600;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--sds-border-subtle);
  margin-bottom: 8px;
}
.card-header .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sds-charcol-60);
}
.card-header .count {
  font-size: 11px;
  color: var(--sds-charcol-50);
  font-weight: 500;
}

/* Card 2: Illustrations carousel — grid row 2, col 2 */
.card-visuals {
  grid-row: 2;
  grid-column: 2;
  --rot: 1.5deg;
  animation-delay: -2.3s;
  z-index: 2;
}

/* Theme dots in card header */
.theme-dot-row {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c, #2E6CFF);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(20, 22, 72, 0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}
.theme-dot:hover { transform: scale(1.18); }
.theme-dot.active {
  border-color: var(--sds-white);
  box-shadow: 0 0 0 1.5px var(--sds-charcol-100);
}

.illu-stage {
  position: relative;
  margin-top: 8px;
  width: 100%;
  height: 180px;
  background: var(--sds-bg-subtle);
  border-radius: var(--sds-r-8);
  overflow: hidden;
}
.illu-frame {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.illu-frame svg { width: 100%; height: 100%; display: block; }
.illu-frame.entering { opacity: 0; transform: scale(0.94); }
.illu-frame.leaving { opacity: 0; transform: scale(1.04); }

.illu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}
.illu-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--sds-charcol-80);
}
.illu-theme-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--sds-charcol-50);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.illu-dots {
  display: flex;
  gap: 6px;
}
.illu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sds-charcol-30);
  cursor: pointer;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}
.illu-dot:hover { background: var(--sds-charcol-50); }
.illu-dot.active {
  background: var(--sds-charcol-100);
  width: 18px;
  border-radius: 3px;
}

/* Card 3: Design screens across platforms */
/* Card 3: Design screens — grid row 2, col 1 */
.card-devices {
  grid-row: 2;
  grid-column: 1;
  --rot: -1.5deg;
  animation-delay: -4.5s;
  z-index: 4;
  margin-top: -80px;
  align-self: start;
}

.screens-stack {
  position: relative;
  margin-top: 6px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 8px 4px 0;
}

.screen-frame {
  background: var(--sds-white);
  border: 1px solid var(--sds-charcol-30);
  box-shadow: 0 6px 14px -8px rgba(20, 22, 72, 0.18);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-devices:hover .screen-frame { transform: translateY(-3px); box-shadow: 0 12px 22px -8px rgba(20, 22, 72, 0.25); }
.card-devices:hover .screen-tablet { transition-delay: 0.05s; }
.card-devices:hover .screen-phone  { transition-delay: 0.1s; }

/* Desktop frame */
.screen-desktop {
  width: 150px;
  height: 105px;
  border-radius: 6px 6px 4px 4px;
}
.screen-desktop::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--sds-charcol-30);
  border-radius: 0 0 3px 3px;
}
.screen-bar {
  height: 8px;
  background: var(--sds-bg-subtle);
  border-bottom: 1px solid var(--sds-charcol-20);
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 6px;
}
.screen-bar span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sds-charcol-30);
}
.screen-body {
  display: flex;
  height: calc(100% - 8px);
  gap: 4px;
  padding: 4px;
}
.screen-side {
  width: 24px;
  background: var(--sds-bg-subtle);
  border-radius: 3px;
  padding: 4px 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.screen-side-row {
  height: 5px;
  background: var(--sds-charcol-30);
  border-radius: 2px;
  opacity: 0.5;
}
.screen-side-row.active {
  background: var(--sds-brand-blue-60);
  opacity: 1;
}
.screen-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.screen-card {
  background: linear-gradient(135deg, var(--sds-brand-blue-10), var(--sds-bg-subtle));
  border: 1px solid var(--sds-charcol-20);
  border-radius: 3px;
}
.screen-card.lg { flex: 1.4; }
.screen-card.sm { flex: 1; min-height: 26px; }
.screen-card-row { display: flex; gap: 4px; flex: 1; }

/* Tablet frame */
.screen-tablet {
  width: 72px;
  height: 100px;
  border-radius: 7px;
  padding: 0;
}
.screen-body-vert {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px;
  gap: 4px;
}
.screen-header-bar {
  height: 8px;
  background: var(--sds-charcol-100);
  border-radius: 2px;
  width: 60%;
}
.screen-tile {
  flex: 1;
  background: linear-gradient(135deg, var(--sds-brand-blue-10), var(--sds-bg-subtle));
  border: 1px solid var(--sds-charcol-20);
  border-radius: 3px;
}
.screen-tile.thin { flex: 0 0 14px; background: var(--sds-bg-subtle); }

/* Phone frame — same abstract treatment as tablet, in portrait */
.screen-phone {
  width: 50px;
  height: 100px;
  border-radius: 9px;
  padding: 0;
}
.screen-phone .screen-body-vert {
  padding: 5px;
  gap: 4px;
}
.screen-phone .screen-header-bar {
  height: 6px;
  width: 60%;
}
.screen-phone .screen-tile.thin { flex: 0 0 10px; }

.device-copy { margin-top: 12px; }
.device-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sds-charcol-100);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.device-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--sds-charcol-60);
  line-height: 1.35;
}

/* Card 4: Principles — grid row 1, col 1 (sized smaller, anchored to corner) */
.card-principles {
  grid-row: 1;
  grid-column: 1;
  --rot: -1.5deg;
  animation-delay: -1.2s;
  z-index: 1;
  padding: 14px 17px;
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-self: start;
  max-width: 84%;
  margin-top: 50px;
}
.card-principles .principle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}
.card-principles .card-header .label { font-size: 11px; }
.card-principles .principle-chip {
  padding: 7px 13px;
  font-size: 12.5px;
}
.principle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--sds-brand-blue-10);
  color: var(--sds-brand-blue-70);
  border-radius: var(--sds-r-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(46, 108, 255, 0.15);
  transition: all 0.15s;
  cursor: pointer;
}
.principle-chip:hover {
  background: var(--sds-brand-blue-20);
  transform: translateY(-1px);
}
.principle-chip.coral { background: #FFEBE8; color: #B53D2F; border-color: rgba(255, 107, 91, 0.2); }
.principle-chip.violet { background: #EFE5FA; color: #6840A8; border-color: rgba(138, 86, 211, 0.2); }
.principle-chip.teal { background: #DFF4F3; color: #157A75; border-color: rgba(34, 168, 163, 0.2); }
.principle-chip.amber { background: #FEF1E0; color: #A55E15; border-color: rgba(245, 154, 60, 0.2); }

/* ---- Scroll cue ---- */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px auto 8px;
  align-self: center;
  padding: 8px 18px 8px 20px;
  border-radius: var(--sds-r-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(46, 108, 255, 0.18);
  color: var(--sds-brand-blue-70);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s;
  cursor: pointer;
}
.scroll-cue:hover {
  background: var(--sds-brand-blue-10);
  transform: translateY(2px);
}
.scroll-cue-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sds-brand-blue-60);
  color: #fff;
  animation: scrollBob 2.2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---- Principles section ---- */
.principles {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 120px) 0 clamp(48px, 7vh, 96px);
}
.principles-intro {
  max-width: 880px;
  margin: 0 auto clamp(40px, 5vh, 64px);
  text-align: center;
  padding: 0 16px;
}
.principles-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sds-brand-blue-60);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.principles-title {
  font-family: var(--sds-font-family);
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--sds-charcol-100);
  margin-bottom: 20px;
}
.principles-title em {
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 500;
  font-style: normal;
  color: var(--sds-brand-blue-60);
  padding-right: 0.05em;
}
.principles-lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--sds-charcol-70);
  text-wrap: pretty;
}
.principles-lede strong {
  color: var(--sds-charcol-100);
  font-weight: 600;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding: 0 16px;
}

.principle-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--sds-brand-blue-20);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(20, 22, 72, 0.10), 0 2px 6px rgba(20, 22, 72, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.principle-card:hover {
  transform: translateY(-6px);
  border-color: var(--sds-brand-blue-40);
  box-shadow: 0 18px 36px -18px rgba(46, 108, 255, 0.28), 0 4px 10px rgba(20, 22, 72, 0.05);
}
.principle-head {
  position: relative;
  background: var(--sds-brand-blue-10);
  padding: 18px 20px 16px;
  border-bottom: 1.5px solid var(--sds-brand-blue-20);
}
.principle-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sds-brand-blue-50);
  opacity: 0.7;
  margin-bottom: 6px;
}
.principle-name {
  font-family: var(--sds-font-family);
  font-size: 22px;
  font-weight: 700;
  color: var(--sds-charcol-100);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.principle-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
  gap: 16px;
}
.principle-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--sds-charcol-70);
  text-wrap: pretty;
}
.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px dashed var(--sds-brand-blue-20);
}
.principle-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sds-charcol-90);
  font-weight: 500;
}
.principle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sds-brand-blue-50);
}

/* Per-principle accent colors — subtle variation */
.principle-card[data-principle="evolving"] .principle-head { background: #EAF7F0; border-bottom-color: #C7E8D5; }
.principle-card[data-principle="evolving"] .principle-num { color: #1E8A5B; }
.principle-card[data-principle="evolving"] .principle-list li::before { background: #1E8A5B; }
.principle-card[data-principle="evolving"] { border-color: #C7E8D5; }
.principle-card[data-principle="evolving"]:hover { border-color: #88CFA8; box-shadow: 0 18px 36px -18px rgba(30, 138, 91, 0.25), 0 4px 10px rgba(20, 22, 72, 0.05); }

.principle-card[data-principle="minimal"] .principle-head { background: #F2EFFB; border-bottom-color: #DCD3F4; }
.principle-card[data-principle="minimal"] .principle-num { color: #6840A8; }
.principle-card[data-principle="minimal"] .principle-list li::before { background: #6840A8; }
.principle-card[data-principle="minimal"] { border-color: #DCD3F4; }
.principle-card[data-principle="minimal"]:hover { border-color: #B89EE9; box-shadow: 0 18px 36px -18px rgba(104, 64, 168, 0.25), 0 4px 10px rgba(20, 22, 72, 0.05); }

.principle-card[data-principle="inclusive"] .principle-head { background: #FCEFE3; border-bottom-color: #F5D9BD; }
.principle-card[data-principle="inclusive"] .principle-num { color: #A55E15; }
.principle-card[data-principle="inclusive"] .principle-list li::before { background: #A55E15; }
.principle-card[data-principle="inclusive"] { border-color: #F5D9BD; }
.principle-card[data-principle="inclusive"]:hover { border-color: #EAB985; box-shadow: 0 18px 36px -18px rgba(165, 94, 21, 0.25), 0 4px 10px rgba(20, 22, 72, 0.05); }

.principle-card[data-principle="trustworthy"] .principle-head { background: #FCEAE7; border-bottom-color: #F4CFC8; }
.principle-card[data-principle="trustworthy"] .principle-num { color: #B53D2F; }
.principle-card[data-principle="trustworthy"] .principle-list li::before { background: #B53D2F; }
.principle-card[data-principle="trustworthy"] { border-color: #F4CFC8; }
.principle-card[data-principle="trustworthy"]:hover { border-color: #EFA095; box-shadow: 0 18px 36px -18px rgba(181, 61, 47, 0.25), 0 4px 10px rgba(20, 22, 72, 0.05); }

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: auto;
  flex-wrap: wrap;
}
.footer-meta {
  font-size: 12px;
  color: var(--sds-charcol-60);
}
.socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 22, 72, 0.08);
  border-radius: 50%;
  color: var(--sds-charcol-80);
  text-decoration: none;
  transition: all 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.social-btn:hover {
  background: var(--sds-charcol-100);
  color: white;
  transform: translateY(-2px);
  border-color: var(--sds-charcol-100);
}

/* ---- Tweaks panel placeholder hook ---- */
.tweaks-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
  .principle-card[data-principle="inclusive"],
  .principle-card[data-principle="trustworthy"] {
    /* fill the last row evenly */
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 24px;
  }
  .hero-visual {
    height: auto;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    gap: 16px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
  }
  .card-components,
  .card-visuals,
  .card-devices,
  .card-principles {
    grid-column: 1;
    grid-row: auto;
    --rot: 0deg;
    align-self: stretch;
    justify-self: stretch;
    max-width: none;
    margin-top: 0;
  }
  .card-principles { order: 1; }
  .card-components { order: 2; }
  .card-devices    { order: 3; }
  .card-visuals    { order: 4; }

  .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .principles { padding: 56px 0 64px; }
}

@media (max-width: 640px) {
  .page { padding: 20px 18px; }
  .header .brand { padding: 6px 10px; gap: 8px; }
  .header .brand img { height: 17px; }
  .header .brand .sapien { height: 19px; }
  .header .brand .divider { height: 19px; }
  .status-pill { font-size: 11px; padding: 6px 10px; }
  .status-pill .label-text { display: none; }
  .headline { font-size: 58px; letter-spacing: -0.025em; }
  .subhead { font-size: 17px; margin-top: 20px; }
  .subscribe { margin-top: 32px; }
  .btn-primary { padding: 13px 20px; }
  .hero-visual { height: auto; gap: 14px; max-width: 360px; }
  .float-card { padding: 14px; }
  .card-principles { padding: 16px; }
  .principle-chip { padding: 8px 14px; font-size: 12.5px; }
  .screen-desktop { width: 120px; height: 86px; }
  .screen-tablet { width: 56px; height: 80px; }
  .screen-phone { width: 42px; height: 84px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-title { font-size: 44px; }
}

@media (max-width: 420px) {
  .header .brand img.darwinbox { display: none; }
  .header .brand .divider { display: none; }
}
