/* Filament Manager website. Colors follow the app's Theme.swift: dark panels and one green accent. */

:root {
  color-scheme: light dark;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --raised: #efeff2;
  --stroke: #e2e2e6;
  --text: #111113;
  --text-2: #55555b;
  --text-3: #808087;
  --accent: #00ae42;
  --accent-text: #00803a;
  --accent-soft: rgba(0, 174, 66, 0.12);
  --accent-glow: rgba(0, 174, 66, 0.22);
  --on-accent: #0f0f10;
  --warning: #a35f00;
  --warning-soft: rgba(255, 168, 38, 0.2);
  --dot: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.1);

  --radius-panel: 18px;
  --radius-card: 14px;
  --radius-control: 12px;
  --wide: 1080px;
  --narrow: 720px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --surface: #1a1a1c;
    --raised: #242427;
    --stroke: #2e2e32;
    --text: #f2f2f2;
    --text-2: #a0a0a6;
    --text-3: #6e6e74;
    --accent-text: #1fc35c;
    --accent-soft: rgba(0, 174, 66, 0.15);
    --accent-glow: rgba(0, 174, 66, 0.28);
    --warning: #ffa826;
    --warning-soft: rgba(255, 168, 38, 0.15);
    --dot: rgba(255, 255, 255, 0.07);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent-glow);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-control);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: var(--narrow);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled,
html:not(.js) .site-header {
  border-bottom-color: var(--stroke);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #6be39b);
  transform: scaleX(0);
  transform-origin: left;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  transition: transform 0.4s var(--ease-out);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.06);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--raised);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* On phones the logo is the Home link, so the header fits on one line. */
@media (max-width: 600px) {
  .site-nav .nav-home {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding: 0 16px;
  }
  .brand span {
    display: none;
  }
  .site-nav a {
    font-size: 15px;
    padding: 6px 11px;
  }
}

/* Scroll reveal. Only with site.js running (it adds .js), so the page is complete without it. */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out) var(--delay, 0s), transform 0.9s var(--ease-out) var(--delay, 0s);
}

html.js .reveal.from-left {
  transform: translateX(-36px);
}

html.js .reveal.from-right {
  transform: translateX(36px);
}

html.js .reveal.zoom {
  transform: scale(0.94) translateY(16px);
}

/* On phones, side slides would push the page wider than the screen, so everything rises instead. */
@media (max-width: 820px) {
  html.js .reveal.from-left,
  html.js .reveal.from-right {
    transform: translateY(28px);
  }
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-0 {
  --delay: 0s;
}

.delay-1 {
  --delay: 0.1s;
}

.delay-2 {
  --delay: 0.2s;
}

.delay-3 {
  --delay: 0.3s;
}

/* Cards that light up under the pointer (site.js sets --mx and --my). */

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

.spotlight > * {
  position: relative;
}

/* Home: hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 128px;
}

/* A soft green glow, and a dotted texture like a print bed, fading out from the top. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-120px, 60px) scale(1.15);
  }
}

/* A strand of filament that draws itself across the bottom of the hero. */
.hero-filament {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

.filament-strand {
  fill: none;
  stroke: url(#filament-colors);
  stroke-width: 3px;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.8s var(--ease-out) 0.4s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero > .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--stroke), 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 60px var(--accent-soft);
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 66, 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 9px rgba(0, 174, 66, 0);
  }
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin: 0 0 16px;
}

.hero h1 {
  background: linear-gradient(120deg, var(--text) 35%, var(--accent-text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pitch {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 30ch;
}

.hero-meta {
  font-size: 15px;
  color: var(--text-3);
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, box-shadow 0.2s;
}

.button::after {
  content: "→";
  transition: transform 0.2s var(--ease-out);
}

.button:hover {
  background: #00923a;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--accent-glow);
}

.button:hover::after {
  transform: translateX(3px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--stroke);
}

.button.secondary::after {
  content: none;
}

.button.secondary:hover {
  background: var(--raised);
  box-shadow: var(--shadow);
}

/* Home: example Spools panel, drawn like the app */

.mock {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-lift);
  padding: 20px;
}

.floaty {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.4deg);
  }
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.mock-total {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.spool {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  background: var(--raised);
  border-radius: var(--radius-card);
}

.spool + .spool {
  margin-top: 10px;
}

html.js .mock .spool {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}

html.js .is-visible .mock .spool {
  opacity: 1;
  transform: none;
}

html.js .is-visible .mock .spool:nth-child(2) {
  transition-delay: 0.35s;
}

html.js .is-visible .mock .spool:nth-child(3) {
  transition-delay: 0.5s;
}

html.js .is-visible .mock .spool:nth-child(4) {
  transition-delay: 0.65s;
}

.swatch {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(127, 127, 127, 0.35);
  position: relative;
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid rgba(127, 127, 127, 0.35);
}

.swatch.orange {
  background: #ff6a13;
}

.swatch.black {
  background: #1d1d1f;
}

.swatch.grey {
  background: #a3a6a8;
}

.spool-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.spool-where {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.3;
}

.grams {
  grid-row: span 2;
  text-align: right;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.grams small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 2px;
}

.tag {
  display: block;
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warning);
}

.bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: var(--stroke);
  overflow: hidden;
  margin-top: 10px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
}

.bar .low {
  background: var(--warning);
}

html.js .bar span {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out) 0.6s;
}

