/* PocketFlow Landing — Cormorant Garamond + DM Sans */

:root {
  /* Palette — dark navy (come l'app), non nero puro */
  --bg:        #13141f;
  --surface:   #1c1d2e;
  --surface-2: #22233a;
  --text:      #f0eeff;
  --text-2:    rgba(240,238,255,0.52);
  --text-3:    rgba(240,238,255,0.28);
  --accent:    #7c3aed;
  --accent-l:  #9b72f7;
  --accent-ll: #c4b5fd;

  /* Borders */
  --line:      rgba(180,160,255,0.10);
  --line-2:    rgba(180,160,255,0.05);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Radii */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-pill: 999px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Grain texture ── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  opacity: 0.032;
  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");
  background-size: 180px;
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%  { transform: translate(0,0); }
  10% { transform: translate(-2%,-3%); }
  20% { transform: translate(3%, 2%); }
  30% { transform: translate(-1%, 4%); }
  40% { transform: translate(4%,-1%); }
  50% { transform: translate(-3%, 3%); }
  60% { transform: translate(2%,-4%); }
  70% { transform: translate(-4%, 1%); }
  80% { transform: translate(1%, 3%); }
  90% { transform: translate(3%,-2%); }
  100%{ transform: translate(0,0); }
}

/* ── Page background — dark navy con glow viola in cima ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 32% at 50% -4%, rgba(124,58,237,0.22), transparent 55%),
    #13141f;
}

/* ── Layout container ── */
.site-wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  background: rgba(19, 20, 31, 0.85);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(24px, calc((100% - 1160px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand img { width: 26px; height: 26px; border-radius: 8px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.icon-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.icon-coffee:hover { color: #f59e0b; background: rgba(245,158,11,0.10); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  box-shadow: 0 4px 20px rgba(124,58,237,0.32), 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.46), 0 1px 3px rgba(0,0,0,0.3);
}
.btn-primary.btn-lg {
  height: 54px;
  padding: 0 32px;
  font-size: 15px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(180,160,255,0.30);
  background: rgba(124,58,237,0.08);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
  padding: 72px 0 60px;
  min-height: calc(100vh - 64px);
}

/* Entrance animation for hero */
.hero-text, .hero-visual {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-text.visible { opacity: 1; transform: translateY(0); }
.hero-visual.visible { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }

/* Version badge */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(180,160,255,0.22);
  color: var(--accent-ll);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-l);
  box-shadow: 0 0 6px var(--accent-l);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Hero headline — Cormorant Garamond */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(58px, 6.5vw, 104px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-ll);
  display: block;
}

.lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 30rem;
  font-weight: 300;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}


/* Spec pills */
.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.spec-list li {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}

/* ── Widget mockup ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.widget-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.widget-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(109,40,217,0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.widget-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  border-radius: var(--r-lg);
  padding: 16px;
  background: #1c1d2e;
  border: 1px solid rgba(180,160,255,0.14);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 32px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(124,58,237,0.10);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Widget header */
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 14px;
}

.traffic-lights { display: flex; gap: 7px; align-items: center; }
.tl-red    { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.tl-yellow { width: 11px; height: 11px; border-radius: 50%; background: #febc2f; }

.widget-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.wt-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.wt-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.widget-nav { display: flex; gap: 9px; }
.widget-nav span {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(180,160,255,0.22);
  background: rgba(124,58,237,0.10);
}

/* Widget body */
.widget-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

/* Timer panel */
.w-timer, .w-card {
  background: #22233a;
  border: 1px solid rgba(180,160,255,0.10);
  border-radius: 20px;
  padding: 14px;
}

.w-timer-top, .w-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.w-orbit {
  display: grid;
  place-items: center;
  min-height: 190px;
  position: relative;
}
.w-orbit::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(from -125deg,
    transparent 0deg, transparent 38deg,
    rgba(255,255,255,0.04) 38deg, rgba(255,255,255,0.04) 292deg,
    transparent 292deg);
}
.w-orbit::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(from -125deg,
    transparent 0deg, transparent 38deg,
    var(--accent-ll) 38deg, var(--accent) 236deg,
    transparent 236deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.w-time {
  position: relative;
  z-index: 1;
  font-size: 58px;
  font-weight: 200;
  letter-spacing: -0.07em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.w-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -8px;
}
.wc-btn {
  width: 34px; height: 34px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  transition: background 0.2s;
}
.wc-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}

/* Side column */
.w-side { display: grid; gap: 12px; }

.w-task {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-2);
}
.w-task i {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.dot-red    { background: #f87171; box-shadow: 0 0 5px rgba(248,113,113,0.5); }
.dot-orange { background: #fb923c; box-shadow: 0 0 5px rgba(251,146,60,0.5); }
.dot-green  { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,0.5); }
.w-task.done span {
  text-decoration: line-through;
  color: var(--text-3);
}

/* Ambient card */
.w-ambient { display: flex; flex-direction: column; }

.w-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 12px;
}
.w-bars span {
  flex: 1;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--accent-ll), var(--accent));
  min-width: 0;
}
.w-bars span:nth-child(1) { animation: bar1 1.8s ease-in-out infinite; }
.w-bars span:nth-child(2) { animation: bar2 1.4s ease-in-out infinite; }
.w-bars span:nth-child(3) { animation: bar3 2.0s ease-in-out infinite; }
.w-bars span:nth-child(4) { animation: bar4 1.6s ease-in-out infinite; }
.w-bars span:nth-child(5) { animation: bar5 1.3s ease-in-out infinite; }

