/* AgentRidge × Framer aesthetic
   Adapted from https://www.framer.com/ — black canvas, white pills, stacked hero, glowing product frames
*/

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-soft: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --mute: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.4);
  --white: #ffffff;
  --black: #000000;
  --glow: rgba(80, 140, 255, 0.45);
  --glow-soft: rgba(90, 150, 255, 0.22);
  --ok: #3dd68c;
  --warn: #e8c547;
  --danger: #ff6b6b;
  --link: #8eb6ff;

  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: min(1120px, calc(100% - 48px));
  --container-wide: min(1280px, calc(100% - 40px));
  --header-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mute);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: rgba(255,255,255,0.2); color: var(--white); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.container { width: var(--container); margin-inline: auto; }
.container-wide { width: var(--container-wide); margin-inline: auto; }

/* —— Header (Framer: logo | Log in | Sign up pill | hamburger) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
}
.site-header .inner {
  width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand-name .a, .brand-name .r { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lang-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--soft);
  padding: 0.35rem 0.25rem;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.lang-link:hover {
  opacity: 1;
  color: var(--text);
}
.header-actions .link-quiet {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0.55rem;
  opacity: 0.85;
}
.header-actions .link-quiet:hover { opacity: 1; }

.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text);
  position: relative;
  z-index: 260;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 3.5px 0;
  border-radius: 1px;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}
.menu-toggle span {
  transition: transform 0.2s var(--ease);
}

.nav {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 12px;
  left: auto;
  width: min(360px, calc(100vw - 24px));
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 250;
}
.nav.open { display: flex; }
.nav a {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: var(--mute);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--text);
}
.nav a.btn {
  color: inherit;
}
.nav a.btn-primary {
  background: var(--white);
  color: var(--black);
}
.nav a.btn-primary:hover {
  background: #f0f0f0;
  color: var(--black);
}
.nav a.btn-ghost {
  color: var(--text);
}
.nav a.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

/* —— Buttons Framer —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: transform 0.15s var(--ease), opacity 0.15s, background 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: scale(1.02); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { background: #f0f0f0; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-soft {
  background: var(--bg-soft);
  color: var(--text);
}
.btn-block { width: 100%; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn[disabled], .btn.is-loading { opacity: 0.45; pointer-events: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--soft);
  margin-bottom: 1rem;
}

/* —— Hero Framer stack —— */
.hero {
  padding: 72px 0 32px;
}
.hero-copy {
  max-width: 640px;
  margin-bottom: 48px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 1.35rem;
  color: var(--text);
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--mute);
  max-width: 42ch;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--soft);
}
.hero-meta strong { color: var(--text); font-weight: 600; }

.hero-visual {
  margin-top: 8px;
}
.shot-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid rgba(120, 170, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(80, 140, 255, 0.12),
    0 0 60px var(--glow-soft),
    0 40px 100px rgba(0, 0, 0, 0.65);
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
}
.shot-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.shot-chrome span {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--soft);
  font-family: var(--font-mono);
}
.shot-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: #080808;
}

/* —— Sections —— */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-head p {
  font-size: 1.1rem;
  color: var(--mute);
  max-width: 48ch;
}

.arch-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.arch-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.arch-card .n {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.arch-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.arch-card p { font-size: 0.95rem; color: var(--mute); }

.feature-row {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 12px;
}
.feature-copy p { margin-bottom: 16px; }
.feature-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--mute);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.price-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card.featured {
  border-color: rgba(255,255,255,0.28);
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  box-shadow: 0 0 40px var(--glow-soft);
  position: relative;
}
.price-card.featured::before {
  content: "Recommandé";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.25rem; font-weight: 500; }
.price-amount {
  font-size: 2.75rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.price-amount small {
  font-size: 1rem;
  color: var(--mute);
  font-weight: 500;
}
.price-card ul { flex: 1; }
.price-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--mute);
}
.price-card li:last-child { border-bottom: none; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs th {
  width: 34%;
  color: var(--soft);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.specs td { color: var(--text); }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dl-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.dl-card h3 { margin-bottom: 6px; font-weight: 500; }
.dl-card p { font-size: 0.9rem; margin-bottom: 12px; }
.dl-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--soft);
  margin-bottom: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.28);
  background: #0c0c0c;
  box-shadow:
    0 0 0 1px rgba(80, 140, 255, 0.1),
    0 0 50px var(--glow-soft),
    0 24px 60px rgba(0, 0, 0, 0.55);
}
.gallery-item:hover {
  border-color: rgba(140, 180, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(80, 140, 255, 0.2),
    0 0 70px var(--glow),
    0 28px 70px rgba(0, 0, 0, 0.6);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #080808;
}
.gallery-item figcaption {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.gallery-item figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}
.gallery-item figcaption span {
  display: block;
  color: var(--mute);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.gallery-filters button {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 600;
}
.gallery-filters button.active,
.gallery-filters button:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.cases { display: flex; flex-wrap: wrap; gap: 8px; }
.case-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 12px;
  border-radius: var(--pill);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--mute);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--soft);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 20px 18px;
  font-size: 0.95rem;
}

