/* Arete landing page. Tokens mirror lib/core/theme. */

:root {
  --primary: #3b4ce0;
  --primary-dark: #2a37b0;
  --secondary: #6c63ff;
  --background: #f7f8fc;
  --surface: #ffffff;
  --surface-muted: #f1f2f8;
  --text: #1b1d29;
  --text-secondary: #6b6e85;
  --text-on-primary: #ffffff;
  --border: #e7e8f0;
  --accent-pink: #f3d8f0;
  --accent-pink-text: #9b4f96;
  --accent-mint: #d7efe3;
  --accent-mint-text: #2e8b6e;
  --accent-blue: #d9e4fb;
  --accent-blue-text: #3b4ce0;
  --accent-gold: #f6e7c8;
  --accent-gold-text: #b8860b;
  --navy: #1b2a4e;
  --gold: #c9a961;
  --cream: #f5efe4;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --radius-card: 24px;
  --radius-input: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.04);
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-dark);
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -40px;
  background: var(--surface);
  color: var(--text);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-pill);
  z-index: 20;
}

.skip-link:focus {
  top: var(--space-8);
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  padding: 0 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-inner {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 16px;
  background: rgba(247, 248, 252, 0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.section-follow {
  margin-top: var(--space-48);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  flex: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle {
  position: relative;
  z-index: 21;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 500ms var(--ease-out), opacity 300ms var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: var(--space-8);
  padding: 0 0 var(--space-16);
}

.nav-panel.is-open {
  display: flex;
}

.nav-panel a:not(.store-btn) {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 0;
}

.nav-panel .store-btn {
  margin-top: 8px;
  align-self: flex-start;
}

.hero {
  padding: var(--space-32) 0 var(--space-48);
}

.hero-grid,
.split,
.step-list,
.card-grid,
.price-grid {
  display: grid;
  gap: var(--space-24);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-grid + .note {
  margin-top: var(--space-24);
}

.eyebrow {
  margin: 0 0 var(--space-12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

h1,
h2,
h3,
.btn,
.brand,
.price,
.range {
  font-family: var(--font-display);
}

h1 {
  margin: 0 0 16px;
  max-width: 680px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0 0 12px;
  max-width: 680px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 var(--space-8);
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-16);
}

.lede {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  max-width: 680px;
}

.section {
  padding: var(--space-48) 0;
}

.section-head {
  margin-bottom: var(--space-32);
  max-width: 40rem;
}

.status-chip,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.status-chip {
  background: var(--accent-gold);
  color: var(--accent-gold-text);
  margin-bottom: var(--space-24);
}

.tag-mint {
  background: var(--accent-mint);
  color: var(--accent-mint-text);
}

.tag-blue {
  background: var(--accent-blue);
  color: var(--accent-blue-text);
}

.tag-gold {
  background: var(--accent-gold);
  color: var(--accent-gold-text);
}

.tag-pink {
  background: var(--accent-pink);
  color: var(--accent-pink-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-on-primary);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: var(--primary-dark);
}

a.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  padding: 8px 16px 8px 12px;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 500ms var(--ease-out), background-color 300ms var(--ease-out);
}

a.store-btn:hover {
  background: #181818;
  color: #ffffff;
  transform: translateY(-1px);
}

a.store-btn:active {
  transform: scale(0.98);
}

a.store-btn-light {
  background: #ffffff;
  color: #000000;
}

a.store-btn-light:hover {
  background: #f7f8fc;
  color: #000000;
}

a.store-btn-compact {
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
}

.store-btn img {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}

.store-btn-compact img {
  width: 22px;
  height: 22px;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.store-btn-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.store-btn-compact .store-btn-name {
  font-size: 14px;
  line-height: 20px;
}

.cta-row {
  margin: 0 0 16px;
}

.btn-block {
  width: 100%;
}

.text-link {
  font-weight: 600;
}

.card,
.device,
.faq-item,
.price-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card,
.price-card {
  padding: var(--space-24);
}

.card p:last-child,
.price-card p:last-child {
  margin-bottom: 0;
}

.card h3 + p,
.muted {
  color: var(--text-secondary);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  align-items: start;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--text-on-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.device {
  padding: var(--space-16);
}

.device-kicker {
  margin: 0 0 var(--space-8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.range {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.disclaimer {
  margin: var(--space-8) 0 var(--space-16);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}

.criterion {
  border-radius: 16px;
  padding: var(--space-12) var(--space-16);
}

.criterion p {
  margin: var(--space-4) 0 0;
  font-size: 0.875rem;
}

.criterion-blue { background: var(--accent-blue); color: var(--accent-blue-text); }
.criterion-mint { background: var(--accent-mint); color: var(--accent-mint-text); }
.criterion-gold { background: var(--accent-gold); color: var(--accent-gold-text); }
.criterion-pink { background: var(--accent-pink); color: var(--accent-pink-text); }

.criterion strong {
  display: block;
  font-size: 0.8125rem;
}

.quote {
  margin: var(--space-16) 0 0;
  padding: var(--space-12) var(--space-16);
  border-left: 3px solid var(--primary);
  background: var(--surface-muted);
  border-radius: 0 16px 16px 0;
  color: var(--text);
  font-size: 0.9375rem;
}

figcaption,
.note {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: var(--space-12);
}

.form-card {
  padding: var(--space-24);
  margin-top: var(--space-8);
}

.form-card h2 {
  font-size: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.field {
  margin-bottom: var(--space-16);
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-input);
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.check {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9375rem;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form-status {
  margin-top: var(--space-12);
  color: var(--text);
  font-size: 0.9375rem;
}

.price {
  margin: 0 0 var(--space-8);
  font-size: 1.75rem;
  font-weight: 700;
}

.price span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.price-card ul,
.plain-list {
  margin: 0 0 var(--space-16);
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.price-card li + li,
.plain-list li + li {
  margin-top: var(--space-8);
}

.price-card .btn {
  width: 100%;
}

.featured {
  border-color: var(--primary);
}

.faq-list {
  display: grid;
  gap: var(--space-12);
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-16) var(--space-24);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary-dark);
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .answer {
  padding: 0 var(--space-24) var(--space-16);
  color: var(--text-secondary);
}

.faq-item .answer p:last-child {
  margin-bottom: 0;
}

.final-cta {
  padding-bottom: var(--space-48);
}

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-48) 0 var(--space-32);
}

.site-footer a {
  color: var(--cream);
}

.site-footer a.store-btn,
.site-footer a.store-btn:hover,
.site-footer a.store-btn-light,
.site-footer a.store-btn-light:hover {
  color: #000000;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  gap: var(--space-24);
}

.footer-brand {
  display: flex;
  gap: var(--space-16);
  align-items: center;
}

.footer-brand .logo-mark {
  width: 72px;
  height: 72px;
  background: #fff;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12) var(--space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
}

.fine-print {
  margin: var(--space-24) 0 0;
  color: rgba(245, 239, 228, 0.82);
  font-size: 0.875rem;
}

.page-main {
  padding: var(--space-32) 0 var(--space-48);
}

.page-main h1 {
  font-size: 30px;
  line-height: 36px;
}

@media (max-width: 767px) {
  body.nav-open .header-inner {
    backdrop-filter: none;
  }

  .nav-panel.is-open {
    position: fixed;
    inset: 0;
    z-index: 19;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 96px 24px 32px;
    background: rgba(247, 248, 252, 0.96);
    backdrop-filter: blur(20px);
    overflow: auto;
  }

  .nav-panel.is-open a:not(.store-btn),
  .nav-panel.is-open .store-btn {
    animation: nav-in 500ms var(--ease-out) both;
  }

  .nav-panel.is-open a:nth-child(2) { animation-delay: 60ms; }
  .nav-panel.is-open a:nth-child(3) { animation-delay: 120ms; }
  .nav-panel.is-open a:nth-child(4) { animation-delay: 180ms; }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tagline {
  padding: 64px 0;
}

.tagline-copy {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  text-wrap: balance;
}

.word {
  color: rgba(27, 29, 41, 0.3);
  transition: color 500ms var(--ease-out);
}

.word.is-on {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-panel {
    display: flex;
    position: static;
    inset: auto;
    flex-basis: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .nav-panel a:not(.store-btn) {
    padding: 0;
  }

  .nav-panel .store-btn {
    margin-top: 0;
  }

  .card-grid,
  .step-list {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 48px;
    line-height: 48px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .nav-panel {
    flex-basis: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  h1 {
    font-size: 36px;
    line-height: 40px;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: start;
    gap: var(--space-48);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 64px 0;
  }
}

@media (min-width: 960px) {
  h1 {
    font-size: 60px;
    line-height: 60px;
  }

  .tagline-copy {
    font-size: 48px;
    line-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .word {
    color: var(--text);
    transition: none;
  }

  .reveal,
  .nav-panel.is-open a {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