html.js .is-visible .bar span {
  transform: scaleX(1);
}

.w81 {
  width: 81%;
}

.w50 {
  width: 50%;
}

.w15 {
  width: 15%;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 720;
  margin: 0 0 12px;
}

.section-head p:not(.eyebrow),
.muted {
  margin: 0 0 18px;
  color: var(--text-2);
}

h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 6px;
}

/* Home: numbers */

.stats-section {
  padding: 8px 0 24px;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 28px 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.stats li {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

/* Feature cards */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature,
.step,
.panel,
.mini {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  padding: 26px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.feature:hover,
.step:hover,
.panel:hover,
.mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke));
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform 0.5s var(--ease-out);
}

.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature p,
.step p,
.mini p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

/* Numbered steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 750;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

/* Two columns: text and a picture, or two panels */

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.container.two-up {
  gap: 56px;
}

.two-up.align-center {
  align-items: center;
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.icon-chip {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}

.icon-chip svg {
  width: 20px;
  height: 20px;
}

.icon-chip.muted-chip {
  background: var(--raised);
  color: var(--text-2);
}

.checks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.panel .checks {
  margin-bottom: 0;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  color: var(--text-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg);
}

.checks.plain li::before {
  background: var(--raised);
}

.checks.plain li::after {
  left: 5px;
  top: 12px;
  width: 8px;
  height: 0;
  border-right: none;
  border-bottom: 2px solid var(--text-3);
  transform: none;
}

.mini-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini {
  padding: 22px;
}

.mini h3 {
  font-size: 17px;
}

.mini p {
  font-size: 15px;
}

.note {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 16px;
}

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.pill.on {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.pill.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

/* iCloud diagram */

.sync-diagram {
  margin: 0;
}

.sync-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dg-line {
  fill: none;
  stroke: var(--stroke);
  stroke-width: 2.5;
}

.dg-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 18;
  animation: flow 1.5s linear infinite;
}

.dg-flow.slow {
  animation-duration: 2.1s;
}

.dg-flow.reverse {
  animation-direction: reverse;
}

@keyframes flow {
  to {
    stroke-dashoffset: -18.1;
  }
}

.dg-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.45;
    transform: scale(0.62);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.dg-cloud {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}

.dg-spool {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 3;
}

.dg-device,
.dg-person {
  fill: var(--surface);
  stroke: var(--text-2);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dg-device-line {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.dg-dot {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.dg-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.3;
}

.dg-labels span:nth-child(2) {
  text-align: center;
  color: var(--accent-text);
}

.dg-labels span:nth-child(3) {
  text-align: right;
}

/* Centered page hero (iCloud page) */

.hero-center > .container {
  display: block;
  max-width: 860px;
  text-align: center;
}

.hero-center .pitch {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.hero-center h1 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-center .sync-diagram {
  max-width: 680px;
  margin: 0 auto;
}

/* Home: coming soon */

.soon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  padding: 56px 28px;
}

.soon::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -60%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}

.soon img {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 1px var(--stroke), 0 10px 26px rgba(0, 0, 0, 0.18);
  animation: float 6s ease-in-out infinite;
}

.soon p {
  color: var(--text-2);
  max-width: 34rem;
  margin: 0 auto 24px;
}

.soon .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Support and Privacy */

.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  margin: 0;
}

.updated {
  font-size: 14px;
  color: var(--text-3);
  margin: 12px 0 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  padding: 26px;
  margin: 32px 0;
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-2);
  margin: 0 0 18px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card.cta {
  text-align: center;
  margin-top: 40px;
}

.email {
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.summary {
  background: var(--accent-soft);
  border: 1px solid transparent;
}

.summary p {
  color: var(--text);
}

.path {
  font-weight: 600;
  color: var(--text);
  white-space: normal;
}

.prose {
  padding-bottom: 32px;
}

.prose h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
}

.prose p {
  margin: 0 0 14px;
}

.faq {
  margin: 8px 0 48px;
  border-top: 1px solid var(--stroke);
}

.faq details {
  border-bottom: 1px solid var(--stroke);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--accent-text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  margin: -4px 0 18px;
  color: var(--text-2);
}

.faq details[open] p {
  animation: open 0.35s var(--ease-out);
}

@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--stroke);
  margin-top: 40px;
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--text-3);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

/* Smaller screens */

@media (max-width: 900px) {
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 48px 0 104px;
  }
  .hero > .container,
  .container.two-up {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features,
  .steps,
  .two-up {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 44px 0;
  }
  .hero-filament {
    height: 96px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .mock {
    padding: 14px;
  }
  .spool {
    padding: 12px;
    gap: 2px 12px;
  }
  .feature,
  .step,
  .panel {
    padding: 22px;
  }
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .dg-labels {
    font-size: 12px;
  }
}

/* Reduce Motion: no movement at all. site.js also stays off, so nothing is hidden. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .filament-strand {
    stroke-dashoffset: 0;
  }
  .dg-pulse {
    opacity: 0.25;
  }
}
