:root {
  --pine: #0b1c17;
  --mid: #12241f;
  --moss: #2f5c4a;
  --gold: #e8b84a;
  --orange: #f28c28;
  --mist: #f2ede4;
  --dim: #c9c2b6;
  --live: #d94a3d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(1100px 520px at 70% -15%, #1a3d4a 0%, var(--pine) 58%);
  color: var(--mist);
  min-height: 100vh;
}
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 28, 23, 0.94);
  border-bottom: 1px solid var(--moss);
  backdrop-filter: blur(8px);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--mist); text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.brand.center { display: block; text-align: center; margin-bottom: 8px; }
nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--dim); font-size: 0.9rem; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { background: rgba(242, 140, 40, 0.12); text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--orange) 100%);
  color: #1a1208;
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(242, 140, 40, 0.25);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary.lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; }
.btn.ghost { border-color: var(--dim); color: var(--mist); box-shadow: none; }
.btn.block { width: 100%; text-align: center; margin-top: 8px; }

.hero { padding: 48px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.lead {
  max-width: 34rem;
  color: var(--dim);
  line-height: 1.55;
  font-size: 1.05rem;
  margin: 0;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.hero-tags span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--moss);
  background: rgba(28, 51, 44, 0.65);
  color: var(--gold);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual { margin: 0; }
.hero-visual-panel {
  padding: 20px 20px 16px;
  border-radius: 16px;
  border: 1px solid var(--moss);
  background: linear-gradient(165deg, rgba(28, 51, 44, 0.92) 0%, rgba(10, 20, 17, 0.96) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-app-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-app-icons img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--moss);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.hero-carousel {
  max-width: none;
  margin: 0;
}
.hero-carousel .scenario-slides {
  aspect-ratio: 1 / 1;
  border: none;
  background: transparent;
}
.hero-carousel .scenario-slide img {
  object-fit: contain;
  padding: 4px;
}
.hero-carousel .scenario-dots {
  margin-top: 12px;
}

.section-lead {
  max-width: 40rem;
  color: var(--dim);
  line-height: 1.55;
  margin: -6px 0 20px;
}

.block { padding: 40px 0 16px; }
.block h2 {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 12px;
}
.steps {
  color: var(--dim);
  line-height: 1.65;
  padding-left: 1.2rem;
  max-width: 40rem;
}
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--mist); }
.steps-three { counter-reset: step; list-style: none; padding-left: 0; }
.steps-three li {
  position: relative;
  padding-left: 2.6rem;
}
.steps-three li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--orange);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}
.phone-shot { margin: 0; text-align: center; }
.phone-shot img {
  width: min(280px, 100%);
  height: auto;
  border-radius: 24px;
  border: 3px solid #2a2a2a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.phone-shot figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 0.92rem;
}

.phone-mock {
  width: min(280px, 100%);
  margin: 0 auto;
  aspect-ratio: 390 / 720;
  border-radius: 24px;
  border: 3px solid #2a2a2a;
  background: radial-gradient(800px 400px at 50% -10%, #2f5c4a 0%, var(--pine) 55%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mock-status {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--mid);
  font-size: 0.85rem;
  color: var(--dim);
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf73;
}
.mock-pin-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.mock-pin {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold);
}
.mock-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mock-btn {
  min-width: 7rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.mock-btn.primary { background: var(--gold); color: var(--pine); }
.mock-btn.ghost { box-shadow: inset 0 0 0 1px var(--dim); color: var(--mist); }

.feature-list { max-width: 40rem; }

.scenario-carousel {
  max-width: 52rem;
  margin: 0 auto;
}
.scenario-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--moss);
  background: var(--pine-mid);
}
.scenario-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.scenario-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.scenario-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scenario-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(10, 20, 17, 0.92));
  color: var(--mist);
  font-weight: 600;
  font-size: 1rem;
}
.scenario-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.scenario-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--moss);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.scenario-dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}
.scenario-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 52rem;
  margin: 0 auto;
}
.scenario-grid figure {
  margin: 0;
  text-align: center;
}
.scenario-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--moss);
  background: rgba(10, 20, 17, 0.5);
  display: block;
}
.scenario-grid figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.roadmap {
  border-top: 1px solid var(--moss);
  margin-top: 12px;
  padding-top: 28px;
}
.roadmap .section-lead { font-style: italic; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.cards article {
  background: var(--mid);
  padding: 18px 16px;
  border-radius: 10px;
  border: 1px solid var(--moss);
}
.cards h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--mist); }
.cards p { margin: 0; color: var(--dim); font-size: 0.95rem; line-height: 1.45; }
.shop-checkout { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.shop-qty-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--dim); }
.shop-qty {
  width: 4.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--moss);
  background: var(--mid);
  color: var(--mist);
  font: inherit;
}
.shop-unit-price { margin-top: 6px; font-size: 0.9rem; }
.shop-section { margin-top: 2rem; }
.shop-section:first-of-type { margin-top: 1.25rem; }
.shop-section-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
}
.shop-section-lead {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.4;
}

.plain { color: var(--dim); line-height: 1.6; }
.note { color: var(--gold); font-size: 0.95rem; }

.foot {
  margin-top: 48px; padding: 28px 0 40px;
  border-top: 1px solid var(--moss);
  font-size: 0.9rem;
}
.muted { color: var(--dim); }

