/*
Theme Name: AbleSign
Theme URI: https://ablesign.tv
Description: Marketing theme for the AbleSign digital signage platform.
Version: 1.0.0
Author: AbleSign
Author URI: https://ablesign.tv
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ablesign
*/

/* ---- Theme color variables ---- */
:root {
  /* Primary */
  --color-primary: #a7458e;
  --color-primary-hover: #8e3a78;
  --color-primary-rgb: 167, 69, 142;

  /* Buttons — MUI blue to match the CMS app */
  --color-button: #1976d2;
  --color-button-hover: #115293;
  --color-button-rgb: 25, 118, 210;

  /* Text */
  --color-text: #2d2d2d;
  --color-text-muted: #666666;
  --color-text-dark-muted: #4a4a4a;
  --color-text-light: #999999;

  /* Backgrounds */
  --color-bg-light: #f7f7f8;
  --color-bg-gray: #f0f0f2;

  /* Borders */
  --color-border: #e5e5e5;
  --color-border-light: #d5d5d5;

  /* Accent backgrounds */
  --color-primary-bg: #fdf2f8;
  --color-accent-green-bg: #f0fdf4;
  --color-accent-blue-bg: #eff6ff;

  /* Accent colors */
  --color-green: #00b894;
  --color-blue: #3b82f6;
  --color-amber: #f59e0b;
  --color-red: #ff6b6b;
  --color-error: #ef4444;
  --color-blue-dark: #1e40af;
}

/* ---- Flaticon (icon font from Olmo theme) ---- */
@font-face {
  font-family: "flaticon";
  src: url("fonts/flaticon.woff2") format("woff2"),
       url("fonts/flaticon.woff") format("woff"),
       url("fonts/flaticon.ttf") format("truetype");
  font-display: swap;
}
.cs-icon {
  font-family: flaticon !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cs-reward:before { content: "\f15a"; }
.cs-alarm-clock:before { content: "\f14f"; }
.cs-secure:before { content: "\f1a8"; }
.cs-stop:before { content: "\f164"; }
.cs-shuttle:before { content: "\f17e"; }
.cs-album:before { content: "\f18f"; }
.cs-star-1:before { content: "\f101"; }
.cs-time:before { content: "\f192"; }
.cs-click:before { content: "\f16d"; }
.cs-video:before { content: "\f161"; }
.cs-calendar:before { content: "\f12d"; }

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--color-text); background: #fff; line-height: 1.6; }
hr, .wp-block-separator { border-color: rgba(0,0,0,0.06); }

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-logo {
  font-size: 22px; font-weight: 700; color: var(--color-text);
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn-primary) { text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn-primary):hover { color: var(--color-primary); }

