/* ==========================================================================
   HEXWELL WEBSITE · STYLES
   You normally do not need to change this file.
   Brand colour is chosen in js/content.js → settings.brandColour
   ========================================================================== */

/* ---------- 1. COLOURS ---------- */
:root {
  --bg: #070B14;          /* page background */
  --bg-alt: #0A0F1C;      /* striped sections */
  --card: #0F1626;        /* boxes */
  --card-2: #151D30;
  --line: #1B2335;
  --line-2: #263048;
  --line-3: #334155;
  --text: #E2E8F0;
  --text-strong: #F8FAFC;
  --text-soft: #A5B1C4;
  --text-muted: #94A3B8;
  --soon: #FBBF24;

  /* brand colour (teal = chosen) */
  --ac: #2DD4BF;
  --ac-soft: #5EEAD4;
  --ac-ink: #04201C;      /* text on top of the brand colour */

  --radius: 16px;
  --max: 1200px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
html[data-theme="violet"] { --ac: #9A8CFF; --ac-soft: #C4BBFF; --ac-ink: #120B3A; }
html[data-theme="lime"]   { --ac: #B5F23D; --ac-soft: #D4F78A; --ac-ink: #1A2600; }

/* ---------- 2. BASICS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec { padding: 104px 40px; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ac);
}
.h2 {
  margin: 0; font-family: var(--head); font-size: 42px; line-height: 1.1;
  letter-spacing: -1px; color: var(--text-strong);
}
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-soft); }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.intro.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-main { background: var(--ac); color: var(--ac-ink); }
.btn-line { border-color: var(--line-3); color: var(--text-strong); background: transparent; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }

/* ---------- 4. ANNOUNCEMENT BAR ---------- */
.announce {
  background: var(--ac); color: var(--ac-ink); text-align: center;
  font-size: 14px; font-weight: 600; padding: 10px 20px; line-height: 1.4;
}
.announce a { color: var(--ac-ink); }

/* ---------- 5. HEADER ---------- */
.head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 20, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 0 40px;
}
.head-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--text-strong); letter-spacing: -.5px; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; color: #CBD5E1; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ac); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text-strong);
  align-items: center; justify-content: center; cursor: pointer;
}

/* full-screen phone menu */
.mob {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 20px; display: none; flex-direction: column; gap: 8px; overflow-y: auto;
}
.mob.open { display: flex; }
.mob-top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.mob nav { display: flex; flex-direction: column; font-family: var(--head); font-size: 28px; font-weight: 600; color: var(--text-strong); }
.mob nav a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mob .btn { margin-top: 16px; width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- 6. HERO ---------- */
.hero { padding: 96px 40px 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ac); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 14px;
}
.h1 {
  margin: 0; font-family: var(--head); font-size: 60px; line-height: 1.04;
  letter-spacing: -1.5px; color: var(--text-strong); font-weight: 700;
}
.hero-text { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-soft); max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ticks { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text-muted); }
.ticks span { display: flex; align-items: center; gap: 6px; }