@keyframes bar1 { 0%,100%{height:14px} 50%{height:32px} }
@keyframes bar2 { 0%,100%{height:32px} 35%{height:12px} 70%{height:40px} }
@keyframes bar3 { 0%,100%{height:22px} 40%{height:10px} 75%{height:36px} }
@keyframes bar4 { 0%,100%{height:36px} 25%{height:18px} 60%{height:40px} }
@keyframes bar5 { 0%,100%{height:18px} 55%{height:38px} }

.w-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.w-play {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(124,58,237,0.38);
}
.w-vol {
  flex: 1; height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
}
.w-vol span {
  display: block; width: 62%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-l));
}

/* FEATURES */
.features {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
  padding: 64px 0 56px;
}

.features-intro {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 16px;
}

.features-intro h2, .download-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.8vw, 76px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
}
.features-intro h2 em, .download-cta h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-ll);
}

.section-sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 300;
}

/* Feature list — tipografica, niente card */
.feat-list {
  border-top: 1px solid var(--line);
}

.feat-row {
  display: grid;
  grid-template-columns: 52px 1fr 1.5fr 24px;
  gap: 0 40px;
  align-items: center;
  padding: 30px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  cursor: default;
  /* entrance */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.22s;
}
.feat-row:nth-child(2) { transition-delay: 0.07s; }
.feat-row:nth-child(3) { transition-delay: 0.14s; }
.feat-row:nth-child(4) { transition-delay: 0.21s; }
.feat-row.visible { opacity: 1; transform: translateY(0); }
.feat-row:hover {
  background: rgba(180,160,255,0.04);
  border-bottom-color: transparent;
}
.feat-row:hover .feat-arrow { opacity: 1; transform: translateX(0); }

.feat-idx {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-l);
  opacity: 0.5;
  letter-spacing: 0.03em;
  user-select: none;
}

.feat-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
  line-height: 1.2;
}

.feat-body {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 300;
}

.feat-arrow {
  color: var(--accent-l);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

/* ── INSTALL SECTION ── */
.install-section {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.install-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.install-section-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-section-text h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 72px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}
.install-section-text h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-ll);
}

.install-section-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  font-weight: 300;
  max-width: 28rem;
}

/* Terminal window */
.terminal-window {
  border-radius: 14px;
  overflow: hidden;
  background: #0d0e1a;
  border: 1px solid rgba(180,160,255,0.16);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 24px 64px rgba(0,0,0,0.55),
    0 0 48px rgba(124,58,237,0.12);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 16px;
  background: #17182a;
  border-bottom: 1px solid rgba(180,160,255,0.10);
  position: relative;
}

.t-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-right: 12px;
}
.t-red    { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.t-yellow { width: 12px; height: 12px; border-radius: 50%; background: #febc2f; }
.t-green  { width: 12px; height: 12px; border-radius: 50%; background: #28c840; }

.t-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: rgba(240,238,255,0.30);
  letter-spacing: -0.01em;
  pointer-events: none;
}

.t-copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(180,160,255,0.15);
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.t-copy-btn:hover { color: var(--text-2); border-color: var(--accent-l); background: rgba(124,58,237,0.10); }
.t-copy-btn.copied { color: #4ade80; border-color: rgba(74,222,128,0.3); }

.terminal-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.terminal-line.prev { opacity: 0.35; }
.terminal-line.active { opacity: 1; }
.terminal-line.output { margin-top: 4px; }

.t-prompt {
  color: var(--accent-l);
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
}
.t-prompt::before {
  content: '~/';
  opacity: 0.45;
  font-weight: 400;
}

.t-cmd-prev {
  color: rgba(240,238,255,0.28);
}

.t-cmd {
  color: #c4b5fd;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  user-select: all;
}

.t-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--accent-l);
  border-radius: 2px;
  opacity: 0.85;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0; }
}

.t-output-line {
  font-size: 13px;
}
.t-output-line.success {
  color: #4ade80;
}
.t-output-line.muted {
  color: rgba(240,238,255,0.28);
}

/* DOWNLOAD CTA */
.download-cta {
  margin: 0 auto 56px;
  width: min(1160px, 100% - 48px);
}

.dl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.dl-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,160,255,0.35), transparent);
}

.dl-inner .section-label { margin-bottom: 20px; }

.dl-inner h2 {
  margin-bottom: 18px;
}

.dl-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 32rem;
}

.dl-stripe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.15s;
}
.dl-stripe:hover { color: var(--text-2); }

/* FOOTER */
.site-footer {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}
.site-footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .feat-row { grid-template-columns: 48px 1fr; gap: 0 28px; }
  .feat-body { grid-column: 2; }
  .feat-arrow { display: none; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 80px 0 60px;
    gap: 56px;
  }
  .hero h1 { font-size: clamp(44px, 12vw, 64px); }
  .hero-visual { order: -1; }
  .widget-card { width: min(100%, 360px); }
  .dl-inner { padding: 60px 28px; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; }
  .feat-row {
    grid-template-columns: 1fr;
    gap: 8px 0;
    padding: 28px 0;
  }
  .feat-idx { margin-bottom: 2px; }
  .feat-body { max-width: 100%; }
  .install-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .install-section-text h2 { font-size: clamp(36px, 10vw, 52px); }
}

@media (max-width: 520px) {
  .site-header { padding: 16px 20px; }
  .header-nav { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ── Accessibility: skip link ── */
a.skip-link {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 14px; background: #fff; color: #111;
  border-radius: 12px; z-index: 1000; font-size: 14px;
  transition: top 0.1s;
}
a.skip-link:focus { top: 16px; }