/* Login */
.login-page {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px; min-height: 100vh;
}
.login-card {
  width: min(400px, 100%);
  background: var(--mid);
  border: 1px solid var(--moss);
  border-radius: 8px;
  padding: 28px 24px 22px;
}
.login-card h1 {
  margin: 0 0 4px; text-align: center;
  font-size: 1.6rem; font-weight: 500;
}
.subtitle {
  text-align: center; color: var(--dim);
  font-family: system-ui, sans-serif; font-size: 0.9rem;
  margin: 0 0 22px;
}
.login-card label {
  display: block; margin: 12px 0 6px;
  font-family: system-ui, sans-serif; font-size: 0.85rem; color: var(--dim);
}
.login-card select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--moss);
  border-radius: 4px;
  background: var(--pine);
  color: var(--mist);
  font-size: 1rem;
  font-family: system-ui, sans-serif;
}
.register-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.login-card input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.alert {
  font-family: system-ui, sans-serif; font-size: 0.9rem;
  padding: 10px 12px; border-radius: 4px; margin-bottom: 14px;
}
.alert.bad { background: rgba(217, 74, 61, 0.2); color: #ffb4ab; }
.alert.ok { background: rgba(111, 191, 115, 0.2); color: #b7e4ba; }
.back {
  text-align: center; margin: 18px 0 0;
  font-family: system-ui, sans-serif; font-size: 0.9rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }
  .hero { padding-top: 56px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  nav .btn { width: 100%; text-align: center; }
  .hero-tags span { font-size: 0.72rem; }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.lang-label {
  color: var(--dim);
  white-space: nowrap;
}
.lang-select {
  appearance: none;
  min-width: 5.5rem;
  max-width: 12rem;
  padding: 0.35rem 1.75rem 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--moss);
  background: var(--mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9c2b6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
  color: var(--mist);
  font: inherit;
  cursor: pointer;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--gold);
  outline: none;
}
.lang-select option {
  background: var(--pine);
  color: var(--mist);
}

nav a.nav-active { color: var(--gold); font-weight: 600; }

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-top-row .brand { font-size: 1.2rem; text-align: left; margin: 0; }

.section-title { color: var(--gold); margin: 28px 0 10px; font-weight: 500; }

/* Usage stats (Cursor-style) */
.usage-stats {
  margin: 24px 0 32px;
  padding: 20px;
  background: var(--mid);
  border: 1px solid var(--moss);
  border-radius: 8px;
}
.usage-stats h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 500;
  font-size: 1.15rem;
}
.usage-hint {
  margin: 0 0 18px;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--dim);
}
.usage-grid {
  display: grid;
  gap: 14px;
}
.usage-card {
  font-family: system-ui, sans-serif;
}
.usage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 12px;
}
.usage-label {
  color: var(--dim);
  font-size: 0.9rem;
}
.usage-value {
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 600;
}
.usage-bar {
  height: 8px;
  background: var(--pine);
  border-radius: 4px;
  overflow: hidden;
}
.usage-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--gold));
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.3s ease;
}

.account-tabs {
  display: flex;
  gap: 4px;
  margin: 0.75rem 0 0;
  padding-bottom: 0;
  border-bottom: 2px solid var(--moss);
}
.account-tabs a {
  padding: 0.7rem 1.25rem;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.account-tabs a:hover {
  color: var(--mist);
  background: rgba(255, 255, 255, 0.04);
}
.account-tabs a.account-tab-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(232, 184, 74, 0.08);
}
.account-page .account-email {
  margin: 0 0 0.25rem;
}
.account-tab-lead {
  margin-top: 0;
}
.account-tab-panel {
  margin-top: 1.25rem;
}

.billing-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: system-ui, sans-serif;
}
.billing-label {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--dim);
}
.billing-email {
  margin: 0;
  font-size: 1.05rem;
  color: var(--mist);
  word-break: break-all;
}
.billing-kind {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid var(--moss);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.billing-kind legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 0.9rem;
}
.billing-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--mist);
  font-size: 0.95rem;
  cursor: pointer;
}
.billing-fields input,
.billing-fields textarea,
.billing-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--moss);
  border-radius: 6px;
  background: var(--pine);
  color: var(--mist);
  font: inherit;
  box-sizing: border-box;
}
.billing-select { max-width: 100%; }
.billing-fields textarea { resize: vertical; min-height: 4.5rem; }
.billing-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.4;
}
.billing-hidden { display: none !important; }

.payments-table {
  width: 100%;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  border-collapse: collapse;
}
.payments-table th,
.payments-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--moss);
  text-align: left;
}
.payments-table th {
  font-weight: 600;
  color: var(--pine);
  font-size: 13px;
}
.ledger-table .ledger-note {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.ledger-table tr.ledger-debt td {
  background: rgba(217, 74, 61, 0.08);
}

@media (min-width: 640px) {
  .usage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.oauth-block {
  margin: 16px 0 8px;
}
.oauth-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.oauth-btn {
  width: 100%;
  margin-bottom: 10px;
  justify-content: center;
}
.oauth-btn.apple-btn {
  background: #000;
  border-color: #333;
  color: #fff;
}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--dim);
  font-size: 0.9rem;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--moss);
}
.email-login-form {
  margin-top: 4px;
}
