/* SUBIPT, mobile-first stylesheet. No framework, no build step. */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef1f8;
  --text: #10162a;
  --text-muted: #5a6478;
  --border: #e3e7f0;
  --brand: #2f5dff;
  --brand-dark: #1c3fd1;
  --brand-tint: #eaf0ff;
  --accent: #0e9f6e;
  --accent-tint: #e6f8f1;
  --warn-bg: #fff8e6;
  --warn-border: #f0b429;
  --warn-text: #7a5200;
  --danger: #d92d20;
  --header-bg: #0b1020;
  --header-text: #f5f7fb;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 22, 42, 0.06), 0 8px 24px -12px rgba(16, 22, 42, 0.18);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.1rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand); color: #fff; padding: 0.7em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.4em; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  min-height: 48px; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: var(--surface-alt); color: var(--text); }
.btn--sm { padding: 0.55em 1em; min-height: 40px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--header-bg); color: var(--header-text);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 0.55em; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #7c9bff); color: #fff; font-weight: 800;
  font-size: 1rem;
}
.brand__name { font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; }
.brand--footer .brand__name, .brand--footer { color: var(--text); }

.site-nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; display: block; border-radius: 2px; }

.mobile-nav {
  display: flex; flex-direction: column; background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a {
  color: var(--header-text); padding: 0.95em 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.mobile-nav[hidden] { display: none; }

@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 1.6rem; }
  .site-nav a { color: var(--header-text); font-weight: 500; font-size: 0.96rem; opacity: 0.9; }
  .site-nav a:hover { opacity: 1; text-decoration: none; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(16,22,42,0.08);
}
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Sections ---------- */
section { padding: 2.6rem 0; }
.section--alt { background: var(--surface); }
.section--tight { padding: 1.6rem 0; }
.section-head { max-width: 720px; margin: 0 auto 1.8rem; text-align: center; }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 0.8em;
}

/* ---------- Hero ---------- */
.hero { padding: 2.2rem 0 2.6rem; }
.hero__inner { display: grid; gap: 1.8rem; align-items: center; }
.hero h1 { margin-bottom: 0.5em; }
.hero__lead { font-size: 1.1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--text-muted); }
.hero__meta span { display: flex; align-items: center; gap: 0.4em; }
.hero__media img, .hero__media svg { width: 100%; border-radius: var(--radius-lg); }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pricing-grid { grid-template-columns: repeat(5, 1fr); } }

.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; box-shadow: var(--shadow);
}
.price-card--highlight { border-color: var(--brand); position: relative; }
.price-card__badge {
  align-self: flex-start; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.25em 0.7em; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.price-card__name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.price-card__price { font-size: 2rem; font-weight: 800; color: var(--text); }
.price-card__price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-card__blurb { font-size: 0.92rem; margin-bottom: 0.4rem; }
.price-card .btn { margin-top: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }

.device-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
}
@media (min-width: 640px) { .device-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .device-grid { grid-template-columns: repeat(4, 1fr); } }
.device-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85rem 0.7rem; text-align: center; font-weight: 600; font-size: 0.9rem;
}

.app-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-tag {
  background: var(--surface-alt); border-radius: 999px; padding: 0.45em 0.95em; font-size: 0.86rem; font-weight: 600;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.step__num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.6rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.7rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; position: relative;
  padding-right: 2.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--brand); font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--text-muted); }

/* ---------- Callouts / warnings ---------- */
.callout {
  border-radius: var(--radius); padding: 1rem 1.15rem; font-size: 0.94rem; margin: 1rem 0;
  border: 1px solid var(--border); background: var(--surface-alt);
}
.callout--warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.callout strong { color: inherit; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--header-bg), #1a2550); color: #fff; border-radius: var(--radius-lg);
  padding: 2rem 1.4rem; text-align: center;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: 0.85; }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn--outline:hover { border-color: #fff; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.4em; font-size: 0.92rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 0.85em 0.9em; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--text); min-height: 48px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand); }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3em; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3em; }
.form-msg { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; }
.form-msg--success { background: var(--accent-tint); color: #0a6b49; }
.form-msg--error { background: #fdecea; color: var(--danger); }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6em; }
.checkbox-field input { width: auto; min-height: auto; margin-top: 0.25em; }

/* ---------- Checkout ---------- */
.checkout-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.checkout-steps span {
  background: var(--surface-alt); border-radius: 999px; padding: 0.35em 0.9em; font-size: 0.82rem; font-weight: 600;
}
.plan-option {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.95rem 1.1rem; margin-bottom: 0.7rem;
  background: var(--surface); cursor: pointer;
}
.plan-option input { width: auto; min-height: auto; }
.plan-option__label { display: flex; align-items: center; gap: 0.7em; font-weight: 600; }
.plan-option__price { font-weight: 800; }
.plan-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint) inset; }

.pay-option {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.95rem 1.1rem; margin-bottom: 0.7rem;
  background: var(--surface);
}
.pay-option > label { display: flex; align-items: center; gap: 0.7em; font-weight: 700; cursor: pointer; }
.pay-option input { width: auto; min-height: auto; }
.pay-option:has(input:checked) { border-color: var(--brand); }
.pay-details { display: none; padding-top: 0.9rem; margin-top: 0.9rem; border-top: 1px dashed var(--border); }
.pay-option:has(input:checked) .pay-details { display: block; }

.address-box {
  display: flex; align-items: center; gap: 0.6rem; background: var(--surface-alt); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; margin: 0.6rem 0;
}
.address-box code {
  flex: 1; word-break: break-all; font-size: 0.88rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy-btn {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  padding: 0.5em 0.8em; font-weight: 600; font-size: 0.85rem; cursor: pointer; min-height: 40px;
}
.copy-btn[data-copied="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.order-summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  position: sticky; top: 78px;
}
.order-summary dl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 0; margin: 0; }
.order-summary dt { color: var(--text-muted); width: 50%; }
.order-summary dd { margin: 0; width: 50%; text-align: right; font-weight: 600; }
.order-summary hr { border: none; border-top: 1px solid var(--border); margin: 0.8rem 0; }

.checkout-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* ---------- Table (compare plans) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 0.8em 1em; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
table.compare th { background: var(--surface-alt); font-weight: 700; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span[aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.4rem 0 1.2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.7em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5em; }
.footer-col a { color: var(--text); font-size: 0.92rem; }
.footer-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem;
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
}
.footer-share__label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.footer-share__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: inline-flex; align-items: center; padding: 0.4em 0.9em; border-radius: 999px;
  background: var(--surface-alt); color: var(--text); font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 1.8rem; padding-top: 1.2rem; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.6em; margin-bottom: 0.5em; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent-tint); border: 1px solid var(--accent);
}
.error-page { text-align: center; padding: 4rem 0; }
.error-page__code { font-size: 4rem; font-weight: 800; color: var(--brand); margin: 0; }

@media (min-width: 900px) { section { padding: 4rem 0; } .hero { padding: 3.4rem 0 4rem; } }
