/* =========================================================================
   Perch — landing page styles
   One accent (terracotta). Hairlines + whitespace do the structural work.
   No heavy shadows, no gradients, no glassmorphism, no second accent.
   ========================================================================= */

:root {
  /* Palette (use exactly) */
  --cream:      #F0EEE5;
  --white:      #FFFFFF;
  --ink:        #1F1E1D;
  --secondary:  #6E6B64;
  --hairline:   #E3DFD6;
  --accent:     #D97757; /* terracotta — CTAs, checks, tiny labels only */
  --accent-ink: #B85E42; /* darker terracotta for hover only */
  --dark-card:  #30302E;

  /* Type */
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  /* Barely-there elevation */
  --lift: 0 1px 2px rgba(31, 30, 29, 0.04);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` prevents horizontal overflow WITHOUT turning <body> into a scroll
     container (which `hidden` does), so normal page scrolling stays on the viewport. */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- shared type ---------- */
.serif { font-family: var(--serif); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.lead {
  color: var(--secondary);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.55;
  margin: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(44px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(26px, 3.5vw, 40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); }
.section-head p { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 550;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(31,30,29,0.02); }

.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

.btn:disabled { opacity: 0.6; cursor: progress; }

.cta-meta {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--secondary);
}
.reassure {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--secondary);
  max-width: 42ch;
}
.cta-meta .dot { opacity: 0.5; padding: 0 6px; }
.plat { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.plat + .plat { margin-left: 16px; }
.plat-ico { display: block; opacity: 0.85; }
.plat-soon { color: var(--secondary); }
.soon-tag {
  margin-left: 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; background: var(--hairline); color: var(--secondary);
  padding: 2px 6px; border-radius: var(--pill);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(240, 238, 229, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark svg { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a.link {
  font-size: 15px;
  color: var(--secondary);
  transition: color .15s ease;
}
.nav-links a.link:hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }

/* Language switcher — a native <select> (best mobile UX): a compact pill with a chevron. */
.lang-select {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  color: var(--secondary);
  background-color: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  padding: 7px 26px 7px 12px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%236E6B64' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: color .15s ease, border-color .15s ease;
}
.lang-select:hover { color: var(--ink); border-color: var(--secondary); }
.footer-legal .lang-select { margin-left: auto; }
@media (max-width: 720px) {
  .nav-links .link { display: none; }
  .nav-links { gap: 8px; }
  .lang-select { font-size: 12px; padding: 6px 22px 6px 10px; }
  .nav-cta { margin-left: 0; padding: 8px 14px; font-size: 13px; }
  .wrap.nav-inner { padding-left: 16px; padding-right: 16px; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px);
  letter-spacing: -0.025em;
}
.hero .lead { margin-top: 24px; max-width: 30ch; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual { min-width: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .lead { max-width: 44ch; }
}

/* Mobile: stack the hero/final CTAs full-width and let long localized labels wrap inside the
   button (buttons are `white-space: nowrap` by default, which would otherwise force horizontal
   overflow for longer languages like German). */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; white-space: normal; }
}

/* ---------- app window chrome (product visual) ---------- */
.window {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--lift);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  background: #FBFAF6;
}
.traffic { display: flex; gap: 7px; }
.traffic i {
  width: 11px; height: 11px; border-radius: 50%;
  display: block;
  background: #E3DFD6;
}
.window-title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--secondary);
  letter-spacing: -0.01em;
}
.window-body { padding: 10px; }

/* Real-screenshot window: seamless cream titlebar, image fills the body. */
.window.shot { background: var(--cream); }
.window.shot .window-bar { background: var(--cream); border-bottom-color: transparent; height: 38px; }
.window.shot .window-body { padding: 0; }
.app-shot { display: block; width: 100%; height: auto; }
/* A gentle entrance + idle float for the hero window. */
.hero-window { animation: shot-in .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* Scroll-reveal — subtle fade + rise as sections enter the viewport. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-window { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* account rows */
.acct {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease;
}
.acct + .acct { border-top: 1px solid var(--hairline); }
.acct:hover { background: #FBFAF6; }
.acct.is-active { background: #FAF4F1; }

.badge {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.acct-text { min-width: 0; flex: 1; }
.acct-name {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-sub {
  font-size: 13px;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--secondary);
}
.run-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3E9E62;
  box-shadow: 0 0 0 3px rgba(62, 158, 98, 0.16);
}
.kbd-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--secondary);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2px 7px;
  background: #fff;
}
.acct-add {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  border-top: 1px dashed var(--hairline);
  color: var(--secondary);
  font-size: 14.5px;
}
.acct-add .plus {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px dashed var(--hairline);
  display: grid; place-items: center;
  font-size: 20px; line-height: 1;
  color: var(--secondary);
}

/* screenshot drop-in helper */
.shot-slot { display: none; }

/* ---------- keystroke band ---------- */
.keystroke {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
/* Labeled account chips — instantly readable "these are separate logins". */
.acct-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 34px;
}
.acct-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  padding: 9px 15px;
  box-shadow: var(--lift);
  animation: chip-float 4.5s ease-in-out infinite;
}
.acct-chip:nth-child(2) { animation-delay: .5s; }
.acct-chip:nth-child(3) { animation-delay: 1s; }
.acct-chip:nth-child(4) { animation-delay: 1.5s; }
.acct-chip .chip-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
@keyframes chip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .acct-chip { animation: none; } }
.keystroke h2 { font-size: clamp(30px, 4.6vw, 48px); }
.keystroke p { margin: 20px auto 0; max-width: 46ch; }

/* ---------- how-it-works: every app open at once ---------- */
.howit { max-width: 760px; margin-inline: auto; }
.how-sub { color: var(--secondary); font-size: clamp(16px, 2vw, 18px); margin: 16px auto 0; }

/* the launcher (left) opening the account windows (right) */
.launch-scene {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  margin: clamp(40px, 5vw, 60px) auto 0; max-width: 860px;
}
.perch-panel {
  flex: none; width: 256px;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 54px -22px rgba(31, 30, 29, .26);
}
.pp-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--hairline); background: #FBFAF6; }
.pp-bar .traffic i { width: 7px; height: 7px; }
.pp-title { font-family: var(--serif); font-size: 13.5px; color: var(--ink); }
.pp-list { padding: 6px; }
.pp-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.pp-row img { border-radius: 6px; flex: none; }
.pp-name { display: flex; flex-direction: column; line-height: 1.2; }
.pp-name b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pp-name small { font-size: 10px; color: var(--secondary); }
.pp-openall {
  display: block; margin: 2px 10px 12px; text-align: center;
  background: var(--accent); color: #fff; border-radius: var(--pill);
  padding: 9px; font-size: 12.5px; font-weight: 600;
  animation: pp-glow 3.4s ease-in-out infinite;
}
@keyframes pp-glow {
  0%, 72%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0); }
  84% { box-shadow: 0 0 0 6px rgba(217, 119, 87, .2); }
}
.opened { position: relative; flex: none; width: 300px; height: 250px; }
.owin {
  position: absolute; width: 216px; border-radius: 12px; overflow: hidden;
  background: var(--white); border: 1px solid var(--hairline);
  box-shadow: 0 16px 38px -16px rgba(31, 30, 29, .24);
}
.owin .mini-body { min-height: 58px; padding: 10px; }
.owin-a { top: 0; left: 6px; z-index: 3; }
.owin-b { top: 66px; left: 66px; z-index: 2; }
.owin-c { top: 132px; left: 26px; z-index: 1; }

/* Each window flips between its two accounts on a loop (crossfade), staggered per window,
   so the deck visibly cycles through multiple Claude / Cursor / Codex logins. */
.owin-face {
  animation: owin-face 6.4s ease-in-out infinite;
  animation-delay: calc(var(--stagger, 0) * -0.9s);
}
.owin-face:not(:first-child) { position: absolute; inset: 0; }
.owin-face:nth-child(2) { animation-delay: calc(var(--stagger, 0) * -0.9s - 3.2s); }
@keyframes owin-face {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

.mini-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-bottom: 1px solid var(--hairline); background: #FBFAF6;
}
.mini-bar .traffic i { width: 6px; height: 6px; }
.mini-ico { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.mini-acct { font-size: 10px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body { padding: 12px; min-height: 84px; display: flex; flex-direction: column; gap: 6px; }
.bubble { font-size: 10.5px; line-height: 1.35; border-radius: 9px; padding: 6px 9px; max-width: 90%; }
.bubble.you { background: var(--cream); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 3px; }
.bubble.ai { background: #F4EBE6; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 3px; }

.mini-dark { background: var(--dark-card); border-color: #3a3a37; }
.mini-dark .mini-bar { background: #2a2a28; border-color: #3a3a37; }
.mini-dark .mini-acct { color: #b9b6ae; }
.mini-dark .traffic i { background: #55534f; }
.mini-body.code { font-family: var(--mono); font-size: 10.5px; line-height: 1.75; color: #d7d4cc; }
.mini-body.code .ln { white-space: pre; }
.mini-body.code .ln.in { padding-left: 14px; }
.mini-body.code .ln em { color: var(--accent); font-style: normal; }
.mini-body.code .ln.dim { color: #7fb184; }

@media (max-width: 720px) {
  .launch-scene { flex-direction: column; gap: 22px; }
  .perch-panel { width: 264px; }
  .opened { width: 288px; height: 244px; }
}
@media (prefers-reduced-motion: reduce) {
  .owin-face { animation: none; }
  .owin-face:not(:first-child) { display: none; } /* show one account per window, no flip */
  .pp-openall { animation: none; }
}
.keystroke .combo {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  padding: 8px 18px;
  background: var(--cream);
}
.keystroke .combo b { color: var(--ink); font-weight: 600; }

/* ---------- problem strip ---------- */
.strip { background: var(--cream); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 44px);
  text-align: center;
}
/* Each benefit icon sits in a soft white chip — smaller icon, a little structure so the
   section doesn't read plain. */
.strip-chip {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(31, 30, 29, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.strip-ico {
  display: block;
  width: 26px;
  height: 24px;
  color: var(--accent);
}
.strip-item .no {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.strip-item p { margin: 10px 0 0; color: var(--secondary); font-size: 15px; }
@media (max-width: 720px) {
  .strip-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--white);
  padding: clamp(24px, 3vw, 34px);
}
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-label .ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #FAF1ED;
  display: grid; place-items: center;
  color: var(--accent);
}
.feature-label .ico svg { display: block; }
.feature h3 { font-size: 21px; margin-bottom: 9px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.55; }

@media (max-width: 860px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- showcase ---------- */
.showcase { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.showcase h2 { font-size: clamp(28px, 4vw, 42px); }
.showcase p { margin-top: 20px; }
.showcase .window-bar { background: #F7F5F0; }
.showcase .acct:hover { background: #F7F5F0; }
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- pricing ---------- */
.pricing { background: var(--cream); }
.price-card {
  max-width: 460px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--lift);
  padding: clamp(30px, 5vw, 46px);
  text-align: center;
}
.price-card .name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(64px, 12vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 12px 0 6px;
}
.price-amount .cur { font-size: 0.5em; vertical-align: 0.42em; color: var(--secondary); font-weight: 500; }
.price-forever { color: var(--secondary); font-size: 15.5px; margin: 0; }

.price-list {
  list-style: none;
  margin: 30px 0;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  display: grid;
  gap: 14px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.45;
}
.check {
  flex: none;
  margin-top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #FAF1ED;
  color: var(--accent);
  display: grid; place-items: center;
}
.check svg { display: block; }

.price-fine { display: grid; gap: 8px; margin-bottom: 26px; }
.price-fine .line { font-size: 14px; color: var(--secondary); }
.price-fine .line strong { color: var(--ink); font-weight: 600; }

.price-card .btn-primary { width: 100%; }
.price-card .buy-sub { margin-top: 14px; font-size: 13.5px; color: var(--secondary); }
.price-card .buy-sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.price-card .guarantee {
  margin-top: 18px;
  font-size: 13px;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.price-card .guarantee svg { color: var(--accent); flex: none; }

/* ---------- download ---------- */
.download { background: var(--cream); border-top: 1px solid var(--hairline); }
.download-sub { color: var(--secondary); font-size: 15.5px; margin-top: 10px; }
.download-note {
  max-width: 60ch;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--secondary);
}
.download-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.download-rows {
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 22px;
}
.download-row .plat { display: flex; align-items: center; gap: 13px; }
.download-row .plat-ico {
  width: 26px;
  height: 26px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 1;
}
.download-row .plat-text { display: flex; flex-direction: column; line-height: 1.3; }
.download-row .plat-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.download-row .plat-meta { font-size: 12.5px; color: var(--secondary); margin-top: 1px; }

@media (max-width: 480px) {
  .download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    text-align: center;
  }
  .download-row .plat { justify-content: center; }
  .download-row .btn { width: 100%; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--hairline); }
.faq-list { max-width: 760px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 18px;
  font-weight: 550;
  color: var(--ink);
  font-family: var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--serif); letter-spacing: -0.01em; }
.faq summary .chev {
  flex: none;
  width: 22px; height: 22px;
  color: var(--secondary);
  transition: transform .2s ease, color .2s ease;
}
.faq details[open] summary .chev { transform: rotate(45deg); color: var(--accent); }
.faq details p {
  margin: 0;
  padding: 0 4px 26px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.62;
  max-width: 66ch;
}

/* ---------- final CTA ---------- */
.final { background: var(--cream); text-align: center; }
.final h2 { font-size: clamp(34px, 5.4vw, 56px); }
.final p { margin: 20px auto 32px; max-width: 42ch; }
.final-ctas { justify-content: center; margin-top: 0; margin-bottom: 22px; }

/* ---------- footer ---------- */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  padding-block: 54px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.footer-nav a {
  font-size: 14.5px;
  color: var(--secondary);
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--ink); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}
.footer-legal a { font-size: 13px; color: var(--secondary); }
.footer-legal a:hover { color: var(--ink); }
.footer-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--secondary);
}
.footer-disclaimer {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--secondary);
  opacity: 0.82;
  max-width: 80ch;
}

/* ---------- legal pages (terms / privacy / refunds) ---------- */
.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 720px; }
.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 14px;
}
.legal .updated {
  font-size: 13px;
  color: var(--secondary);
  margin: 0 0 clamp(32px, 5vw, 48px);
}
.legal h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--hairline);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p {
  color: var(--secondary);
  line-height: 1.65;
  margin: 14px 0 0;
}
.legal ul {
  color: var(--secondary);
  line-height: 1.65;
  margin: 14px 0 0;
  padding-left: 22px;
}
.legal li { margin-top: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-ink); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  color: var(--secondary);
  margin-bottom: clamp(28px, 4vw, 40px);
  transition: color .15s ease;
}
.legal .back-home:hover { color: var(--ink); }

/* ---------- success page ---------- */
.success-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
}
.success-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--lift);
  padding: clamp(30px, 6vw, 48px);
  text-align: center;
}
.success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #FAF1ED;
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 22px;
}
.success-card h1 { font-size: clamp(26px, 4vw, 34px); }
.success-card .sub { color: var(--secondary); margin-top: 12px; }

.spinner {
  width: 34px; height: 34px;
  margin: 0 auto 22px;
  border: 3px solid var(--hairline);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.license-box {
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 8px 8px 8px 18px;
}
.license-key {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(15px, 3.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 0;
}
.copy-btn {
  flex: none;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

.success-actions { margin-top: 24px; display: grid; gap: 12px; }
.success-actions .btn { width: 100%; }
.success-note { margin-top: 20px; font-size: 13.5px; color: var(--secondary); }
.success-error { color: var(--accent-ink); }

.hidden { display: none !important; }

/* problem-strip intro */
.strip-intro {
  max-width: 740px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.34;
  color: var(--ink);
}

/* success page — activation steps */
.success-steps {
  text-align: left;
  max-width: 400px;
  margin: 22px auto 8px;
  padding-left: 20px;
  color: var(--secondary);
  font-size: 13.5px;
  line-height: 1.6;
}
.success-steps li { margin: 6px 0; }
.success-steps strong { color: var(--ink); font-weight: 600; }

/* success page — re-send email link-button */
.linkbtn {
  background: none; border: 0; padding: 0; margin-left: 4px;
  color: var(--accent-ink); font: inherit; text-decoration: underline; cursor: pointer;
}
.linkbtn:hover { color: var(--accent); }
.linkbtn:disabled { opacity: .5; cursor: default; text-decoration: none; }
.resend-msg { color: var(--secondary); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
