/* ---------- Design tokens ---------- */
:root {
  --ink-900: #0b1220;
  --ink-800: #121a2b;
  --ink-700: #1c2740;
  --ink-500: #4b5872;
  --ink-300: #8895ab;
  --paper: #ffffff;
  --paper-alt: #f4f6fb;
  --line: #e3e7f0;

  --accent-500: #0ea5b7;   /* teal */
  --accent-600: #0b8b9b;
  --accent-100: #e3f7f9;

  --amber-500: #f2994a;    /* discount accent */
  --amber-100: #fdf1e4;

  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.14);

  --maxw: 1120px;
  --maxw-narrow: 760px;

  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-800);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink-900); }
p { margin: 0 0 1em; color: var(--ink-500); }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: "SFMono-Regular", Consolas, Menlo, monospace; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink-900); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent-500); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--ink-800); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent-500); color: var(--accent-600); }
.btn-ghost {
  background: var(--ink-900); color: #fff;
}
.btn-ghost:hover { background: var(--accent-600); }
.btn-small { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 20px;
}
.brand { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.15rem; color: var(--ink-900); }
.brand-mark {
  background: var(--ink-900); color: #fff; padding: 3px 8px; border-radius: 8px; margin-right: 8px; font-size: 0.85em;
}
.brand-dim { color: var(--ink-300); font-weight: 500; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--ink-700); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent-600); text-decoration: none; }
.header-cta { white-space: nowrap; }

@media (max-width: 780px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 15% -10%, rgba(14,165,183,0.18), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #fff;
  padding: 84px 0 88px;
}
.hero-inner { max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700;
  color: var(--accent-100); opacity: 0.85; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.hero-lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Discount banner ---------- */
.discount-banner {
  background: var(--amber-100);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.discount-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.discount-kicker {
  color: var(--amber-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem;
  margin-bottom: 10px;
}
.discount-copy h2 { font-size: 1.7rem; }
.coupon-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-md);
}
.coupon-label { font-size: 0.8rem; color: var(--ink-300); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.coupon-row {
  display: flex; align-items: center; gap: 10px; margin: 10px 0 18px;
}
.coupon-code {
  flex: 1;
  border: 1.5px dashed var(--accent-500);
  background: var(--accent-100);
  color: var(--ink-900);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 10px 14px; border-radius: 10px; text-align: center;
}
.copy-btn { background: var(--ink-900); color: #fff; border: none; }
.copy-btn:hover { background: var(--accent-600); }
.copy-btn.copied { background: var(--accent-500); }
.coupon-cta { width: 100%; }
.coupon-fineprint { font-size: 0.8rem; color: var(--ink-300); margin: 14px 0 0; }

@media (max-width: 860px) {
  .discount-inner { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-title { font-size: 1.8rem; }
.section-lead { max-width: 620px; font-size: 1.02rem; margin-bottom: 40px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent-600);
  margin-bottom: 14px;
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-os { font-size: 0.82rem; color: var(--ink-300); margin-bottom: 10px; }
.product-desc { font-size: 0.94rem; flex-grow: 1; }
.product-price {
  font-weight: 700; color: var(--ink-900); font-size: 1.05rem; margin-bottom: 16px;
}
.product-price span { font-weight: 500; color: var(--ink-300); font-size: 0.8rem; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; }
.product-note {
  font-size: 0.8rem;
  color: var(--ink-300);
  margin: 12px 0 0;
  text-align: center;
}

/* ---------- Article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.article-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--ink-900); }
.article-card h3 a:hover { color: var(--accent-600); }
.article-desc { font-size: 0.92rem; flex-grow: 1; }
.article-link { font-size: 0.88rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}
.footer-brand { color: #fff; margin-bottom: 10px; }
.footer-note { max-width: 260px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.disclosure {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 820px;
  margin: 28px 0 0;
}
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 20px 0 0; }
