:root {
  --bg: #0b0f12;
  --panel: #12181d;
  --text: #e6f1ee;
  --muted: #9aa4a9;
  --accent: #A2EBCC;
  --accent-2: rgba(162,235,204,0.15);
  --ring: rgba(162,235,204,0.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
.container { width: min(1100px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,15,18,.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}
.nav a { margin: 0 10px; color: var(--text); opacity: .9; }
.nav a.btn { margin-left: 14px; }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  border: 0;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--ring);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-accent {
  background: var(--accent);
  color: #08130f;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-outline { background: transparent; color: var(--accent); }
.btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 0 6px var(--accent-2);
}

/* Layout */
.page { min-height: 60vh; }
.hero { position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 96px 0 40px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 8px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  max-width: 54ch;
}
.hero-art {
  min-height: 260px;
  border-radius: 28px;
  background: radial-gradient(1200px 400px at -20% 10%, var(--accent-2), transparent 70%),
              linear-gradient(130deg, #0d1317, #07090c);
  outline: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 50px rgba(162,235,204,.08);
  display: flex; align-items: center; justify-content: center;
}
.hero-art img {
  width: 88%; height:auto; opacity:.9;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.5));
}

section { padding: 56px 0; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; }
h3 { margin: 12px 0 8px; }
p { color: var(--text); opacity: .96; }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.card.link { transition: transform .18s ease, box-shadow .18s ease; }
.card.link:hover {
  transform: translateY(-3px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.card.tall .price { font-size: 22px; margin: 8px 0 14px; }
.card .tag {
  color: #06130f;
  background: var(--accent);
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-2); }

.pricing .currency { margin-bottom: 14px; color: var(--muted); }

/* FAQ */
.faq details {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Legal */
.legal.container { padding-top: 32px; padding-bottom: 48px; }
.legal h2, .legal h3 { margin-top: 18px; }
.legal p { color: var(--text); opacity: .92; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.legal-toc {
  position: sticky; top: 84px; height: max-content;
  background: var(--panel); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 12px;
}
.legal-toc a { display: block; margin: 6px 0; color: var(--muted); }
.legal-toc a.active { color: var(--accent); }

/* Contact */
.contact .grid-2 { align-items: start; }
.contact-form {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  display: grid; gap: 14px;
}
.contact-form label { display: block; font-weight: 600; margin: 8px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; display: block; padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0e1317;
  color: var(--text);
}
.contact-form button { margin-top: 10px; }
.contact .container h2 { margin-bottom: 8px; }

.field { position: relative; margin-bottom: 6px; }
.field input, .field textarea { padding: 16px 12px 10px; margin-top: 4px; }
.field label {
  position: absolute; left: 12px; top: 10px; font-size: 14px; color: var(--muted);
  pointer-events: none; transition: .2s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -8px; background: var(--panel); padding: 0 6px;
  font-size: 12px; color: var(--accent);
}

.contact-form .btn[disabled] {
  position: relative;
  opacity: .7;
  cursor: not-allowed;
}
.contact-form .btn[disabled]::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  top: 50%; right: 14px; transform: translateY(-50%);
  border: 2px solid rgba(162,235,204,.4);
  border-top-color: rgba(162,235,204,1);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Footer */
.site-footer {
  background: #0a0e11;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 64px;
  position: relative;
}
.site-footer:before {
  content: "";
  position: absolute; top: -120px; left: 0; right: 0; height: 120px;
  background: url('../img/skyline.svg') center/cover no-repeat;
  opacity: .5; pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 28px 0;
}
.footer-grid h4 { margin: 6px 0 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
}
.footer-bottom p { margin: 4px 0; }

/* Social */
.social { display: inline-flex; gap: 10px; align-items: center; margin-left: 12px; }
.social .icon {
  width: 22px; height: 22px;
  fill: #A2EBCC;
  opacity:.9;
  transition: transform .2s ease, opacity .2s ease;
}
.social-link:hover .icon { transform: translateY(-1px) scale(1.05); opacity: 1; }

/* Decorative / extras */
.hero {
  background-image: url('../img/grid.svg'),
                    radial-gradient(1200px 400px at -20% 10%, var(--accent-2), transparent 70%),
                    linear-gradient(130deg, #0d1317, #07090c);
  background-size: cover, auto, auto;
  background-blend-mode: screen, normal, normal;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 180px;
  background: url('../img/waves.svg') bottom/cover no-repeat;
  opacity: .6; pointer-events: none;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: lighten; opacity: .4;
}
.cards .card.image-card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.02)),
              url('../img/grid.svg');
  background-size: cover;
  background-blend-mode: overlay;
}
.card.icon::before {
  content: attr(data-icon);
  font-family: ui-sans-serif, system-ui;
  font-weight: 800; font-size: 28px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
}
.reveal { opacity: 0; transform: translateY(12px); transition: 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.domain-banner {
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(162,235,204,.08), rgba(162,235,204,.03)),
              url('../img/grid.svg');
  background-size: cover;
  border-radius: 18px; padding: 18px; margin: 12px 0 18px;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: block;
    position: absolute; right: 0; top: 56px;
    background: var(--panel);
    padding: 10px 14px;
    border-radius: 12px;
  }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ===== Mobile fine-tuning (narrow phones) ===== */
@media (max-width: 420px) {
  .container { width: 94vw; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 56px 0 20px;
  }

  .hero-copy h1{
    /* smaller, friendlier scale for 360–420px devices */
    font-size: clamp(22px, 8.2vw, 32px);
    line-height: 1.12;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    margin-bottom: 6px;
  }

  .hero-copy p{
    font-size: 14.5px;
    max-width: 100%;
    opacity: .92;
  }

  .btn{ padding: 10px 14px; }

  /* cards/grids stack hard on tiny screens */
  .cards.three, .cards.four, .grid-2 { grid-template-columns: 1fr; }

  /* footer columns stack tighter */
  .footer-grid{ grid-template-columns: 1fr; gap: 16px; }
}

/* An extra guard for ultra-narrow (older Android / iPhone Mini) */
@media (max-width: 360px) {
  .hero-copy h1{ font-size: clamp(20px, 8.8vw, 30px); }
  .hero-copy p{ font-size: 14px; }
}




/* === Enforced responsive fixes === */
@media (max-width: 992px){ .cards.four{grid-template-columns:repeat(2,1fr);} .footer-grid{grid-template-columns:1fr 1fr;} }
@media (max-width: 768px){ .cards.three{grid-template-columns:1fr;} .cards.four{grid-template-columns:1fr;} .grid-2{grid-template-columns:1fr;} .footer-grid{grid-template-columns:1fr; gap:16px;} }
@media (max-width: 480px){
  .container{width:94vw;}
  .hero-inner{grid-template-columns:1fr; gap:16px; padding:40px 0 20px;}
  .hero-copy h1{font-size:clamp(22px,7.2vw,32px); line-height:1.2; word-break:break-word; overflow-wrap:anywhere;}
  .hero-copy p{font-size:14px;}
  .btn{padding:10px 14px; font-size:14px;}
}

/* Equal width for pricing plan pills */
:root { --plan-pill-w: 140px; }  /* tweak if you want */

.pricing .cards.three .tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--plan-pill-w);
  padding: 6px 0;               /* keep vertical padding; no horizontal */
  line-height: 1.1;
}