/* WordPress nav menu resets */
.nav-links ul { list-style: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; }
.nav-links li { display: inline; list-style: none; margin: 0; padding: 0; }
.nav-links li a { text-decoration: none; color: #525252; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links li a:hover { color: var(--color-primary); }

/* WP puts the CSS class on the <li>, so style li.btn-primary as the button */
.nav-links li.btn-primary { background: var(--color-button); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: background 0.2s, box-shadow 0.2s; }
.nav-links li.btn-primary:hover { background: var(--color-button-hover); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.nav-links li.btn-primary a { color: #fff; padding: 10px 24px; display: inline-block; }
.nav-links li.btn-primary a:hover { color: #fff; }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--color-button); color: #fff; border: none; padding: 10px 24px;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--color-button-hover); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary svg { width: 16px; height: 16px; }

/* Gutenberg button overrides */
.wp-block-button__link {
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.wp-block-button__link:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  background-color: var(--color-button-hover);
}

.btn-secondary {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 10px 24px; border-radius: 8px; font-size: 15px;
  font-weight: 600; border: 1px solid rgba(var(--color-button-rgb),0.5); background: #fff;
  color: var(--color-button); cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--color-button); background: rgba(var(--color-button-rgb),0.04); }

/* ---- Content link style (excludes header/footer) ---- */
main a:not(.wp-block-button__link):not(.btn-secondary):not(.btn-hero-white):not(.nav-logo):not(.store-badge-link) {
  color: var(--color-button); text-decoration: none; transition: color 0.2s;
}
main a:not(.wp-block-button__link):not(.btn-secondary):not(.btn-hero-white):not(.nav-logo):not(.store-badge-link):visited {
  color: var(--color-button);
}
main a:not(.wp-block-button__link):not(.btn-secondary):not(.btn-hero-white):not(.nav-logo):not(.store-badge-link):hover {
  color: var(--color-button-hover); text-decoration: underline;
}

/* ---- Section patterns (reusable in Gutenberg) ---- */
section { padding: 100px 48px; }
.section-light { background: var(--color-bg-light); }
.section-gray { background: var(--color-bg-gray); }
.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 64px;
}
.section-tag {
  width: fit-content; font-size: 13px; font-weight: 600;
  color: var(--color-primary); background: var(--color-primary-bg); padding: 6px 14px;
  border-radius: 999px; margin-bottom: 16px; text-transform: uppercase;
  letter-spacing: 1px;
}
.section-header h2 {
  font-size: 48px; font-weight: 700; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.section-header p {
  font-size: 18px; color: var(--color-text-muted); line-height: 1.6;
}

/* ---- Gutenberg list defaults ---- */
.wp-block-list { padding-left: 1.2em; }

/* ---- Text utilities (Gutenberg className) ---- */
.text-muted { font-size: 16px; line-height: 1.7; color: var(--color-text-muted); }
.text-muted + .text-muted { margin-top: 16px; }
.text-muted-dark { font-size: 16px; line-height: 1.7; color: var(--color-text-dark-muted); }
.text-muted-dark + .text-muted-dark { margin-top: 16px; }
.text-subtitle { font-size: 18px; line-height: 1.7; color: var(--color-text-muted); max-width: 600px; }

/* ---- Footer ---- */
footer {
  padding: 64px 48px 32px;
  border-top: 1px solid var(--color-bg-gray);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1100px; margin: 0 auto 48px;
}
.footer-brand p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-top: 12px; }
.footer-brand .nav-logo { font-size: 20px; }
.footer-brand .nav-logo img { height: 30px; }
.footer-col h5 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--color-text-light); margin-bottom: 16px;
}
.footer-col h5.footer-subheading { margin-top: 20px; }
.footer-col a {
  display: block; font-size: 14px; color: var(--color-text-muted);
  text-decoration: none; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-primary); }