/* drawn store picture */
.mock { border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-3); }
.mock-url { margin-left: 12px; flex: 1; height: 22px; border-radius: 6px; background: var(--card-2); font-size: 12px; color: #64748B; display: flex; align-items: center; padding-left: 10px; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-banner { height: 120px; border-radius: 12px; background: var(--card-2); border: 1px solid #1E2940; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 22px; }
.mock-banner i { display: block; border-radius: 4px; }
.mock-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-tabs span { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--card-2); color: var(--text-muted); }
.mock-tabs span.on { background: var(--ac); color: var(--ac-ink); font-weight: 600; }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-card { border-radius: 12px; background: var(--card-2); border: 1px solid #1E2940; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-pic { height: 84px; border-radius: 8px; background: #1E2940; position: relative; }
.mock-pic b { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 3px 7px; border-radius: 6px; background: var(--ac); color: var(--ac-ink); }
.mock-pic svg { position: absolute; top: 6px; right: 6px; }
.mock-card i { display: block; height: 8px; border-radius: 3px; }
.mock-add { height: 26px; border-radius: 7px; border: 1px solid var(--line-3); font-size: 10px; color: #CBD5E1; display: flex; align-items: center; justify-content: center; }
.hero-pic { border-radius: 18px; border: 1px solid var(--line-2); width: 100%; height: auto; }

/* ---------- 7. REPLACES ROW ---------- */
.replaces { padding: 40px; }
.replaces-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.replaces p { margin: 0; font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--text-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { font-size: 14px; color: #CBD5E1; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); }

/* ---------- 8. MODULES ---------- */
.counter { display: flex; align-items: center; gap: 12px; color: #CBD5E1; margin-bottom: 24px; flex-wrap: wrap; }
.counter strong { font-family: var(--head); font-size: 28px; color: var(--ac); }
.counter span { flex: 1 1 220px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mod { border-radius: 14px; border: 1px solid #1E2940; background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.mod.on { border-color: #2A3A55; }
.mod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod-name { font-family: var(--head); font-weight: 600; font-size: 17px; color: #F1F5F9; }
.mod p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.switch {
  flex: none; width: 52px; height: 30px; border-radius: 999px; border: none; padding: 3px;
  background: var(--line-3); cursor: pointer; display: flex; justify-content: flex-start; transition: background .2s;
}
.switch span { width: 24px; height: 24px; border-radius: 50%; background: #F8FAFC; transition: transform .2s; }
.switch[aria-pressed="true"] { background: var(--ac); }
.switch[aria-pressed="true"] span { transform: translateX(22px); }
.soon { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--soon); border: 1px solid #4B3A12; border-radius: 6px; padding: 3px 8px; }

/* ---------- 9. SPEED ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.speed-box { border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.speed-box.ours { border-color: var(--ac); }
.speed-box strong { color: #F1F5F9; }
.speed-box p { margin: 0; font-size: 15px; color: var(--text-muted); }
.bar { height: 14px; border-radius: 999px; background: #1E2940; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: #64748B; }
.ours .bar i { background: var(--ac); }

/* ---------- 10. FEATURES ---------- */
.grid-feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.feat { border-radius: var(--radius); border: 1px solid #1E2940; background: var(--card); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.feat h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 19px; color: #F1F5F9; }
.feat p { margin: 0; font-size: 15px; color: var(--text-muted); }

/* ---------- 11. DEMO BOX ---------- */
.demo-sec { padding: 0 40px 104px; }
.demo-box { border-radius: 24px; border: 1px solid var(--line-2); background: var(--card); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.demo-box > div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; }
.demo-box .h2 { font-size: 34px; line-height: 1.15; }

/* ---------- 12. PRICING ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.plan { border-radius: 18px; border: 1px solid #1E2940; background: var(--card); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.best { border: 2px solid var(--ac); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--text-strong); }
.badge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--ac); color: var(--ac-ink); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--head); font-size: 38px; color: var(--text-strong); }
.price span, .plan-who { font-size: 15px; color: var(--text-muted); }
.plan-who { color: var(--text-soft); margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: #CBD5E1; }
.plan li svg { flex: none; margin-top: 3px; }
.plan .btn { width: 100%; min-height: 48px; font-size: 15px; }
.price-note { margin: 32px 0 0; text-align: center; font-size: 14px; color: var(--text-muted); }

/* ---------- 13. STORY ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story-copy { display: flex; flex-direction: column; gap: 16px; }
.story-copy .lead { line-height: 1.7; }
.text-link { color: var(--ac); font-weight: 600; text-decoration: none; }
.story-pic { aspect-ratio: 4 / 3; border-radius: 20px; border: 1px dashed var(--line-3); background: var(--card); display: flex; align-items: center; justify-content: center; color: #64748B; font-size: 15px; text-align: center; padding: 20px; overflow: hidden; }
.story-pic img { width: 100%; height: 100%; object-fit: cover; }
.story-pic.has-img { border-style: solid; padding: 0; }

/* ---------- 14. FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-wrap .h2 { text-align: center; margin-bottom: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 14px; border: 1px solid #1E2940; background: var(--card); }
.faq-q {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: none; border: none; color: #F1F5F9; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer;
}
.faq-q span { flex: none; font-size: 22px; color: var(--ac); }
.faq-a { margin: 0; padding: 0 20px 20px; font-size: 16px; line-height: 1.65; color: var(--text-soft); }
.faq-a[hidden] { display: none; }

/* ---------- 15. NOTIFY ---------- */
.notify { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.notify-form { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.notify-form input {
  flex: 1 1 260px; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-3);
  background: var(--card); color: #F1F5F9; padding: 0 16px; font-size: 16px;
}
.notify-form .btn { flex: 1 1 140px; border: none; }
.notify-msg { margin: 0; font-size: 15px; color: var(--ac); min-height: 24px; }

/* ---------- 16. FOOTER ---------- */
.foot { padding: 56px 40px 32px; border-top: 1px solid var(--line); background: #050810; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 36px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #CBD5E1; }
.foot-col h4 { margin: 0 0 2px; font-size: 14px; color: var(--text-strong); }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--ac); }
.foot-col p { margin: 0; color: var(--text-muted); }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: #CBD5E1; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   17. TABLETS (960px and smaller)
   ========================================================================== */
@media (max-width: 960px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .story-grid { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 46px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   18. PHONES (600px and smaller)
   ========================================================================== */
@media (max-width: 600px) {
  .sec { padding: 64px 20px; }
  .hero { padding: 56px 20px 64px; }
  .head, .replaces { padding-left: 20px; padding-right: 20px; }
  .demo-sec { padding: 0 20px 64px; }
  .demo-box { padding: 28px 22px; }
  .foot { padding: 44px 20px 28px; }
  .h1 { font-size: 36px; letter-spacing: -1px; }
  .h2 { font-size: 30px; }
  .demo-box .h2 { font-size: 26px; }
  .hero-text, .lead { font-size: 17px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .grid-feat, .grid-auto { grid-template-columns: minmax(0, 1fr); }
  .mock-cards { gap: 6px; }
  /* compact footer: brand on top, link columns side by side */
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .foot-col { font-size: 13px; }
}

/* people who switched off animations on their device */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