/* Slightly smaller on narrow screens if needed */
@media (max-width: 520px){
  :root { --plan-pill-w: 120px; }
}

/* ===== Brand-styled currency picker ===== */
.pricing .currency{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: color-mix(in oklab, var(--panel, #12181d) 86%, black 14%);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  color: var(--muted, #9fb0ac);
  font-weight: 600;
  margin-bottom: clamp(8px, 1.4vw, 12px);
}

.pricing .currency #currency{
  -webkit-appearance: none;
  appearance: none;
  background:
    color-mix(in oklab, var(--accent, #A2EBCC) 12%, transparent);
  border: 1px solid rgba(162,235,204,.40);
  color: var(--text, #e6f1ee);
  border-radius: 12px;
  padding: 10px 38px 10px 12px; /* room for the chevron */
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  line-height: 1;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  /* custom chevron */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='%23A2EBCC' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.pricing .currency #currency:hover{
  border-color: rgba(162,235,204,.65);
  box-shadow: 0 0 0 3px rgba(162,235,204,.15) inset;
}

.pricing .currency #currency:focus-visible{
  outline: 3px solid rgba(162,235,204,.55);
  outline-offset: 2px;
}

/* Mobile: stack label + select neatly and make the control full-width */
@media (max-width: 560px){
  .pricing .currency{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    border-radius: 16px;
  }
  .pricing .currency #currency{
    width: 100%;
  }
}


/* ---- Reveal fail-safe ---- */
.reveal{opacity:1;transform:none}
.js-has-reveal .reveal{opacity:0;transform:translateY(10px);transition:opacity .5s ease, transform .5s ease}
.js-has-reveal .reveal.visible{opacity:1;transform:none}
/* Currency dropdown options: ensure readable on dark themes */
.pricing .currency #currency option { color:#0b0f12; background:#fff; }
.pricing .currency #currency option:checked { background:#A2EBCC; color:#0b0f12; }


/* === Merge from onboard.css (shared form/layout) === */

.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 8px}

.progress{display:flex;gap:8px;padding:14px 0}

.step{flex:1;border:1px solid rgba(255,255,255,.08);background:var(--panel);border-radius:12px;padding:10px 12px;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}

.step.active{outline:2px solid var(--accent);color:var(--text)}

.main{padding:24px 0 40px}

.card{background:var(--panel);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:16px}

.h{margin:0 0 6px}

.muted{color:var(--muted)}

.row{display:flex;gap:10px;flex-wrap:wrap}

.field{flex:1 1 260px;display:flex;flex-direction:column;gap:6px}

.field label{font-size:13px;color:var(--muted)}

.field input,.field select,.field textarea{background:#0f151a;color:var(--text);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:10px 12px;outline:none}

.small{font-size:12px;color:var(--muted)}

.price-line{display:flex;align-items:center;justify-content:space-between;margin:8px 0}

.actions{display:flex;gap:10px;justify-content:flex-end}

.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#152029;color:var(--text);text-decoration:none}

.btn-accent{background:var(--accent);color:#0b0f12}

.btn-outline{background:transparent}

.btn[disabled]{opacity:.5;cursor:not-allowed}

.alert{background:#201114;border:1px solid rgba(255,0,0,.25);color:#ffbcbc;padding:8px 10px;border-radius:10px;font-size:13px}

.tos{display:flex;flex-direction:column;gap:8px;margin:10px 0}

.footer-note{font-size:12px;color:var(--muted);margin-top:10px}

.success{color:#93f7c8}

/* Page main spacing to avoid header overlap */
.main{padding-top:16px}

/* --- Onboarding Page: Layout & Responsiveness --- */

/* 1. Defines the main layout grid */
.onboard-layout {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-first: defaults to a single column */
  gap: 24px;                 /* Provides the "reasonable gap" between elements when they stack */
  align-items: start;        /* Aligns cards to the top */
}

/* 2. Switches to a two-column layout on larger screens */
@media (min-width: 960px) {
  .onboard-layout {
    /* Main form takes remaining space, sidebar is 380px wide */
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  /* 3. Makes the order summary "stick" to the top when scrolling on desktop */
  .onboard-layout > aside {
    position: sticky;
    top: 88px; /* Adjust this value to sit perfectly below your sticky header */
  }
}

.note-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;           /* prevents shrinking */
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #0b0f12;           /* dark text inside */
  font-size: 12px;
  font-weight: bold;
  margin-right: 6px;
  vertical-align: middle;   /* aligns with text */
}

.muted-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;               /* spacing between icon and text */
  font-size: 14px;        /* same as your muted small */
  color: var(--muted);
  margin-top: 6px;
}

.muted-note .note-icon {
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #0b0f12;         /* dark text inside circle */
  font-size: 12px;
  font-weight: bold;
  margin-top: 2px;        /* aligns with first line of text */
}



/* --- Fix: prevent cut-off on anchor scroll --- */
section[id] { scroll-margin-top: 100px; }
@media (max-width: 900px) { section[id] { scroll-margin-top: 120px; } }
