/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7f5f0;
  --bg-card: #ffffff;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --accent-dark: #1b4332;
  --warm: #c47a2a;
  --heading: #1b1b18;
  --text: #3b3a36;
  --text-muted: #7a776e;
  --border: #e0dcd4;
  --danger: #c0392b;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-weight: 800; font-size: 1.2rem; color: var(--heading);
  letter-spacing: -0.02em; text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-buy {
  background: var(--accent) !important; color: #fff !important;
  padding: 0.5rem 1.2rem; border-radius: 6px;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-buy:hover {
  background: var(--accent-light) !important;
  box-shadow: 0 4px 12px rgba(45,106,79,0.25);
}

/* ── COUNTRY TOGGLE ── */
.country-toggle {
  display: flex; align-items: center; gap: 0.25rem;
  background: rgba(0,0,0,0.04); border-radius: 20px;
  padding: 0.2rem; font-size: 0.78rem; font-weight: 700;
}
.country-toggle button {
  background: none; border: none; padding: 0.35rem 0.7rem;
  border-radius: 16px; cursor: pointer; font-size: 0.78rem;
  font-weight: 700; color: var(--text-muted); transition: all 0.2s;
}
.country-toggle button.active {
  background: var(--accent); color: #fff;
}
.country-toggle button:hover:not(.active) { color: var(--heading); }

/* ── LAYOUT ── */
.container { max-width: 960px; margin: 0 auto; }
section { padding: 5rem 2rem; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--warm); margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2rem; font-weight: 800; color: var(--heading);
  line-height: 1.2; margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 640px; margin-bottom: 2.5rem;
}

/* ── HERO ── */
.hero {
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(45,106,79,0.04) 100%);
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(45,106,79,0.08);
  border: 1px solid rgba(45,106,79,0.15);
  border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800; color: var(--heading);
  line-height: 1.1; margin-bottom: 0.5rem;
}
.hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600; color: var(--accent);
  margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.hero > p {
  font-size: 1.12rem; color: var(--text-muted);
  max-width: 580px; margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-cta {
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.hero-cta:active { transform: scale(0.98); }
.hero-cta--primary { background: var(--accent); color: #fff; }
.hero-cta--primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 20px rgba(45,106,79,0.3);
}
.hero-cta--secondary {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.hero-cta--secondary:hover { background: rgba(45,106,79,0.06); }
.hero-price { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.hero-price strong { font-size: 1.6rem; color: var(--heading); font-weight: 800; }

/* ── IP65 BADGE ── */
.ip65-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(45,106,79,0.08); border: 1px solid rgba(45,106,79,0.15);
  border-radius: 6px; padding: 0.3rem 0.7rem;
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── SPEC CARDS ── */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2rem;
}
.spec-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.spec-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.spec-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--heading); margin-bottom: 0.4rem; }
.spec-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.spec-card .spec-value { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin-bottom: 0.3rem; }

/* ── CONTENT LIBRARY ── */
.content-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; margin-top: 2rem;
}
.content-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem; transition: box-shadow 0.2s;
}
.content-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.content-card .content-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.content-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--heading); margin-bottom: 0.35rem; }
.content-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.content-card .content-size {
  display: inline-block; margin-top: 0.6rem; padding: 0.2rem 0.6rem;
  background: rgba(45,106,79,0.07); border-radius: 4px;
  font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em;
}

