/* PREVIEW ONLY (Alex + Claude Chat 11/20/2026, ?v=11): the two sections after the story as cards, for visual contrast
   (an iPhone visitor read "More than automation" and "You're always in control" as one run-on block).
   Loaded only by the preview page (tools/landing_hiw_preview.py), after the page's own styles and fullbleed.css.
   - #features ("More than automation") = a full-width light-grey band with WHITE cards;
     #protection ("You're always in control") = white, with GREY cards; #strategies after it stays white.
   - every item is its own card: one radius, one gap, one padding; one Lucide line icon top-left (markup added by the
     preview builder; the wording is untouched, the builder refuses any text change).
   - 2 columns on desktop and iPad landscape, 2 on iPad portrait where they fit, 1 on phones.
   - dark: the band one step lighter than the page, cards one step lighter than their section.
   Nothing here changes a size after load: the cards are in the page from the start; only opacity/transform animate. */
:root {
  --sx-band: #f4f5f7;          /* the grey band (light) */
  --sx-card-band: #ffffff;     /* cards on the band */
  --sx-card-page: #f4f5f7;     /* cards on the white section */
  --sx-card-line: #e4e7ea;     /* a hairline so white cards hold their shape on the light band */
  --sx-lit: #c3c9cf;           /* the rule card matching the lit panel row (desktop) */
  --sx-icon: var(--ink);
  --sx-r: 12px; --sx-gap: 16px; --sx-pad: 24px;
}
:root[data-theme="dark"] {
  --sx-band: #14181b;          /* page #0f1214 -> band one step lighter */
  --sx-card-band: #1b2024;     /* one step lighter than the band */
  --sx-card-page: #161a1d;     /* one step lighter than the page */
  --sx-card-line: #242a2f;
  --sx-lit: #4a535a;
}

/* the two sections: band edges replace the section hairlines */
#features { background: var(--sx-band); border-top: 0; }
#protection { border-top: 0; }

/* one card */
.sx-card { position: relative; border-radius: var(--sx-r); padding: var(--sx-pad); max-width: none; }
#features .sx-card { background: var(--sx-card-band); border: 1px solid var(--sx-card-line); }
#protection .sx-card { background: var(--sx-card-page); border: 1px solid transparent; }
.sx-ic { display: block; width: 20px; height: 20px; color: var(--sx-icon); margin-bottom: 14px; flex: none; }

/* More than automation: 2 x 2 cards (the old drawn lines go) */
#features .feats { gap: var(--sx-gap); }
#features .feats .line { display: none; }
#features .feats > .sx-card { padding: var(--sx-pad); }
#features .feats .sx-card > span { display: block; }

/* You're always in control: the rules as a column of cards beside the settings panel; the 3 promises as cards */
#protection .rules { display: grid; gap: var(--sx-gap); }
#protection .rules li.sx-card { border-left: 1px solid transparent; padding: var(--sx-pad); transition: border-color .4s var(--ease); }
#protection .rules li.sx-card.lit { border-color: var(--sx-lit); }
#protection .control { grid-template-columns: 1fr 1fr; gap: var(--sx-gap); }
#protection .control > .sx-card:nth-child(3) { grid-column: 1 / -1; }

/* iPad portrait and small laptops: the rules go under-the-heading 2 across, the panel below them */
@media (max-width: 900px) {
  #features .feats { grid-template-columns: 1fr 1fr; gap: var(--sx-gap); }
  #protection .rules { grid-template-columns: 1fr 1fr; }
  #protection .rules li.sx-card:last-child { grid-column: 1 / -1; }
}
/* phones: one column, a little tighter */
@media (max-width: 600px) {
  :root { --sx-gap: 12px; --sx-pad: 20px; }
  #features .feats, #protection .rules, #protection .control { grid-template-columns: 1fr; }
  #protection .rules li.sx-card:last-child, #protection .control > .sx-card:nth-child(3) { grid-column: auto; }
  .sx-ic { margin-bottom: 12px; }
}
