/* ============================================================
   iUnlock.Cloud — Design System
   Mobile-First | Fluid | Clean | Zero Layout Bugs
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Colors */
  --bg:        #0f0f14;
  --bg-soft:   #16161d;
  --panel:     rgba(255, 255, 255, 0.04);
  --panel-2:   rgba(255, 255, 255, 0.08);
  --text:      #fffffe;
  --muted:     rgba(255, 255, 255, 0.55);
  --soft:      rgba(255, 255, 255, 0.82);
  --line:      rgba(255, 255, 255, 0.08);
  --brand:     #ff8906;
  --brand-2:   #f25f4c;
  --accent:    #e53170;
  --danger:    #ef4444;
  --success:   #22c55e;
  --info:      #3b82f6;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow:    0 16px 56px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.75);

  /* Borders */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Layout */
  --max:       1160px;
  --nav-h:     72px;

  /* Typography */
  --font: "Cairo", "Inter", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width:   320px;
  background:  var(--bg);
  color:       var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x:  hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color:           inherit;
  text-decoration: none;
}

img,
svg,
video {
  display:   block;
  max-width: 100%;
  height:    auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

ul,
ol {
  list-style: none;
}

/* ── 3. Accessibility ─────────────────────────────────────── */
.skip-link {
  position:      fixed;
  left:          16px;
  top:           -100px;
  z-index:       9999;
  padding:       10px 18px;
  background:    var(--text);
  color:         var(--bg);
  border-radius: var(--radius);
  font-weight:   700;
  transition:    top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ── 4. Navigation ────────────────────────────────────────── */
.site-header {
  position:      sticky;
  top:           0;
  z-index:       200;
  height:        var(--nav-h);
  display:       flex;
  align-items:   center;
  background:    var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  width:           min(100% - 32px, var(--max));
  margin-inline:   auto;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             20px;
}

/* Brand */
.brand {
  display:     inline-flex;
  align-items: center;
  gap:         12px;
  font-weight: 800;
  font-size:   1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  height:     40px;
  width:      auto;
  max-width:  110px;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display:     flex;
  align-items: center;
  gap:         28px;
}

.nav-links a {
  display:      inline-flex;
  align-items:  center;
  min-height:   44px;
  padding:      6px 0;
  color:        var(--soft);
  font-size:    0.8125rem;
  font-weight:  600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:   color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Nav actions */
.nav-actions {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
  display:       none;
  width:         44px;
  height:        44px;
  align-items:   center;
  justify-content: center;
  border:        1px solid var(--line);
  border-radius: var(--radius);
  background:    var(--panel);
  color:         var(--text);
  flex-shrink:   0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display:    block;
  width:      18px;
  height:     2px;
  background: currentColor;
  margin:     0 auto;
  content:    "";
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after  { transform: translateY(4px);  }

.menu-open .menu-toggle span          { transform: rotate(45deg); }
.menu-open .menu-toggle span::before  { opacity: 0; }
.menu-open .menu-toggle span::after   { transform: translateY(-2px) rotate(-90deg); }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  min-height:      46px;
  padding:         10px 22px;
  border:          1px solid transparent;
  border-radius:   9999px;
  background:      var(--panel);
  color:           var(--text);
  font-weight:     700;
  font-size:       0.78rem;
  text-transform:  uppercase;
  letter-spacing:  0.08em;
  white-space:     nowrap;
  transition:      opacity 0.18s ease, background 0.18s ease,
                   transform 0.15s ease, box-shadow 0.18s ease;
  cursor:          pointer;
}

.btn:hover {
  opacity:   0.88;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background:   var(--brand);
  color:        #000;
  border-color: var(--brand);
}

.btn.primary:hover {
  background:   #e67c00;
  border-color: #e67c00;
  opacity:      1;
}

.btn.accent {
  background:   var(--brand-2);
  color:        #fff;
  border-color: var(--brand-2);
}

.btn.ghost {
  background:   transparent;
  border-color: var(--line);
  color:        var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  opacity:      1;
}

.btn.small {
  min-height: 38px;
  padding:    7px 16px;
  font-size:  0.7rem;
}

.btn.full {
  width: 100%;
}

/* ── 6. Layout Primitives ─────────────────────────────────── */
.page {
  min-height: calc(100vh - var(--nav-h));
}

.container {
  width:         min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section {
  padding-block: 80px;
}

.section.tight {
  padding-block: 52px;
}

.section.band {
  background:    var(--panel);
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width:     720px;
  margin-bottom: 48px;
}

/* Grids */
.grid {
  display: grid;
  gap:     28px;
}

.grid.two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── 7. Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height:  0.9;
  font-weight:  900;
}

h1 {
  font-size:      clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom:  20px;
}

h2 {
  font-size:      clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom:  16px;
}

h3 {
  font-size:    1.2rem;
  font-weight:  700;
  line-height:  1.3;
  margin-bottom: 10px;
}

p { margin-bottom: 0; }

.lead {
  color:       var(--soft);
  font-size:   clamp(1rem, 2vw, 1.125rem);
  line-height: 1.72;
  max-width:   680px;
}

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

.eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  margin-bottom:  16px;
  color:          var(--brand);
  font-size:      0.7rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

/* ── 8. Hero Section ─────────────────────────────────────── */
.hero {
  padding-block: 80px 56px;
}

.hero-grid {
  display:               grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items:           center;
  gap:                   56px;
}

.hero-actions,
.inline-actions {
  display:    flex;
  flex-wrap:  wrap;
  gap:        14px;
  margin-top: 40px;
}

/* Trust row */
.trust-row {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
  margin-top:            40px;
}

.trust-item strong {
  display:        block;
  font-size:      0.6rem;
  color:          var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight:    700;
  margin-bottom:  4px;
}

.trust-item span {
  display:     block;
  color:       var(--brand);
  font-size:   0.85rem;
  line-height: 1.4;
  font-weight: 500;
}

/* ── 9. Device Stage (Hero Right Side) ───────────────────── */
.device-stage {
  position:        relative;
  display:         flex;
  flex-direction:  column;
  gap:             20px;
  align-items:     center;
}

.desktop-window {
  width:         100%;
  max-width:     520px;
  border:        1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  background:    #c0c0c0; /* Old silver background */
  box-shadow:    var(--shadow);
  overflow:      hidden;
}

.window-bar {
  height:        46px;
  display:       flex;
  align-items:   center;
  justify-content: space-between;
  padding-inline: 16px;
  border-bottom:  1px solid rgba(0, 0, 0, 0.15);
  background:     #b0b0b0; /* Old silver header */
}

.window-title {
  font-size:  0.8125rem;
  font-weight: 800;
  color:       #111111;
}

.window-dots {
  display: flex;
  gap:     7px;
}

.window-dots span {
  width:         12px;
  height:        12px;
  border-radius: 50%;
}

#window-dot-1 { background: #37c100; } /* Old green */
#window-dot-2 { background: #ff5353; } /* Old red */

.window-dots span:nth-child(3) { background: #ff5f57; }

.tool-ui {
  padding: 24px;
}

.device-card {
  display:               grid;
  grid-template-columns: 60px 1fr;
  gap:                   14px;
  align-items:           center;
  padding:               18px;
  border:                1px solid rgba(0, 0, 0, 0.1);
  border-radius:         var(--radius);
  background:            #aaaaaa; /* Old tool card background */
  margin-bottom:         16px;
}

#hero-device-title { color: #1f1f1f; }
#hero-device-desc { color: #2c2c2c; }

.phone-icon {
  width:         48px;
  height:        80px;
  border:        2.5px solid #1f1f1f;
  border-radius: 10px;
  background:    #c0c0c0;
  position:      relative;
  flex-shrink:   0;
}

.phone-icon::before {
  content:       "";
  position:      absolute;
  top:           6px;
  left:          50%;
  transform:     translateX(-50%);
  width:         14px;
  height:        3px;
  border-radius: 999px;
  background:    #1f1f1f;
}

.progress {
  height:        4px;
  border-radius: 999px;
  background:    rgba(0,0,0,0.2);
  overflow:      hidden;
  margin-top:    10px;
}

.progress span {
  display:    block;
  width:      96%;
  height:     100%;
  background: #148522; /* Old green progress */
}

.tool-metrics {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   12px;
  margin-bottom:         16px;
}

.metric b {
  display:        block;
  color:          #222222;
  font-size:      0.6rem;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom:  3px;
}

.metric span {
  color:       #0067d9; /* Old blue color */
  font-size:   0.8rem;
  font-weight: 700;
}

.log-list {
  display: grid;
  gap:     12px;
}

.log-list div {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   0.8125rem;
  font-weight: 600;
}

#hero-log-1-span { color: #1e84bc; }
#hero-log-1-strong { color: #3b89ff; }
#hero-log-2-span { color: #18ae2d; }
#hero-log-2-strong { color: #28a317; }
#hero-log-3-span { color: #00b308; }
#hero-log-3-strong { color: #00911c; }

.log-list div::before {
  content:       "";
  width:         7px;
  height:        7px;
  border-radius: 50%;
  flex-shrink:   0;
}

.log-list div:nth-child(1)::before { background: var(--info); }
.log-list div:nth-child(2)::before { background: var(--success); }
.log-list div:nth-child(3)::before { background: var(--brand); }

/* iPhone shell — hidden by default, shown only on mobile if needed */
.iphone-shell,
.iphone-screen,
.screen-lock,
.screen-title,
.screen-sub,
.screen-checks {
  display: none;
}

/* ── 10. Cards ────────────────────────────────────────────── */
.card {
  padding:       28px;
  border:        1px solid var(--line);
  border-radius: var(--radius-lg);
  background:    var(--panel);
  transition:    background 0.2s ease, transform 0.2s ease,
                 box-shadow 0.2s ease;
}

.card:hover {
  background:   var(--panel-2);
  transform:    translateY(-2px);
  box-shadow:   var(--shadow-sm);
}

.card.highlight {
  background: var(--panel-2);
}

.card-image-wrapper {
  width:           100%;
  aspect-ratio:    16 / 9;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   20px;
  overflow:        hidden;
  border-radius:   var(--radius);
}

.card-image {
  width:      100%;
  height:     100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.04);
}

/* ── 11. Icon Badge ───────────────────────────────────────── */
.icon {
  display:        inline-block;
  margin-bottom:  14px;
  color:          var(--brand);
  font-weight:    700;
  font-size:      0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── 12. List ─────────────────────────────────────────────── */
.list {
  display: grid;
  gap:     14px;
}

.list li {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
  color:       var(--soft);
  font-size:   0.9rem;
  line-height: 1.55;
}

.list li::before {
  content:       "";
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--brand);
  flex-shrink:   0;
  margin-top:    6px;
}

/* ── 13. Steps ────────────────────────────────────────────── */
.steps {
  counter-reset: step;
  display:       grid;
  gap:           14px;
}

.step {
  counter-increment: step;
  display:           grid;
  grid-template-columns: auto 1fr;
  gap:               16px;
  align-items:       start;
  padding:           22px;
  border:            1px solid var(--line);
  border-radius:     var(--radius-lg);
  background:        var(--panel);
  transition:        background 0.2s ease;
}

.step:hover {
  background: var(--panel-2);
}

.step::before {
  content:        "0" counter(step) ".";
  color:          var(--brand);
  font-weight:    700;
  font-size:      0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top:    3px;
}

/* ── 14. Form ─────────────────────────────────────────────── */
.form-panel {
  padding:       40px;
  border:        1px solid var(--line);
  border-radius: var(--radius-lg);
  background:    var(--bg-soft);
}

.field {
  display:       grid;
  gap:           10px;
  margin-bottom: 20px;
}

.field label {
  color:          var(--muted);
  font-weight:    700;
  font-size:      0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.field input,
.field textarea,
.field select {
  width:         100%;
  min-height:    52px;
  padding:       14px 16px;
  border:        1px solid var(--line);
  border-radius: var(--radius);
  background:    var(--panel);
  color:         var(--text);
  outline:       none;
  transition:    border-color 0.18s ease;
}

.field textarea {
  resize:     vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.hint {
  color:       var(--muted);
  font-size:   0.825rem;
  line-height: 1.5;
}

/* ── 15. Notices ──────────────────────────────────────────── */
.notice {
  padding:       20px;
  border:        1px solid var(--line);
  border-radius: var(--radius);
  background:    var(--panel);
  color:         var(--soft);
  font-size:     0.9rem;
  line-height:   1.6;
}

.success {
  padding:       20px;
  border:        1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
  background:    rgba(34, 197, 94, 0.08);
  color:         #4ade80;
}

.error {
  padding:       20px;
  border:        1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius);
  background:    rgba(239, 68, 68, 0.08);
  color:         #f87171;
}

/* ── 16. Drop Zone ────────────────────────────────────────── */
.drop-zone {
  min-height:    220px;
  display:       grid;
  place-items:   center;
  padding:       28px;
  border:        1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background:    var(--panel);
  text-align:    center;
  transition:    background 0.2s ease, border-color 0.2s ease;
  cursor:        pointer;
}

.drop-zone.dragover {
  background:   var(--panel-2);
  border-color: var(--brand);
}

.drop-zone input {
  display: none;
}

/* ── 17. Chips / Tags ─────────────────────────────────────── */
.device-cloud {
  display:   flex;
  flex-wrap: wrap;
  gap:       10px;
}

.chip {
  display:       inline-flex;
  align-items:   center;
  min-height:    38px;
  padding:       6px 14px;
  border:        1px solid var(--line);
  border-radius: 999px;
  background:    var(--panel);
  color:         var(--soft);
  font-size:     0.825rem;
  transition:    background 0.15s ease;
}

.chip:hover {
  background: var(--panel-2);
}

/* ── 18. Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs {
  display:       flex;
  flex-wrap:     wrap;
  align-items:   center;
  gap:           6px;
  margin-bottom: 28px;
  color:         var(--muted);
  font-size:     0.825rem;
}

.breadcrumbs a {
  color:      var(--soft);
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* ── 19. CTA Strip ────────────────────────────────────────── */
.cta-strip {
  display:               grid;
  grid-template-columns: 1fr auto;
  align-items:           center;
  gap:                   28px;
  padding:               44px;
  border:                1px solid var(--line);
  border-radius:         var(--radius-lg);
  background:            var(--panel);
}

/* ── 20. Blog ─────────────────────────────────────────────── */
.blog-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   28px;
}

.post-card {
  display:       flex;
  flex-direction: column;
  gap:           14px;
  padding:       28px;
  border:        1px solid var(--line);
  border-radius: var(--radius-lg);
  background:    var(--panel);
  transition:    background 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  background:  var(--panel-2);
  transform:   translateY(-2px);
}

.post-card.featured {
  grid-column: 1 / -1;
  background:  var(--panel-2);
}

.post-meta {
  color:          var(--muted);
  font-size:      0.6rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Article */
.article {
  max-width:   780px;
}

.article h1 {
  font-size:   clamp(1.7rem, 3.5vw, 2.6rem);
}

.article h2 {
  font-size:    clamp(1.3rem, 2.5vw, 1.8rem);
  margin-top:   52px;
}

.article p,
.article li {
  color:       var(--soft);
  font-size:   1rem;
  line-height: 1.75;
}

.article a {
  color:               var(--text);
  text-decoration:     underline;
  text-underline-offset: 4px;
}

.article ul {
  list-style:  disc;
  padding-left: 1.5rem;
  display:     grid;
  gap:         8px;
}

/* ── 21. Footer ───────────────────────────────────────────── */
.site-footer {
  padding-block: 56px;
  background:    var(--text);
  color:         var(--bg);
}

.footer-grid {
  display:               grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap:                   36px;
}

.footer-grid .brand {
  color:       var(--bg);
  font-weight: 800;
  gap:         10px;
}

.footer-grid .brand span {
  color: var(--bg);
}

.footer-grid .muted {
  color:       rgba(0, 0, 0, 0.55);
  margin-top:  12px;
  font-size:   0.875rem;
  line-height: 1.6;
}

.footer-title {
  margin-bottom:  16px;
  font-weight:    900;
  font-size:      0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color:          rgba(0, 0, 0, 0.45);
}

.footer-links {
  display: grid;
  gap:     11px;
}

.footer-links a {
  color:       rgba(0, 0, 0, 0.6);
  font-weight: 600;
  font-size:   0.875rem;
  transition:  color 0.15s ease;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: space-between;
  gap:             12px;
  margin-top:      48px;
  padding-top:     24px;
  border-top:      1px solid rgba(0, 0, 0, 0.12);
  color:           rgba(0, 0, 0, 0.45);
  font-size:       0.825rem;
  font-weight:     600;
}

/* ── 22. Showcase Slider (Download Page) ─────────────────── */
.showcase-slider-container {
  position:      relative;
  width:         calc(100% + 80px);
  margin:        -40px -40px 24px -40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow:      hidden;
}

.showcase-slider {
  position:    relative;
  width:       100%;
  aspect-ratio: 5 / 3;
  min-height:  200px;
  overflow:    hidden;
  background:  var(--bg);
}

.showcase-slider .slide {
  position:        absolute;
  inset:           0;
  opacity:         0;
  visibility:      hidden;
  transition:      opacity 0.7s ease, visibility 0.7s ease;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.showcase-slider .slide.active {
  opacity:    1;
  visibility: visible;
}

.showcase-slider .slide img {
  width:      100%;
  height:     100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.showcase-slider .slide.active img {
  transform: scale(1.02);
}

.showcase-slider .slide-caption {
  position:       absolute;
  top:            14px;
  left:           50%;
  transform:      translateX(-50%);
  font-size:      0.825rem;
  font-weight:    700;
  color:          var(--text);
  text-align:     center;
  background:     rgba(0, 0, 0, 0.55);
  padding:        5px 14px;
  border-radius:  999px;
  backdrop-filter: blur(8px);
  border:         1px solid rgba(255, 255, 255, 0.1);
  z-index:        10;
  white-space:    nowrap;
}

.slider-dots {
  position:  absolute;
  bottom:    14px;
  left:      50%;
  transform: translateX(-50%);
  display:   flex;
  gap:       7px;
  z-index:   10;
}

.slider-dots .dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  background:    rgba(255, 255, 255, 0.2);
  cursor:        pointer;
  transition:    background 0.25s ease, transform 0.25s ease;
}

.slider-dots .dot:hover { background: rgba(255, 255, 255, 0.45); }
.slider-dots .dot.active {
  background: var(--brand);
  transform:  scale(1.3);
}

/* ── 23. Download Sidebar ─────────────────────────────────── */
#download-sidebar-panel {
  padding:       40px;
  border:        1px solid var(--line);
  border-radius: var(--radius-lg);
  background:    var(--bg-soft);
}

#download-sidebar-panel h2 {
  font-size:    1.8rem;
  margin-bottom: 12px;
}

/* ── 24. Supported Devices Card ───────────────────────────── */
#supported-devices-card {
  padding: 28px;
}

#show-more-devices-btn {
  margin-top:  12px;
  background:  transparent;
  border:      1px solid var(--brand);
  color:       var(--brand);
  width:       100%;
  min-height:  42px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size:   0.825rem;
  transition:  background 0.18s ease;
}

#show-more-devices-btn:hover {
  background: rgba(255, 137, 6, 0.1);
}