/* WordPress footer menu resets */
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; padding: 0; }
.footer-col li a { display: block; font-size: 14px; color: var(--color-text-muted); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col li a:hover { color: var(--color-primary); }

.footer-bottom {
  text-align: center; font-size: 13px; color: var(--color-text-light);
  border-top: 1px solid var(--color-bg-gray); padding-top: 24px;
  max-width: 1100px; margin: 0 auto;
}

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Gutenberg utility classes ---- */
.text-center { text-align: center; }
p.inline-pill {
  display: inline-block; border-radius: 999px;
  color: var(--color-primary); background-color: var(--color-primary-bg);
  padding: 6px 14px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.gradient-joy { background: linear-gradient(135deg, var(--color-green), #0984e3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- Section layout ---- */
.section-padded { padding: 100px 48px; }
.section-padded-lg { padding: 120px 48px; }
.section-padded-bottom-tight { padding: 100px 48px 40px; }
.section-light { background-color: var(--color-bg-light); }
.section-gray { background-color: var(--color-bg-gray); }
.section-header { margin-bottom: 64px; }

/* ---- Typography ---- */
.heading-xl { font-size: 56px; font-weight: 700; letter-spacing: -2px; line-height: 1.15; margin-bottom: 20px; }
.heading-lg { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.heading-md { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.heading-sm { font-size: 20px; font-weight: 700; margin-bottom: 8px; }

/* ---- Step circles ---- */
.step-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--color-primary-bg); color: var(--color-primary);
  font-size: 22px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* ---- Love/feature icons ---- */
.love-icon {
  display: inline-block; border-radius: 16px;
  padding: 12px; font-size: 36px;
  margin-bottom: 16px !important; line-height: 1;
  font-family: flaticon !important;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.love-icon-purple { color: var(--color-primary); background-color: var(--color-primary-bg); }
.love-icon-green { color: var(--color-green); background-color: var(--color-accent-green-bg); }
.love-icon-blue { color: var(--color-blue); background-color: var(--color-accent-blue-bg); }

/* ---- Device card labels ---- */
.device-card-col p { margin-top: 8px; font-size: 14px; font-weight: 600; }

/* ---- Button styles ---- */
.btn-primary-lg .wp-block-button__link {
  border-radius: 8px; background-color: var(--color-button); color: #fff;
  padding: 14px 32px; font-size: 17px;
}
.btn-primary-lg .wp-block-button__link:hover {
  background-color: var(--color-button-hover);
}

/* ---- How it Works images ---- */
.how-it-works-img { margin-bottom: 24px; height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.how-it-works-img img { max-height: 200px; width: auto; object-fit: contain; }

/* ---- Feature rows ---- */
.feature-row-cols { gap: 80px !important; max-width: 1100px; margin-left: auto; margin-right: auto; align-items: center; }
.feature-row-cols:not(:last-child) { border-bottom: 1px solid var(--color-bg-gray); padding-bottom: 80px; }
.feature-row-cols + .feature-row-cols { padding-top: 80px; }
.feature-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-bg); padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.feature-visual { border-radius: 14px; overflow: hidden; background: var(--color-bg-gray); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.1); position: relative; }
.comparison-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.comparison-check .icon-good { width: 24px; height: 24px; border-radius: 50%; background: var(--color-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.comparison-check .icon-bad { width: 24px; height: 24px; border-radius: 50%; background: var(--color-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.comparison-check strong { font-weight: 700; }
.comparison-check p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.mock-playlist { width: 100%; height: 100%; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mock-playlist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mock-playlist-header .title { font-size: 14px; font-weight: 700; color: var(--color-text); }
.mock-playlist-header .badge { font-size: 11px; background: var(--color-green); color: #fff; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.mock-media-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 10px; border: 1px solid var(--color-border); }
.mock-media-thumb { width: 56px; height: 36px; border-radius: 4px; flex-shrink: 0; }
.mock-media-info { flex: 1; }
.mock-media-info .name { font-size: 12px; font-weight: 600; color: var(--color-text); }
.mock-media-info .meta { font-size: 11px; color: var(--color-text-light); }
.mock-media-drag { color: var(--color-border-light); font-size: 16px; cursor: grab; }
.mock-schedule { width: 100%; height: 100%; padding: 20px; display: flex; flex-direction: column; }
.mock-schedule .header { font-size: 13px; font-weight: 700; color: var(--color-text); margin-bottom: 12px; }
.mock-timeline { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mock-time-slot { display: flex; align-items: center; gap: 10px; }
.mock-time-slot .time { font-size: 11px; color: var(--color-text-light); width: 48px; text-align: right; font-weight: 500; }
.mock-time-slot .bar { height: 24px; border-radius: 999px; flex: 1; }
.device-grid-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
.device-grid-row .device-card-col { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.device-card-img { margin-bottom: 0 !important; height: 140px; display: flex !important; align-items: center; justify-content: center; }
.device-card-img img { width: 140px; height: 140px; object-fit: contain; }
.device-card-img img.wp-image-141 { width: 100px; height: 100px; }

/* ---- Reasons to love grid ---- */
.love-cols { max-width: 900px; margin-left: auto; margin-right: auto; gap: 48px !important; }
.love-cols .wp-block-column { text-align: center; }
.love-cols + .love-cols { margin-top: 32px; }

/* ---- Testimonials ---- */
.testimonials-cols { gap: 24px !important; max-width: 1000px; margin-left: auto; margin-right: auto; }
.testimonial-card { background: #fff; border-radius: 14px; padding: 32px; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.testimonial-stars { color: var(--color-amber); font-size: 16px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 15px; line-height: 1.6; color: var(--color-text-dark-muted); margin-bottom: 20px; font-style: normal; margin-left: 0; margin-right: 0; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--color-primary); }
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 13px; color: var(--color-text-light); }

/* ---- Final CTA ---- */
.cta-final-cols { gap: 80px !important; max-width: 1100px; margin-left: auto; margin-right: auto; align-items: center; }
.cta-screenshot img { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 20px rgba(0,0,0,0.06); }

/* ---- Homepage hero ---- */
.hero-gradient {
  background: url('/wp-content/uploads/digital-signage-assets/2026/02/hero-bg.jpg') center/cover no-repeat;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 56px; font-weight: 700; line-height: 1.08;
  color: #fff; letter-spacing: -2px; margin-bottom: 20px;
}
.hero-text .subtitle {
  font-size: 18px; color: rgba(255,255,255,0.85);
  line-height: 1.6; margin-bottom: 36px; max-width: 440px;
}
.btn-hero-white {
  display: inline-block; background: #fff; color: var(--color-primary);
  font-size: 16px; font-weight: 600; padding: 14px 32px;
  border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--color-primary); text-decoration: none;
}
.hero-image { flex: 0 1 342px; display: flex; justify-content: center; }
.hero-image img {
  max-width: 100%; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 20px rgba(0,0,0,0.1);
}


/* ---- Our Story page ---- */
.about-hero-section { position: relative; overflow: hidden; }
.about-hero-section::before {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.08), rgba(var(--color-primary-rgb),0.02));
}
.about-hero-section::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 300px; height: 300px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.05), rgba(var(--color-primary-rgb),0.01));
}
.about-hero-section h2 {
  font-size: 60px; font-weight: 700; letter-spacing: -2.5px;
  line-height: 1.1; margin-bottom: 24px;
}
.about-hero-section .text-muted { font-size: 20px; line-height: 1.6; max-width: 620px; margin-left: auto; margin-right: auto; }
.story-heading {
  font-size: 32px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.2; margin-bottom: 16px;
}
.story-media .wp-block-media-text { padding: 60px 0; }
.story-media .wp-block-media-text:first-child { padding-top: 0; }
.story-media .wp-block-media-text:last-child { padding-bottom: 0; }
.story-media .wp-block-media-text__media img {
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.story-media .wp-block-separator {
  border-color: rgba(0,0,0,0.08) !important; margin: 0 !important;
}
.usecase-card {
  border-radius: 14px !important; border: 1px solid rgba(0,0,0,0.1) !important; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.usecase-card .wp-block-image { margin-bottom: 0; }
.usecase-card .wp-block-image img { height: 200px; object-fit: cover; width: 100%; }
.usecase-card-body { padding: 24px; }
.usecase-card-body h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.usecase-card-body p { font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }
.section-padded-bottom-tight .text-subtitle { max-width: 700px !important; margin-left: auto; margin-right: auto; }

/* ---- Legal pages (Privacy Policy, Terms) ---- */
.legal-content { max-width: 800px; margin-left: auto; margin-right: auto; }
.legal-content p { font-size: 16px; line-height: 1.7; color: var(--color-text-muted); }
.legal-content h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-top: 48px; margin-bottom: 16px; color: var(--color-text); }
.legal-content h3 { font-size: 22px; font-weight: 700; margin-top: 32px; margin-bottom: 12px; color: var(--color-text); }
.legal-content h4 { font-size: 18px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; color: var(--color-text); }
.legal-content ul { font-size: 16px; line-height: 1.7; color: var(--color-text-muted); padding-left: 24px; }
.legal-content li { margin-bottom: 8px; }

/* ---- Downloads page ---- */
.dl-hero {
  padding: 120px 48px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dl-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.08), rgba(var(--color-primary-rgb),0.02));
}
.dl-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.05), rgba(var(--color-primary-rgb),0.01));
}
.dl-hero * { position: relative; z-index: 1; }
.dl-hero + .section-padded { padding-top: 48px; }
.platform-cards { max-width: 900px; margin: 0 auto; }
.platform-card {
  background: #fff; border-radius: 14px; padding: 40px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.2s;
}
.platform-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.platform-card + .platform-card { margin-top: 24px; }
.platform-card-top { gap: 24px !important; align-items: center; margin-bottom: 20px; }
.platform-card-top .wp-block-column:first-child { flex: 0 0 100px !important; }
.platform-icon-wrap {
  width: 100px; height: 72px; border-radius: 16px;
  background: var(--color-bg-light); border: 1px solid var(--color-bg-gray);
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.platform-icon-wrap img { max-width: 80px; max-height: 52px; object-fit: contain; }
.platform-card-top h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; }
.platform-req { font-size: 14px !important; color: var(--color-text-light) !important; font-weight: 500; margin-bottom: 0 !important; }
.platform-version { font-size: 13px !important; color: var(--color-text-light) !important; margin-top: 4px !important; margin-bottom: 0 !important; }
.platform-version strong { color: var(--color-text-muted); font-weight: 600; }
.platform-card .text-muted { margin-bottom: 24px !important; }
.platform-card .text-muted a { font-weight: 500; }
.store-badge-link { margin-bottom: 0 !important; }
.store-badge-link img { height: 42px !important; width: auto !important; max-width: none !important; border-radius: 999px; transition: opacity 0.2s; }
.store-badge-link img:hover { opacity: 0.85; }
.platform-actions { gap: 16px !important; align-items: center; flex-wrap: wrap; }
.platform-actions > .wp-block-column { flex: 0 0 auto !important; flex-basis: auto !important; flex-grow: 0 !important; min-width: 0 !important; max-width: none !important; width: auto !important; }
.platform-or { font-size: 13px !important; color: var(--color-text-light) !important; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin: 0 !important; }
.platform-card .wp-block-button__link {
  border-radius: 8px; font-weight: 600;
  padding: 12px 24px; font-size: 15px;
  background-color: var(--color-button); color: #fff;
}
.platform-card .wp-block-button:not(.btn-dl-secondary) .wp-block-button__link:hover {
  background-color: var(--color-button-hover);
}
.btn-dl-secondary .wp-block-button__link {
  background: var(--color-bg-light) !important; color: var(--color-text-dark-muted) !important;
  border: 1px solid var(--color-border); box-shadow: none !important;
}
.btn-dl-secondary .wp-block-button__link::before {
  content: '';
  display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.btn-dl-secondary .wp-block-button__link:hover {
  background: var(--color-bg-gray) !important; border-color: var(--color-border-light); filter: none;
}
.platform-card .wp-block-button:not(.btn-dl-secondary) .wp-block-button__link[href*="download"]::before,
.platform-card .wp-block-button:not(.btn-dl-secondary) .wp-block-button__link[href$=".zip"]::before,
.platform-card .wp-block-button:not(.btn-dl-secondary) .wp-block-button__link[href$=".apk"]::before {
  content: '';
  display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.platform-card .wp-block-button:not(.btn-dl-secondary) .wp-block-button__link[target="_blank"]::before {
  content: '';
  display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---- Contact page (compact template) ---- */
.compact-page .contact-header {
  text-align: center; padding: 64px 48px 32px;
}
.compact-page .contact-header h1 {
  font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-bottom: 12px;
}
.compact-page .contact-header p {
  font-size: 17px; color: var(--color-text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto;
}
.compact-page .contact-header + .section-padded { padding-top: 48px; }
.contact-form-cols { max-width: 1100px; margin: 0 auto; gap: 48px !important; align-items: flex-start; }
.contact-form-info { padding-top: 8px; flex: 0 0 35% !important; }
.contact-form-wrap {
  background: #fff; border-radius: 14px; padding: 40px;
  border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.contact-form-wrap .wpcf7-form label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--color-text); margin-bottom: 20px;
}
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--color-text);
  background: var(--color-bg-light); transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact-form-wrap .wpcf7-form input[type="text"]:focus,
.contact-form-wrap .wpcf7-form input[type="email"]:focus,
.contact-form-wrap .wpcf7-form select:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.1); background: #fff;
}
.contact-form-wrap .wpcf7-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px; cursor: pointer;
}
.contact-form-wrap .wpcf7-form textarea { min-height: 150px; resize: vertical; }
.contact-form-wrap .wpcf7-form input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-button); color: #fff; border: none;
  padding: 8px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 8px; width: 100%;
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
  background: var(--color-button-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.contact-form-wrap .wpcf7-form .wpcf7-response-output {
  border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 16px 0 0;
}
.contact-form-wrap .wpcf7-form .wpcf7-not-valid-tip {
  font-size: 13px; color: var(--color-error); margin-top: 4px;
}
.contact-form-wrap .wpcf7-form .wpcf7-not-valid {
  border-color: var(--color-error);
}
a.contact-link { font-size: 16px; }
.contact-bottom-cols { max-width: 1100px; margin: 0 auto; gap: 48px !important; align-items: stretch; }
.contact-bottom-left { display: flex; flex-direction: column; justify-content: center; flex: 0 0 35% !important; }
.contact-email-row { display: flex !important; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.contact-email-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 !important;
}
.contact-icon-purple { background: var(--color-primary-bg); color: var(--color-primary); }
.contact-icon-green { background: var(--color-accent-green-bg); color: var(--color-green); }
.contact-icon-blue { background: var(--color-accent-blue-bg); color: var(--color-blue); }
.contact-email-detail { display: flex; flex-direction: column; }
.contact-email-detail p { margin: 0 !important; }
.contact-email-label { font-size: 14px !important; font-weight: 600; color: var(--color-text); margin-bottom: 2px !important; }
.contact-map-col { min-height: 380px; }
.contact-map-col iframe { width: 100%; height: 100%; min-height: 380px; border-radius: 16px; }

/* ---- Android players page ---- */
.players-intro { max-width: 900px; margin: 0 auto; gap: 48px !important; align-items: center; }
.players-intro-text h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; }
.players-intro-img img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.players-section-header { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.players-section-header h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.players-grid { max-width: 1000px; margin: 0 auto; gap: 24px !important; }
.players-grid + .players-grid { margin-top: 24px; }
.player-card {
  background: #fff; border-radius: 14px; padding: 32px 24px;
  border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 3px rgba(0,0,0,0.06); text-align: center;
  transition: box-shadow 0.2s;
}
.player-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.player-card-img { height: 160px; display: flex !important; align-items: center; justify-content: center; margin-bottom: 16px !important; }
.player-card-img img { max-height: 160px; max-width: 100%; width: auto !important; object-fit: contain; }
.player-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.player-card .text-muted { font-size: 14px; }

/* ---- Gutenberg alignment support ---- */
.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---- Knowledge Base ---- */
.eckb-kb-block-basic-layout,
.eckb-kb-block-featured-articles,
#eckb-archive-body,
#eckb-article-body { padding-left: 48px !important; padding-right: 48px !important; }
#eckb-article-content-header-row-3 { margin-bottom: 32px !important; }
.eckb-kb-block-featured-articles .epkb-ml-articles-list__title { display: none; }

/* ---- Knowledge Base contact ---- */
.eckb-kb-template:has(.kb-contact-section) { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.kb-contact-section { padding: 40px 48px !important; }
.kb-contact-section p { font-size: 20px; font-weight: 500; color: var(--color-text); }
.kb-contact-section a { color: var(--color-button); text-decoration: none; transition: color 0.2s; }
.kb-contact-section a:hover { color: var(--color-button-hover); }

/* ---- Knowledge Base articles ---- */
#eckb-article-content-body p { font-size: 16px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 20px; }
#eckb-article-content-body h2 { font-size: 24px; font-weight: 600; margin-top: 20px; margin-bottom: 20px; }
#eckb-article-content-body .wp-block-image { margin-bottom: 90px; }
#eckb-article-content-body .wp-block-image img { border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
#eckb-article-content-body .kb-alert-info { background: var(--color-accent-blue-bg); border-left: 4px solid var(--color-blue); padding: 20px 24px; margin-bottom: 20px; border-radius: 4px; }
#eckb-article-content-body .kb-alert-info p { color: var(--color-blue-dark); margin-bottom: 8px; }
#eckb-article-content-body .kb-alert-info p:last-child { margin-bottom: 0; }
#eckb-article-content-body a { color: var(--color-button); text-decoration: none; transition: color 0.2s; }
#eckb-article-content-body a:visited { color: var(--color-button); }
#eckb-article-content-body a:hover { color: var(--color-button-hover); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .eckb-kb-block-basic-layout,
  .eckb-kb-block-featured-articles,
  #eckb-archive-body,
  #eckb-article-body { padding-left: 24px !important; padding-right: 24px !important; }
  nav { padding: 16px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; gap: 4px; }
  .nav-links a:not(.btn-primary),
  .nav-links li a:not(.btn-primary) {
    font-size: 16px;
    padding: 10px 0;
  }
  .nav-links .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .nav-links li.btn-primary a {
    width: 100%;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 60px 24px; }
  .section-padded { padding: 60px 24px; }
  .section-padded-lg { padding: 80px 24px; }
  .heading-xl { font-size: 36px; letter-spacing: -1px; }
  .heading-lg { font-size: 32px; letter-spacing: -1px; }
  .heading-md { font-size: 28px; }
  .dl-hero { padding: 80px 24px 60px; }
  .platform-card { padding: 28px; }
  .platform-card-top { gap: 16px !important; }
  .platform-card-top .wp-block-column:first-child { flex: 0 0 80px !important; }
  .platform-icon-wrap { width: 80px; height: 56px; border-radius: 12px; }
  .platform-icon-wrap img { max-width: 60px; max-height: 40px; }
  .platform-card-top h3 { font-size: 18px; }
  .platform-actions { flex-direction: column; align-items: stretch !important; }
  .platform-actions .wp-block-column { flex: 1 1 100% !important; text-align: center; }
  .platform-or { text-align: center; }
  .compact-page .contact-header { padding: 48px 24px 0; }
  .compact-page .contact-header h1 { font-size: 30px; }
  .players-intro { gap: 32px !important; }
  .player-card { padding: 24px 16px; }
  .player-card-img { height: 120px; }
  .player-card-img img { max-height: 120px; }
  .contact-form-wrap { padding: 28px; }
  .contact-bottom-cols { gap: 32px !important; }
  .contact-map-col { min-height: 300px; }
  .contact-map-col iframe { min-height: 300px; }
  .hero-gradient { padding: 60px 24px 48px; }
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-text .subtitle { max-width: 100%; }
  .hero-image img { max-width: 90%; }
  .about-hero-section h2 { font-size: 36px; }
  .section-padded-bottom-tight { padding: 60px 24px 24px; }
  .story-media .wp-block-media-text__content { margin-top: 32px; }
}

/* ---- Guide / Tutorial pages ---- */
.guide-hero {
  padding: 120px 48px 100px;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.guide-hero * { position: relative; z-index: 1; }
.guide-hero .wp-block-cover__inner-container { text-align: center; }
.guide-hero h1 { color: #fff; }
.guide-hero .text-subtitle { color: rgba(255,255,255,0.85); margin-left: auto; margin-right: auto; }
.guide-intro { max-width: 800px; margin: 0 auto; text-align: center; }
.guide-step-cols { gap: 60px !important; max-width: 1100px; margin-left: auto; margin-right: auto; align-items: center; }
.guide-step-text h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; }
.guide-step-img img { border-radius: 12px; }
.guide-step-img-framed img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.10); }
.guide-cta-cols { gap: 60px !important; max-width: 1100px; margin-left: auto; margin-right: auto; align-items: center !important; }
.guide-cta-cols h2 { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.guide-cta-cols .text-muted { font-size: 18px; margin-bottom: 32px; }

/* ---- Advantages grid ---- */
.advantages-grid { max-width: 1000px; margin: 0 auto; gap: 48px 60px !important; }
.advantages-grid + .advantages-grid { margin-top: 48px; }
.advantage-item { display: flex; gap: 20px; align-items: flex-start; }
.advantage-icon { flex: 0 0 65px; width: 65px; display: flex; align-items: flex-start; justify-content: center; color: var(--color-primary); }
.advantage-icon .cs-icon { font-size: 65px; }
.advantage-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.advantage-item .text-muted { font-size: 15px; }

@media (max-width: 768px) {
  .guide-hero { padding: 80px 24px 60px; }
  .guide-step-cols { gap: 32px !important; }
  .guide-step-text h2 { font-size: 28px; }
  .guide-cta-cols { gap: 32px !important; }
  .guide-cta-cols h2 { font-size: 28px; }
  .advantages-grid { gap: 32px !important; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand { grid-column: auto; }
  footer { padding: 48px 24px 24px; }
}
