/* ============================================================
   Terraliti — Pricing page
============================================================ */

:root {
  --bg: #050505;
  --surface: #070707;
  --surface-2: #0a0a0a;
  --line: #1e1e1e;
  --line-soft: #151515;
  --line-strong: #303030;
  --text: #ededeb;
  --body: #b0b0b0;
  --muted: #888;
  --dim: #555;
  --accent: #d9c15a;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: #fff;
  color: #000;
}

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}

/* ============================================================
   Nav
   No horizontal padding here — .wrap handles it, so the nav
   content aligns with the hero and everything below.
============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(84px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-full {
  display: block;
  width: 176px;
  height: auto;
}

.brand-eye {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #808080;
  font-size: 13px;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-active {
  color: #fff;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-signin {
  display: inline-block;
  padding: 10px 4px;
  color: #888;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-signin:hover {
  color: #fff;
}

.nav-cta {
  padding: 10px 15px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: transform .25s var(--ease), background .2s ease;
}

.nav-cta:hover {
  background: #d8d8d8;
  transform: translateY(-1px);
}

/* ============================================================
   Hero
============================================================ */

.hero {
  position: relative;
  padding: 130px 0 90px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;

  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);

  background-size: 88px 88px;

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 62%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 62%,
    transparent 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #666;

  font-family: "JetBrains Mono", monospace;
  font-size: 11px;

  letter-spacing: .13em;
  text-transform: uppercase;

  margin-bottom: 26px;
}

.kicker span {
  width: 22px;
  height: 1px;
  background: #555;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 700;
}

.hero h1 em {
  color: #5e5e5e;
  font-style: normal;
  font-weight: 700;
}

.hero-copy {
  max-width: 600px;
  margin-top: 26px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
}

/* ============================================================
   Plans
============================================================ */

.plans {
  padding: 90px 0 100px;
  border-bottom: 1px solid var(--line-soft);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-items: stretch;
}

/* ============================================================
   Plan card
============================================================ */

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 32px;
  background: var(--surface);
  transition: background .25s ease;
  min-height: 0;
}

.plan:hover {
  background: #0a0a0a;
}

.plan-featured {
  background: #0b0b0b;
}

.plan-featured:hover {
  background: #0e0e0e;
}

.plan-current {
  background: #0c0c0c;
}

.plan-highlight {
  background: #111 !important;
  animation: highlight 1.6s ease;
}

@keyframes highlight {
  0%, 100% { background: #111; }
  50%      { background: #1a1a1a; }
}

.plan-badge,
.plan-current-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.plan-badge {
  background: #fff;
  color: #000;
}

.plan-current-tag {
  background: var(--accent);
  color: #000;
}

.plan-current .plan-badge {
  display: none;
}

.plan-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #ddd;
}

.plan-price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-amount {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.plan-currency {
  display: inline-block;
  margin-right: 4px;
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0;
  color: #888;
  vertical-align: 0.15em;
}

.plan-period {
  color: #666;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .02em;
  white-space: nowrap;
}

.plan-tagline {
  margin-top: 16px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin-top: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-features li {
  padding: 11px 0 11px 22px;
  position: relative;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.55;
  border-bottom: 1px solid #111;
}

.plan-features li:last-child {
  border-bottom: 0;
}

.plan-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 11px;
  color: #555;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.plan-cta {
  margin-top: 28px;
  padding: 14px 18px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid #2e2e2e;
  background: transparent;
  color: #ccc;
  text-align: center;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.plan-cta-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.plan-cta-primary:hover {
  background: #d8d8d8;
  border-color: #d8d8d8;
  transform: translateY(-1px);
}

.plan-cta-secondary {
  background: transparent;
  color: #ccc;
  border-color: #2e2e2e;
}

.plan-cta-secondary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.plan-cta-disabled {
  background: transparent;
  color: #555;
  border-color: #1e1e1e;
  cursor: not-allowed;
}

/* ============================================================
   Plans note
============================================================ */

.plans-note {
  margin-top: 30px;
  padding: 14px 18px;
  border-left: 2px solid #444;
  color: #8a8a8a;
  font-size: 12.5px;
  line-height: 1.7;
}

.plans-note strong {
  color: #ccc;
}

/* ============================================================
   FAQ
============================================================ */

.faq {
  padding: 90px 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq .kicker {
  margin-bottom: 30px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq-grid details {
  background: var(--surface);
  padding: 24px 26px;
}

.faq-grid summary {
  font-size: 14.5px;
  font-weight: 600;
  color: #ddd;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  user-select: none;
}

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

.faq-grid summary::after {
  content: "+";
  color: #666;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  line-height: 1;
  transition: transform .25s var(--ease), color .2s ease;
}

.faq-grid details[open] summary::after {
  transform: rotate(45deg);
  color: #ccc;
}

.faq-grid p {
  margin-top: 14px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.75;
}

.faq-grid a {
  color: #fff;
  border-bottom: 1px solid #444;
  transition: border-color .2s ease;
}

.faq-grid a:hover {
  border-color: #fff;
}

/* ============================================================
   CTA
============================================================ */

.cta {
  padding: 120px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 700;
}

.cta p {
  margin-top: 18px;
  color: #8a8a8a;
  font-size: 14px;
}

.cta .actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 18px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform .25s var(--ease), background .2s ease, border-color .2s ease;
}

.btn:hover {
  background: #d8d8d8;
  border-color: #d8d8d8;
  transform: translateY(-2px);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: var(--line-strong);
}

.btn.secondary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ============================================================
   Footer
============================================================ */

footer {
  padding: 34px 0;
  color: #555;
  font-size: 11px;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  opacity: .55;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* ============================================================
   Responsive
============================================================ */

@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 70px;
  }

  .plans {
    padding: 70px 0 80px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 32px 26px 28px;
  }

  .plan-featured {
    order: -1;
  }

  .plan-current {
    order: 0;
  }

  .faq {
    padding: 70px 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 90px 0;
  }
}

@media (max-width: 700px) {

  .nav {
    height: calc(72px + env(safe-area-inset-top, 0px));
  }

  .wrap {
    width: min(calc(100% - 30px), var(--max));
  }

  .brand-full {
    display: none;
  }

  .brand-eye {
    display: block;
    width: 38px;
    height: 38px;
  }

  .nav-end {
    gap: 8px;
  }

  .nav-cta {
    padding: 9px 12px;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 34px;
  }

  .plans .wrap,
  .faq .wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  .plan {
    padding: 28px 22px 24px;
  }

  .cta h2 {
    font-size: 32px;
  }
}

/* ============================================================
   Reduced motion
============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}