/* ── STORAGE METER ── */
.storage-section { text-align: center; }
.storage-bar-wrapper { max-width: 640px; margin: 2rem auto 1rem; }
.storage-bar {
  width: 100%; height: 28px;
  background: var(--border); border-radius: 14px;
  overflow: hidden; display: flex;
}
.storage-bar .seg {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff;
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden;
}
.seg--system { background: #8a8580; }
.seg--core { background: var(--accent); }
.seg--maps { background: #3a7ca5; }
.seg--free { background: #c9c4bb; color: var(--text-muted); }
.storage-legend {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-top: 0.75rem;
}
.storage-legend span {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  display: flex; align-items: center; gap: 0.35rem;
}
.storage-legend .dot {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}

/* ── USE CASES ── */
.use-case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2rem;
}
.use-case-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem; transition: box-shadow 0.2s;
}
.use-case-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.use-case-item .use-case-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.use-case-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--heading); margin-bottom: 0.35rem; }
.use-case-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ── PURCHASE SECTION ── */
.purchase {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.purchase-card {
  background: var(--bg); border: 2px solid var(--accent);
  border-radius: 16px; padding: 2.5rem 2rem; position: relative;
}
.purchase-card .purchase-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 0.3rem 1.2rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
}
.purchase-card .purchase-name {
  font-size: 1.4rem; font-weight: 800; color: var(--heading); margin-bottom: 0.25rem;
}
.purchase-card .purchase-desc {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.purchase-card .purchase-price {
  font-size: 2.4rem; font-weight: 800; color: var(--heading); margin-bottom: 0.25rem;
}
.purchase-card .purchase-price-note {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.purchase-includes { text-align: left; list-style: none; margin-bottom: 1.5rem; }
.purchase-includes li {
  padding: 0.4rem 0; font-size: 0.88rem; color: var(--text); border-bottom: 1px solid var(--border);
}
.purchase-includes li:last-child { border-bottom: none; }
.purchase-includes li::before {
  content: "\2713"; display: inline-block; width: 1.5rem;
  color: var(--accent); font-weight: 700;
}
.btn-buy {
  display: inline-block; width: 100%; padding: 1rem 2rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-buy:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 24px rgba(45,106,79,0.3);
}
.btn-buy:active { transform: scale(0.98); }
.btn-buy:disabled { background: var(--text-muted); cursor: not-allowed; box-shadow: none; }
.purchase-secure { margin-top: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.purchase-secure svg {
  width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; fill: var(--text-muted);
}
.stripe-error {
  display: none; margin-top: 1rem; padding: 0.75rem 1rem;
  background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.2);
  border-radius: 8px; color: var(--danger); font-size: 0.85rem;
}

/* ── FAQ ── */
.faq-list { max-width: 680px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item summary {
  font-size: 1rem; font-weight: 700; color: var(--heading);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400;
  color: var(--text-muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 0.75rem; font-size: 0.92rem;
  color: var(--text-muted); line-height: 1.6;
}

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 2rem;
  font-size: 0.88rem;
}
.compare-table th, .compare-table td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  font-weight: 700; color: var(--heading);
  background: rgba(45,106,79,0.04);
}
.compare-table td { color: var(--text); }
.compare-table .highlight { color: var(--accent); font-weight: 700; }
.compare-table .muted { color: var(--text-muted); }

/* ── PAGE HEADER (for sub-pages) ── */
.page-header {
  padding: 7rem 2rem 3rem; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(45,106,79,0.04) 100%);
}

/* ── CONTACT FORM ── */
.contact-form { max-width: 520px; margin: 2rem auto 0; }
.contact-form label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--heading); margin-bottom: 0.3rem; margin-top: 1rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-family: inherit; color: var(--text);
  background: var(--bg-card); transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit {
  margin-top: 1.5rem; width: 100%; padding: 0.9rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s;
}
.contact-form .btn-submit:hover { background: var(--accent-light); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem; text-align: center; background: var(--bg);
}
footer p { font-size: 0.8rem; color: var(--text-muted); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── MAILERLITE FORM LAYOUT ── */
.ml-form-embedContainer { box-sizing: border-box; display: table; margin: 0 auto; position: static; width: 100% !important; }
.ml-form-embedWrapper.embedForm { max-width: 480px; width: 100%; }
.ml-form-embedBody { padding: 20px 0 0 0; }
.ml-form-formContent.horozintalForm { margin: 0; padding: 0 0 20px 0; width: 100%; float: left; }
.ml-form-formContent.horozintalForm .ml-form-horizontalRow { height: auto; width: 100%; float: left; }
.ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-input-horizontal { width: 70%; float: left; }
.ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-button-horizontal { width: 30%; float: left; }
.ml-form-formContent.horozintalForm .ml-form-horizontalRow .horizontal-fields { box-sizing: border-box; float: left; padding-right: 10px; }
.ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.ml-form-embedSubmitLoad:after {
  content: " "; display: block; width: 11px; height: 11px; margin: 1px;
  border-radius: 50%; border: 4px solid #fff; border-color: #fff #fff #fff transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}
@keyframes ml-form-embedSubmitLoad { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.ml-mobileButton-horizontal { display: none; }
.ml-form-successBody { padding: 20px; }
@media only screen and (max-width: 400px) {
  .ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-input-horizontal { width: 100%; }
  .ml-form-formContent.horozintalForm .ml-form-horizontalRow .horizontal-fields { width: 100%; padding-right: 0; margin-bottom: 10px; }
  .ml-form-formContent.horozintalForm .ml-button-horizontal { width: 100%; display: none !important; }
  .ml-mobileButton-horizontal { display: inline-block !important; margin-bottom: 20px; width: 100%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .purchase-card { padding: 2rem 1.5rem; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.6rem; }
}
@media (max-width: 480px) {
  nav { padding: 0.75rem 1rem; }
  .nav-links a:not(.nav-buy) { display: none; }
  .country-toggle { display: flex !important; }
  section { padding: 3.5rem 1.25rem; }
  .specs-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
