/* ============================================================
   AUTOMATION STORM - GLOBAL DESIGN TOKENS
   Keep these variables together so the theme is easy to port
   later into PHP, Twig, Blade, Astro or another templating system.
   ============================================================ */
:root {
  --ink: #0b1118;
  --navy: #03111f;
  --navy-2: #071827;
  --blue: #058bff;
  --blue-2: #0a79ec;
  --text: #0d1117;
  --muted: #67717d;
  --line: #e6e9ee;
  --soft: #f7f9fb;
  --white: #fff;
  --gold: #ffb000;
  --radius: 8px;
  --shadow: 0 3px 14px rgba(11, 22, 35, .08);
  --container: 912px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  height: 75px;
  background: #020d18;
  color: #fff;
  position: relative;
  z-index: 10;
}
.header-inner { height: 100%; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 52px; height: 42px; color: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg path:first-child { fill: none; stroke-width: 3; }
.brand-copy { display: grid; line-height: .88; letter-spacing: .02em; }
.brand-copy b { font-size: 17px; font-weight: 800; }
.brand-copy strong { margin-top: 7px; color: var(--blue); font-size: 24px; font-weight: 800; letter-spacing: .04em; }
.main-nav { margin-left: auto; display: flex; height: 100%; align-items: stretch; gap: 26px; }
.main-nav .menu { display: flex; align-items: stretch; gap: 26px; height: 100%; margin: 0; padding: 0; list-style: none; }
.main-nav .menu > li { display: flex; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 4px; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .01em; }
.main-nav a.active, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--blue); }
.main-nav a.active::after, .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { content: ""; position: absolute; bottom: 10px; left: 0; right: 0; height: 2px; background: var(--blue); }
.header-social { display: flex; gap: 16px; align-items: center; margin-left: 36px; font-size: 14px; }
.header-social a { color: #fff; opacity: .95; }
.search-toggle { appearance: none; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; transform: rotate(-12deg); margin-left: 3px; cursor: pointer; }
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: #fff; }
.header-search { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: 100%; padding: 12px 22px; background: #071827; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.header-search.is-open { display: block; }
.search-form { display: flex; max-width: 720px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 5px 0 0 5px; padding: 0 14px; }
.search-form button { border: 0; border-radius: 0 5px 5px 0; padding: 0 20px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }
.custom-logo { display: block; width: auto; max-width: 220px; max-height: 56px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 347px;
  background:
    radial-gradient(circle at 75% 35%, rgba(0, 133, 255, .17), transparent 28%),
    linear-gradient(100deg, #071625 0%, #041321 45%, #06101a 100%);
  color: #fff;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, rgba(0,0,0,.26)); pointer-events: none; }
.hero-grid { min-height: 347px; display: grid; grid-template-columns: 49% 51%; align-items: stretch; }
.hero-copy { position: relative; z-index: 2; padding: 50px 0 38px; }
.hero-copy h1 { margin: 0; font-size: clamp(36px, 4vw, 49px); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.hero-copy h1 .accent { color: var(--blue); }
.hero-copy p { margin: 20px 0 24px; color: #f0f4f8; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; gap: 13px; }
.button { min-height: 40px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.button-primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.button-outline { border: 1px solid rgba(255,255,255,.8); color: #fff; background: transparent; }
.button-outline.blue { border-color: var(--blue); color: var(--blue); }
.hero-art {
  margin-right: calc((100vw - min(var(--container), calc(100vw - 44px))) / -2);
  min-height: 347px;
  background: linear-gradient(90deg, rgba(6,18,30,.88) 0%, rgba(6,18,30,.15) 28%, rgba(6,18,30,.05) 100%), url('../images/hero-devices.jpg') center / cover no-repeat;
  filter: saturate(.94) contrast(1.02);
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section { padding: 22px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2, .latest-articles > h2, .side-card > h2 { margin: 0; font-size: 14px; text-transform: uppercase; font-weight: 900; }
.section-heading a, .about-card a { color: var(--blue); text-transform: uppercase; font-size: 10px; font-weight: 800; }

/* ============================================================
   FEATURED REVIEWS
   ============================================================ */
.featured { background: #fff; padding-top: 22px; padding-bottom: 18px; }
.review-carousel-shell { position: relative; }
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.review-grid::-webkit-scrollbar { display: none; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.review-card { scroll-snap-align: start; }
.review-image { height: 127px; overflow: hidden; background: #ddd; }
.review-image img { width: 100%; height: 100%; object-fit: cover; }
.review-body { position: relative; padding: 15px 13px 13px; min-height: 143px; }
.tag { position: absolute; top: -21px; left: 11px; background: var(--blue); color: #fff; text-transform: uppercase; font-size: 9px; line-height: 1; padding: 5px 8px; border-radius: 3px; font-weight: 800; }
.review-card h3 { font-size: 13.5px; line-height: 1.3; margin: 0 0 9px; }
.review-card p { margin: 0; font-size: 11px; line-height: 1.55; color: #303944; min-height: 51px; }
.rating { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.rating span { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.rating b { color: #39424d; font-size: 10px; font-weight: 600; }
.carousel-arrow { position: absolute; top: 42%; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #8ca2b8; background: #fff; color: #24517c; font-size: 24px; line-height: 22px; display: grid; place-items: center; cursor: default; z-index: 3; }
.carousel-arrow.left { left: -32px; }
.carousel-arrow.right { right: -32px; }

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip { border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: linear-gradient(#fff,#fafbfd); }
.category-grid { min-height: 83px; display: grid; grid-template-columns: repeat(10, 1fr); align-items: center; }
.category-grid.dynamic-categories { grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); }
.category-grid a { height: 83px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; }
.category-icon { min-height: 25px; color: var(--blue); font-size: 27px; line-height: 1; font-weight: 400; }
.category-grid b { font-size: 10px; font-weight: 700; }

/* ============================================================
   CONTENT AREA / LATEST ARTICLES / SIDEBAR
   ============================================================ */
.content-area { padding-top: 26px; padding-bottom: 25px; }
.content-grid { display: grid; grid-template-columns: 1.78fr .92fr; gap: 28px; }
.content-grid.sidebar-only { grid-template-columns: minmax(260px, 340px); justify-content: end; }
.latest-articles > h2 { margin-bottom: 16px; }
.article-row { display: grid; grid-template-columns: 205px 1fr; gap: 18px; align-items: start; margin-bottom: 12px; }
.article-row img { width: 205px; height: 86px; object-fit: cover; border-radius: 5px; }
.article-row h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.25; }
.meta { margin-bottom: 7px; color: #66717c; font-size: 8.5px; text-transform: uppercase; letter-spacing: .02em; }
.meta span { padding: 0 4px; }
.article-row p { margin: 0; font-size: 11px; color: #3f4954; line-height: 1.55; }
.latest-articles > .button { margin-top: 0; }
.sidebar { display: grid; gap: 12px; align-content: start; }
.side-card { border: 1px solid var(--line); border-radius: 7px; padding: 14px 13px; background: #fff; }
.side-card > h2 { margin-bottom: 13px; }
.popular-row { display: grid; grid-template-columns: 77px 1fr; gap: 11px; align-items: center; margin-bottom: 11px; }
.popular-row:last-child { margin-bottom: 0; }
.popular-row img { width: 77px; height: 51px; object-fit: cover; border-radius: 5px; background: #eef1f4; }
.popular-row h3 { margin: 0; font-size: 10.5px; line-height: 1.35; }
.rating.small { margin-top: 5px; gap: 6px; }
.rating.small span { font-size: 9px; }
.rating.small b { font-size: 8.5px; }
.about-card p { margin: 0 0 7px; font-size: 10.5px; line-height: 1.55; color: #28313b; }
.about-card a { display: inline-block; margin-top: 2px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-wrap { padding: 0 0 0; }
.newsletter { min-height: 80px; border-radius: 7px 7px 0 0; padding: 14px 25px; display: grid; grid-template-columns: 50px 1fr 1.25fr; align-items: center; gap: 15px; color: #fff; background: linear-gradient(100deg, #066add 0%, #0b84f8 63%, #0799ff 100%); }
.newsletter-icon { width: 42px; height: 36px; border: 2px solid #fff; border-radius: 4px; display: grid; place-items: center; font-size: 25px; }
.newsletter-copy h2 { margin: 0 0 2px; font-size: 13px; }
.newsletter-copy p { margin: 0; font-size: 10.5px; line-height: 1.5; }
.newsletter-form { display: grid; grid-template-columns: 1fr 116px; }
.newsletter-form input { height: 39px; border: 0; border-radius: 4px 0 0 4px; padding: 0 15px; background: #fff; color: #222; outline: 0; font-size: 10px; }
.newsletter-form button { border: 0; background: #0a1520; color: #fff; border-radius: 0 4px 4px 0; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.newsletter-form .newsletter-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; color: #fff; font-size: 10px; line-height: 1.35; }
.newsletter-form .newsletter-consent input { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; padding: 0; accent-color: #071421; }
.newsletter-form .newsletter-consent a { color: #fff; font-weight: 700; text-underline-offset: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: linear-gradient(100deg, #06111d, #03101b); color: #fff; padding: 20px 0 19px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr .9fr 1.08fr 1.7fr; gap: 33px; align-items: start; }
.footer-brand .brand-mark { width: 38px; height: 31px; }
.footer-brand .brand-copy b { font-size: 12px; }
.footer-brand .brand-copy strong { font-size: 17px; margin-top: 5px; }
.footer-brand-col p { margin: 13px 0; color: #d7e0e8; font-size: 9.5px; line-height: 1.55; max-width: 185px; }
.footer-social { display: flex; gap: 15px; font-size: 12px; }
.footer-grid h3 { margin: 2px 0 12px; font-size: 10px; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand-col) > a { display: block; margin-bottom: 6px; color: #e8edf2; font-size: 9.5px; }
.footer-menu, .footer-categories { margin: 0; padding: 0; list-style: none; }
.footer-menu a, .footer-categories a { display: block; margin-bottom: 6px; color: #e8edf2; font-size: 9.5px; }
.recent-row { display: grid !important; grid-template-columns: 66px 1fr; gap: 10px; align-items: center; margin-bottom: 9px !important; }
.recent-row img { width: 66px; height: 47px; object-fit: cover; border-radius: 5px; background: #e9edf0; }
.recent-row b { display: block; font-size: 9px; line-height: 1.35; }
.recent-row small { display: block; margin-top: 4px; text-transform: uppercase; color: #afbbc6; font-size: 7px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 12px; }
.copyright { color: #aab5bf; font-size: 8px; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px 14px; }
.legal-links a { color: #c8d2db; font-size: 8px; text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover, .legal-links a:focus { color: #fff; }

/* WordPress content templates */
.archive-page, .single-page, .error-page { min-height: 58vh; padding-top: 48px; padding-bottom: 55px; }
.archive-header { margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.archive-header h1, .entry-header h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.archive-description { color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.archive-grid .article-row { grid-column: 1 / -1; }
.post-list .article-row { margin-bottom: 24px; }
.narrow { max-width: 760px; }
.entry-content-wrap { min-width: 0; }
.entry-header { margin-bottom: 24px; }
.entry-header .rating { margin-top: 16px; }
.entry-hero { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; line-height: 1.2; }
.entry-content a { color: var(--blue-2); text-decoration: underline; }
.entry-content img { height: auto; border-radius: 6px; }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: 6px; background: #101a24; color: #eaf3fb; }
.affiliate-notice { display: grid; gap: 4px; margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid var(--blue); border-radius: 5px; background: #edf6ff; color: #22384d; font-size: 12px; line-height: 1.55; }
.affiliate-notice strong { color: #0a5fb8; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.entry-content .affiliate-link { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 6px 0; padding: 10px 14px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.entry-content .affiliate-link span { font-size: 10px; font-weight: 700; }
.entry-content .affiliate-link:hover, .entry-content .affiliate-link:focus { background: var(--blue-2); color: #fff; }
.contact-form-wrap { margin-top: 28px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.contact-form-wrap h2 { margin: 0 0 20px; }
.contact-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form-field { display: grid; gap: 7px; }
.contact-form-field-wide, .contact-form-privacy, .contact-form .button { grid-column: 1 / -1; }
.contact-form label { color: var(--ink); font-size: 13px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #b9c5cf; border-radius: 5px; padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(6, 106, 221, .16); }
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form-privacy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.contact-form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-form-message { margin: 0 0 20px; padding: 12px 14px; border-radius: 5px; font-size: 13px; font-weight: 700; }
.contact-form-message.is-success { border-left: 4px solid #238636; background: #eaf7ed; color: #175c25; }
.contact-form-message.is-error { border-left: 4px solid #c83232; background: #fff0f0; color: #8b1f1f; }
.verdict-box { margin: 34px 0; padding: 24px; border-left: 5px solid var(--blue); border-radius: 6px; background: var(--soft); }
.verdict-box h2 { margin-top: 0; }
.verdict-box .button { margin-top: 16px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; }
.page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.sidebar ul { margin: 0; padding-left: 18px; }
.sidebar li { margin-bottom: 6px; font-size: 13px; }
.empty-note { color: var(--muted); font-size: 12px; }
.comments-area { margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 24px; }
.comment-body { margin-bottom: 24px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; }
.comment-form .submit { border: 0; border-radius: 4px; padding: 11px 18px; background: var(--blue); color: #fff; font-weight: 800; }
.error-page { text-align: center; }
.error-code { margin: 0; color: var(--blue); font-size: 90px; line-height: 1; font-weight: 900; }
.error-page .search-form { margin: 24px auto; }
.newsletter { position: relative; }
.newsletter-message { position: absolute; right: 25px; bottom: 2px; margin: 0; font-size: 9px; }
.skip-link:focus { position: fixed; z-index: 99999; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 14px; background: #fff; color: #000; }

/* ============================================================
   RESPONSIVE LAYOUT
   ============================================================ */
@media (max-width: 940px) {
  .main-nav, .main-nav .menu { gap: 16px; }
  .header-social { margin-left: 20px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-arrow { display: none; }
  .category-grid { grid-template-columns: repeat(5, 1fr); padding: 6px 0; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, .8fr); }
  .recent-posts { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header { height: auto; padding: 14px 0; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; width: 100%; height: auto; order: 3; padding-top: 4px; }
  .main-nav.is-open { display: block; }
  .main-nav .menu { display: grid; height: auto; gap: 0; }
  .main-nav .menu > li { display: block; }
  .main-nav a { min-height: 40px; white-space: nowrap; }
  .main-nav a.active::after { bottom: 0; }
  .header-social { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 26px; }
  .hero-art { margin: 0 -22px; min-height: 255px; }
  .content-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 44px 1fr; }
  .newsletter-form { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand-col, .recent-posts { grid-column: 1 / -1; }
  .footer-legal, .legal-links { justify-content: flex-start; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-copy b { font-size: 14px; }
  .brand-copy strong { font-size: 20px; }
  .header-social a:not(.search) { display: none; }
  .hero-copy h1 { font-size: 41px; }
  .desktop-only { display: none; }
  .review-grid { grid-template-columns: 1fr; }
  .review-image { height: 190px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-row { grid-template-columns: 110px 1fr; }
  .article-row img { width: 110px; height: 88px; }
  .newsletter { padding: 16px; }
  .newsletter-form { grid-template-columns: 1fr 100px; }
  .footer-grid { gap: 22px; }
  .archive-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}