.cta-band {
  text-align: left;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.cta-band h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
}
.cta-band p { margin-bottom: 24px; max-width: 40rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.page-hero { padding: 72px 0 24px; }
.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 14px;
}
.page-hero p { max-width: 48ch; font-size: 1.1rem; }

.panel-box {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 12px;
}
.panel-box h2 { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.panel-box p { font-size: 0.92rem; margin-bottom: 12px; }

/* —— Footer —— */
.site-footer {
  margin-top: 48px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 32ch; color: var(--mute); }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--mute);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--soft);
}

/* —— Auth —— */
.auth-shell, .app-login {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: var(--bg);
}
.app-login { min-height: 100vh; }
.auth-wrap {
  width: min(420px, 100%);
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-card {
  width: 100%;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px var(--glow-soft);
}
.auth-card h1 {
  font-size: 1.65rem;
  font-weight: 500;
  margin: 12px 0 8px;
}
.auth-card .sub { font-size: 0.9rem; margin-bottom: 20px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.auth-tab {
  min-height: 40px;
  border-radius: 10px;
  color: var(--mute);
  font-weight: 600;
  font-size: 0.88rem;
}
.auth-tab.active {
  background: var(--white);
  color: var(--black);
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
}
.field input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.field input::placeholder { color: rgba(255,255,255,0.38); }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  margin: 14px 0 18px;
  color: var(--mute);
}
.check input {
  margin-top: 2px;
  accent-color: var(--white);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check a:hover { opacity: 0.85; }
#panel-signup .btn-block,
#panel-signin .btn-block {
  margin-top: 4px;
}
.auth-msg {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  display: none;
}
.auth-msg.show { display: block; }
.auth-msg.error {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.35);
  color: #ffb4b4;
}
.auth-msg.ok {
  background: rgba(61,214,140,0.1);
  border: 1px solid rgba(61,214,140,0.3);
  color: #9aecc0;
}
.auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.app-login-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--soft);
}
.app-login-foot a { color: var(--text); font-weight: 600; }

/* —— Dashboard app (dark Framer) —— */
body.app-shell { background: var(--bg); color: var(--mute); }
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.app-side {
  background: var(--bg-elevated);
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-side .brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  padding: 0 8px;
  margin-top: -12px;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 500;
}
.app-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.app-nav a.active {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
}
.app-user {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.app-user .email {
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 4px;
  font-weight: 600;
}
.app-user .tier {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}
.app-user .tier.trial { color: var(--warn); }

.app-main {
  background: var(--bg);
  padding: 28px 28px 48px;
  min-width: 0;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.app-topbar h1 { font-size: 1.5rem; font-weight: 500; }
.app-topbar .hint { font-size: 0.9rem; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric {
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.metric .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 8px;
}
.metric .value {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}
.metric .hint { font-size: 0.8rem; margin-top: 4px; }

.status-box {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.08);
  color: var(--warn);
  font-size: 0.88rem;
  margin-bottom: 16px;
  font-weight: 500;
}
.status-box.pro {
  border-color: rgba(142, 182, 255, 0.35);
  background: rgba(142, 182, 255, 0.08);
  color: var(--link);
}

.usage-chart {
  height: 160px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.usage-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.usage-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ok);
  font-weight: 600;
}

.legal { max-width: 760px; padding: 48px 0 80px; }
.legal h1 { margin-bottom: 12px; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.legal .legal-updated { font-size: 0.85rem; color: var(--soft); margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 12px; font-weight: 500; color: var(--text); }
.legal h3 { font-size: 1rem; margin: 20px 0 8px; font-weight: 600; color: var(--text); }
.legal p, .legal li { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.65; color: var(--mute); }
.legal ul, .legal ol { list-style: disc; padding-left: 1.25rem; margin-bottom: 12px; }
.legal ol { list-style: decimal; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .legal-box {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
}
.legal .legal-box p:last-child { margin-bottom: 0; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
/* Above-the-fold always visible (Framer-like instant paint) */
.hero .reveal,
.page-hero.reveal,
.page-hero .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .arch-grid, .price-grid, .dl-cards, .gallery, .metric-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app { grid-template-columns: 1fr; }
  .app-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .app-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .app-user { margin-top: 0; width: 100%; }
}
@media (max-width: 820px) {
  .arch-grid, .price-grid, .dl-cards, .gallery, .metric-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 48px; }
  .cta-band { padding: 32px 24px; }
  .feature-row { gap: 24px; margin-bottom: 48px; }
}
@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1.2fr;
  }
  .feature-row.reverse {
    grid-template-columns: 1.2fr 1fr;
  }
  .feature-row.reverse .feature-copy { order: 2; }
}