#more-devices {
  display: none;
}

#more-devices.visible {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── 25. Dot (Eyebrow) ────────────────────────────────────── */
.dot {
  display:       inline-block;
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--brand);
  flex-shrink:   0;
}

/* ── 26. Responsive Breakpoints ───────────────────────────── */

/* Tablet – 1024px */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap:                   40px;
  }

  .device-stage {
    max-width: 560px;
    margin:    0 auto;
    width:     100%;
  }

  .desktop-window {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap:                   28px;
  }
}

/* Small Tablet – 860px */
@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }

  .site-header {
    height: var(--nav-h);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-links {
    position:   fixed;
    inset:      var(--nav-h) 0 0 0;
    display:    none;
    flex-direction: column;
    align-items:    flex-start;
    padding:    28px 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    z-index:    199;
    gap:        4px;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size:  1.1rem;
    min-height: 52px;
    width:      100%;
    padding:    8px 0;
  }

  .brand-logo {
    height: 34px;
  }

  .brand {
    font-size: 1rem;
    gap:       10px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .blog-grid,
  .hero-grid,
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tool-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .section { padding-block: 60px; }
  .section.tight { padding-block: 44px; }
}

/* Mobile – 560px */
@media (max-width: 560px) {
  :root {
    --nav-h: 60px;
  }

  .container,
  .nav {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  h3 {
    font-size: 1.05rem;
  }

  .lead {
    font-size: clamp(0.9rem, 3.8vw, 1rem);
  }

  .hero { padding-block: 48px 32px; }

  .section        { padding-block: 44px; }
  .section.tight  { padding-block: 36px; }
  .section-head   { margin-bottom: 28px; }

  .grid { gap: 18px; }
  .grid.four { grid-template-columns: 1fr; }

  .hero-actions,
  .inline-actions {
    display:    grid;
    gap:        10px;
    margin-top: 28px;
  }

  .btn {
    width:     100%;
    min-height: 48px;
  }

  /* Cards */
  .card          { padding: 20px; }
  .card-image-wrapper { margin-bottom: 16px; }

  .form-panel    { padding: 24px; }
  .cta-strip     { padding: 24px; gap: 18px; }

  /* Device card */
  .device-card {
    grid-template-columns: 1fr;
    padding:               16px;
    gap:                   12px;
  }

  .phone-icon {
    display: none; /* hidden on tiny screens to save space */
  }

  .tool-ui { padding: 16px; }

  /* Tool metrics: stack to single column */
  .tool-metrics {
    grid-template-columns: 1fr;
    gap:                   8px;
  }

  /* Steps */
  .step {
    grid-template-columns: 1fr;
    padding:               16px;
    gap:                   10px;
  }

  .step::before { margin-bottom: 4px; }

  /* Blog */
  .blog-grid { gap: 16px; }
  .post-card { padding: 18px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap:                   24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap:            8px;
  }

  .site-footer { padding-block: 40px; }

  /* Chips */
  .chip {
    min-height: 34px;
    padding:    5px 12px;
    font-size:  0.775rem;
  }

  /* Drop zone */
  .drop-zone {
    min-height: 190px;
    padding:    22px;
  }

  /* Trust row */
  .trust-row { margin-top: 28px; gap: 14px; }

  /* Showcase slider */
  .showcase-slider-container {
    width:  100% !important;
    margin: 0 0 18px 0 !important;
    border-radius: var(--radius) !important;
  }

  .showcase-slider    { min-height: 180px; }
  .showcase-slider .slide-caption { font-size: 0.75rem; top: 10px; }
  .slider-dots        { bottom: 10px; }
  .slider-dots .dot   { width: 6px; height: 6px; }

  /* Download sidebar */
  #download-sidebar-panel {
    padding: 20px !important;
  }

  #download-sidebar-panel h2 {
    font-size: 1.4rem !important;
  }

  /* CTA strip full button */
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .cta-strip .btn {
    justify-self: stretch;
  }

  /* Notices */
  .notice, .success, .error { padding: 16px; }
}

/* Small Mobile – 400px */
@media (max-width: 400px) {
  .container, .nav {
    width: min(100% - 16px, var(--max));
  }

  h1 { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  h2 { font-size: clamp(1.15rem, 5vw, 1.6rem); }

  .hero { padding-block: 36px 24px; }
  .section { padding-block: 36px; }

  .card       { padding: 16px; }
  .form-panel { padding: 18px; }
  .step       { padding: 14px; }

  .brand-logo { height: 28px; }
  .brand      { font-size: 0.9rem; gap: 8px; }

  .btn { font-size: 0.72rem; min-height: 44px; }

  .nav-links {
    padding: 20px 16px;
  }

  .nav-links a {
    font-size:  1rem;
    min-height: 46px;
  }
}

/* ── 27. Accessibility & Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto     !important;
    transition:      none     !important;
    animation:       none     !important;
  }
}

/* ── 28. Print ────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .nav-actions,
  .menu-toggle,
  .hero-actions,
  .inline-actions,
  .cta-strip {
    display: none !important;
  }

  body {
    background: #fff;
    color:      #000;
  }
}
