/* =========================================================================
   RubyManager marketing site — LIGHT theme
   Re-skinned to match the .dc.html comps (Instrument Sans, off-white bg,
   blue #2f5fc4 accent, green #1f9d55, near-black ink #16181d).
   Class names are unchanged from the previous theme so the PHP markup needs
   no edits — this file is a drop-in restyle.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces */
  --bg: #fdfdfc;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --surface-3: #f4f5f2;
  --blue-tint: #f0f4fb;
  --green-tint: #f4faf2;
  --green-border: #cfe6cf;

  /* Ink / text */
  --ink: #16181d;
  --ink-2: #3d414b;
  --muted: #5f6470;
  --muted-2: #9a9ea8;

  /* Borders */
  --border: #e3e4e1;
  --border-2: #ececea;
  --border-strong: #d8d9d6;

  /* Accents */
  --blue: #2f5fc4;
  --blue-hover: #264fa5;
  --blue-ink: #1e448f;
  --green: #1f9d55;
  --green-hover: #187f44;
  --dark-btn: #16181d;
  --dark-btn-hover: #2c2f36;

  /* Feedback */
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;

  /* Radius / shadow */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --pill: 99px;
  --shadow-card: 0 16px 40px -24px rgba(22,24,29,0.22);
  --shadow-lg: 0 24px 60px -30px rgba(22,24,29,0.25);
  --shadow-blue: 0 20px 50px -28px rgba(47,95,196,0.4);

  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(253,253,252,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.nav-logo:hover { color: var(--ink); }
.nav-logo .dot { width: 28px; height: 28px; background: var(--ink); color: #fff; border-radius: 7px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-link-plain { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-link-plain:hover { color: var(--ink); }
.btn-nav { background: var(--dark-btn); color: #fff; border: none; padding: 9px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background 0.15s; display: inline-block; }
.btn-nav:hover { background: var(--dark-btn-hover); color: #fff; }
.lang-toggle { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border-2, #e2e8f0); transition: border-color .15s, color .15s; }
.lang-toggle:hover { border-color: var(--accent, #7b2fbe); color: var(--accent, #7b2fbe); }
.lang-toggle-mobile { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 8px 0; }
.lang-toggle-mobile:hover { color: var(--accent, #7b2fbe); }

/* Mobile hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; width: 100%; z-index: 99; background: rgba(253,253,252,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-2); flex-direction: column; padding: 0.5rem 5%; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--muted); padding: 0.85rem 0; border-bottom: 1px solid var(--border-2); font-size: 0.95rem; font-weight: 500; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* ===== BUTTONS ===== */
.btn-primary, a.btn-primary { background: var(--blue); color: #fff; border: none; padding: 13px 26px; border-radius: 9px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.15s, transform 0.15s; display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary, a.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); padding: 13px 26px; border-radius: 9px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: border-color 0.15s; display: inline-block; text-align: center; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* ===== HERO ===== */
.hero {
  min-height: 92vh; display: flex; align-items: center; padding: 120px 5% 80px;
  background: var(--bg);
  gap: 5%;
}
.hero-text { flex: 1; max-width: 580px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-tint); border: 1px solid #d5e0f3; border-radius: var(--pill); padding: 6px 14px; font-size: 0.8rem; font-weight: 500; color: var(--blue); margin-bottom: 1.4rem; }
.hero-badge span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.07; letter-spacing: -0.025em; margin-bottom: 1.1rem; color: var(--ink); }
.hero h1 .grad { background: linear-gradient(120deg, #2f5fc4, #5a86e0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.12rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.8rem; max-width: 500px; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.4rem; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat-label { font-size: 0.78rem; color: var(--muted-2); margin-top: 2px; }

/* ===== DEVICE MOCKUPS (light) ===== */
.hero-devices { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 420px; }

/* ===== APP SCREENSHOT FRAME =====
   Browser-chrome card for real widescreen app captures (all screenshots are
   1445x840). Replaces the old phone/tablet-shaped frames, which squashed
   these wide images down to a sliver. Used in the hero, the index.php
   showcase sections, and the features.php feature-detail media. */
.app-frame { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); width: 100%; cursor: zoom-in; }
.app-frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border-2); }
.app-frame-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.app-frame-url { margin-left: 8px; font-size: 11px; color: var(--muted-2); background: var(--surface); border: 1px solid var(--border-2); border-radius: 6px; padding: 2px 12px; }
.app-frame img { width: 100%; display: block; }

/* Hero: two overlapping frames, sized/offset for the wide aspect ratio */
.hero-visual { position: relative; width: 100%; max-width: 420px; }
.hero-visual .app-frame.primary { position: relative; z-index: 2; }
.hero-visual .app-frame.secondary { position: absolute; z-index: 1; width: 58%; left: -8%; bottom: -13%; box-shadow: var(--shadow-card); }

/* Single frame usage: index.php showcases + features.php feature-detail media */
.showcase-frame { width: 100%; max-width: 420px; }

/* ===== LIGHTBOX ===== */
.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: min(88vw, 520px); max-height: 82vh;
  border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  object-fit: contain; cursor: default;
}
.lb-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,0.3); }

/* ===== SECTIONS ===== */
section { padding: 88px 5%; }
.section-badge { display: inline-block; background: transparent; border: none; padding: 0; font-size: 0.8rem; font-weight: 600; color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.9rem; color: var(--ink); }
.section-sub { font-size: 1.02rem; color: var(--muted); line-height: 1.6; max-width: 580px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ===== VERTICALS ===== */
.verticals { padding: 44px 5%; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.verticals p { text-align: center; color: var(--muted-2); font-size: 0.85rem; margin-bottom: 1.5rem; }
.vertical-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; }
.vertical-pill { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); padding: 7px 18px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.vertical-pill .icon { font-size: 1.1rem; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ink); }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ===== SHOWCASE ===== */
.showcase { display: flex; align-items: center; gap: 6%; padding: 72px 5%; }
.showcase.reverse { flex-direction: row-reverse; }
.showcase-text { flex: 1; }
.showcase-device { flex: 1; display: flex; justify-content: center; }
.showcase-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.9rem; line-height: 1.15; color: var(--ink); }
.showcase-text p { color: var(--muted); line-height: 1.65; margin-bottom: 1.3rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; align-items: baseline; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.check-list li::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f058"; color: var(--green); flex-shrink: 0; }

/* ===== PRICING ===== */
.pricing { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 3rem; align-items: stretch; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.9rem; display: flex; flex-direction: column; }
.pricing-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-blue); position: relative; }
.featured-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 4px 14px; border-radius: var(--pill); }
.plan-name { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.pricing-card.featured .plan-name { color: var(--blue); }
.plan-price { font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.plan-price span { font-size: 0.95rem; font-weight: 400; color: var(--muted-2); }
.plan-desc { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.4rem; line-height: 1.5; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; margin-bottom: 1.4rem; }
.plan-features li { font-size: 0.9rem; color: var(--ink-2); display: flex; align-items: baseline; gap: 9px; }
.plan-features li .chk { color: var(--green); font-weight: 700; }
.plan-features li .x { color: #c9cbc7; }
.plan-features li.muted { color: #b3b6bd; }
.btn-plan { border-radius: 9px; padding: 11px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.15s; text-align: center; border: none; display: block; }
.btn-plan.outline { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); }
.btn-plan.outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-plan.solid { background: var(--blue); color: #fff; }
.btn-plan.solid:hover { background: var(--blue-hover); color: #fff; }

/* ===== ADDON (WhatsApp credits — green panel) ===== */
.addon-card { background: var(--green-tint); border: 1px solid var(--green-border); border-radius: var(--r-lg); padding: 1.9rem; margin-top: 1.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.addon-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.addon-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--ink); }
.addon-text p { font-size: 0.88rem; color: var(--muted); }
.addon-tiers { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.addon-tier { background: var(--surface); border: 1px solid #dde5da; border-radius: var(--r); padding: 8px 16px; font-size: 0.82rem; color: var(--ink-2); }
.addon-tier strong { color: var(--green-hover); }

/* ===== FAQ ===== */
.faq { max-width: 720px; margin: 2.5rem auto 0; display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border-2); }
.faq-item:last-child { border-bottom: 1px solid var(--border-2); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-size: 0.98rem; font-weight: 600; padding: 1.15rem 0.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit; }
.faq-q .chevron { transition: transform 0.2s; color: var(--blue); flex-shrink: 0; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--muted); font-size: 0.92rem; line-height: 1.65; padding: 0 0.25rem; }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 1.15rem; }

/* ===== FEATURE DETAIL (features.php) ===== */
.feature-detail { display: flex; align-items: center; gap: 6%; padding: 64px 5%; border-bottom: 1px solid var(--border-2); }
.feature-detail:last-of-type { border-bottom: none; }
.feature-detail.reverse { flex-direction: row-reverse; }
.feature-detail-text { flex: 1; }
.feature-detail-text .feature-icon { margin-bottom: 1.1rem; }
.feature-detail-text h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.9rem; color: var(--ink); }
.feature-detail-text p { color: var(--muted); line-height: 1.65; margin-bottom: 1.1rem; }
.feature-detail-media { flex: 1; display: flex; justify-content: center; }

/* ===== CTA ===== */
.cta-section { padding: 96px 5%; text-align: center; background: var(--surface-2); border-top: 1px solid var(--border-2); }
.cta-section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.9rem; color: var(--ink); }
.cta-section p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.8rem; }

/* ===== AUTH / FORM PAGES ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 110px 5% 60px; background: var(--surface-2); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.5rem; box-shadow: var(--shadow-card); }
.auth-card.wide { max-width: 520px; }
.auth-head { text-align: center; margin-bottom: 1.6rem; }
.auth-head .dot { width: 42px; height: 42px; background: var(--ink); border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; margin: 0 auto 1rem; }
.auth-head h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.35rem; color: var(--ink); }
.auth-head p { color: var(--muted); font-size: 0.9rem; }
.form-group { margin-bottom: 1.05rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.form-control, select.form-control, textarea.form-control {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 11px 13px; color: var(--ink); font-size: 0.95rem;
  font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,95,196,0.12); }
.form-control::placeholder { color: var(--muted-2); }
select.form-control option { background: var(--surface); color: var(--ink); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.05rem; }
.form-check input { margin-top: 3px; accent-color: var(--blue); }
.form-check a { color: var(--blue); text-decoration: underline; }
.btn-block { width: 100%; }
.auth-alt { text-align: center; margin-top: 1.3rem; font-size: 0.88rem; color: var(--muted); }
.auth-alt a { color: var(--blue); font-weight: 600; }
.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 0.3rem; }

/* ===== PAYMENT STEP (register.php step 2) ===== */
.plan-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem 1.4rem; margin-bottom: 1.3rem; }
.plan-card-head { display: flex; align-items: baseline; justify-content: space-between; }
.plan-name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.plan-price { font-weight: 700; color: var(--ink); font-size: 1.3rem; }
.plan-price small { font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.plan-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }
.pay-methods { display: flex; gap: 0.6rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.pay-method { flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 11px 10px; font-size: 0.85rem; color: var(--muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:has(input:checked) { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-tint); }
#payBtn.is-loading { pointer-events: none; opacity: 0.85; }
.pay-skip { text-align: center; margin-top: 1.1rem; font-size: 0.82rem; }
.pay-skip a { color: var(--muted-2); text-decoration: underline; }
.pay-skip a:hover { color: var(--muted); }
.success-icon { font-size: 2.6rem; color: var(--green); margin-bottom: 0.9rem; }

/* ===== ALERTS ===== */
.alert { border-radius: var(--r-sm); padding: 11px 15px; font-size: 0.9rem; margin-bottom: 1.2rem; border: 1px solid transparent; }
.alert-error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.alert-success { background: var(--green-tint); border-color: var(--green-border); color: var(--green-hover); }
.alert-info { background: var(--blue-tint); border-color: #d5e0f3; color: var(--blue-ink); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-hero { padding: 130px 5% 50px; text-align: center; background: var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.9rem; color: var(--ink); }
.page-hero h1 .grad { background: linear-gradient(120deg, #2f5fc4, #5a86e0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; }
.about-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); }
.about-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--muted); line-height: 1.75; margin-bottom: 1.1rem; font-size: 1rem; }
.prose h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 1.8rem 0 0.9rem; color: var(--ink); }

/* ===== DASHBOARD ===== */
.dash-wrap { min-height: 100vh; padding: 120px 5% 80px; background: var(--surface-2); }
.dash-welcome { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.5rem; max-width: 900px; margin: 0 auto; box-shadow: var(--shadow-card); }
.dash-welcome h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.7rem; color: var(--ink); }
.dash-welcome p { color: var(--muted); line-height: 1.65; margin-bottom: 1.4rem; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.dash-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem; }
.dash-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ink); }
.dash-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

/* ===== FOOTER ===== */
footer { padding: 32px 5%; border-top: 1px solid var(--border-2); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer .foot-logo { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
footer p { font-size: 0.82rem; color: var(--muted-2); }
footer .foot-links { display: flex; gap: 1.3rem; }
footer .foot-links a { font-size: 0.82rem; color: var(--muted-2); }
footer .foot-links a:hover { color: var(--ink); }

/* ===== ADD-ONS PAGE ===== */
.addons-wrap { max-width: 900px; margin: 6rem auto 4rem; padding: 0 5%; }
.addons-head { text-align: center; margin-bottom: 2.5rem; }
.addons-head h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.addons-head p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.addon-section { margin-bottom: 3rem; }
.addon-section h2 { font-size: 1.15rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.addon-section-note { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.25rem; }

.addon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.addon-card { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 1.5rem; text-align: center; transition: box-shadow .18s, border-color .18s; }
.addon-card:hover { border-color: var(--blue); box-shadow: 0 4px 18px rgba(47,95,196,.10); }
.addon-card--popular { border-color: var(--blue); }

.addon-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 0 0 8px 8px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

.addon-icon { font-size: 1.75rem; color: var(--blue); margin-bottom: 0.65rem; margin-top: 0.5rem; }
.addon-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.addon-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.addon-price { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.2rem; }
.addon-price-note { color: var(--muted-2); font-size: 0.78rem; margin-bottom: 1rem; }

.addon-footer-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }
.addon-footer-note p { margin-bottom: 0.5rem; }
.addon-footer-note p:last-child { margin-bottom: 0; }
.addon-footer-note i { margin-right: 0.35rem; }

/* ===== PURCHASES PAGE ===== */
.purchases-wrap { max-width: 900px; margin: 6rem auto 4rem; padding: 0 5%; }
.purchases-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.purchases-head h1 { font-size: 1.75rem; }

.purchases-empty { text-align: center; padding: 4rem 0; color: var(--muted); }
.purchases-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.purchases-empty h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.purchases-empty p { margin-bottom: 1.25rem; }

.purchases-table-wrap { overflow-x: auto; }
.purchases-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.purchases-table th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--border); color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.purchases-table td { padding: 0.75rem; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.purchases-table tr:last-child td { border-bottom: none; }
.purchases-table tr:hover td { background: var(--surface-2); }
.p-id { color: var(--muted-2); font-size: 0.8rem; }
.p-date { white-space: nowrap; color: var(--muted); font-size: 0.85rem; }

.tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.tag-whatsapp { background: #e8f5e9; color: #2e7d32; }

.status-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.18rem 0.6rem; border-radius: 99px; }
.status-pending { background: #fff9e0; color: #92680a; }
.status-paid    { background: #e3f0ff; color: #1e4fa0; }
.status-active  { background: #e8f5e9; color: #2e7d32; }
.status-failed  { background: #fdecea; color: #b71c1c; }

.text-muted { color: var(--muted); font-size: 0.8rem; }
.purchases-footer-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.85rem; }

/* ===== DASHBOARD (updated) ===== */
.dash-wrap { max-width: 820px; margin: 6rem auto 4rem; padding: 0 5%; }

.dash-welcome { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 2rem; margin-bottom: 2rem; }
.dash-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); background: var(--surface-3); border-radius: 99px; padding: 0.25rem 0.75rem; margin-bottom: 0.85rem; }
.dash-status span { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; display: inline-block; }
/* Real account-provisioning states, driven by registrations.status */
.dash-status.ready { color: var(--green-hover); background: var(--green-tint); }
.dash-status.ready span { background: var(--green); }
.dash-status.error { color: var(--danger); background: var(--danger-bg); }
.dash-status.error span { background: var(--danger); }
.dash-welcome h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.dash-welcome p { color: var(--muted); margin-bottom: 1.25rem; }

.dash-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.dash-action-card {
  width: 148px; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 1.4rem 1rem 1.1rem; text-align: center; text-decoration: none;
  color: var(--ink); font-size: 0.85rem; font-weight: 600;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dash-action-card i { font-size: 1.7rem; color: var(--blue); }
.dash-action-card:hover {
  border-color: var(--blue); box-shadow: 0 6px 20px rgba(47,95,196,.13);
  transform: translateY(-3px); text-decoration: none; color: var(--ink);
}

.dash-section { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dash-section-head h2 { font-size: 1rem; font-weight: 700; }
.dash-section-head a { font-size: 0.85rem; color: var(--blue); }

.dash-empty { text-align: center; padding: 1.5rem; color: var(--muted); font-size: 0.9rem; }

.dash-purchases { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-purchase-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border-2); }
.dash-purchase-row:last-child { border-bottom: none; }
.dpr-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--blue); flex-shrink: 0; }
.dpr-info { flex: 1; font-size: 0.875rem; }
.dpr-info strong { display: block; }
.dpr-info small { color: var(--muted); }
.dpr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.dpr-price { font-weight: 700; font-size: 0.9rem; }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.dash-card { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 1.1rem; }
.dash-card h3 { font-size: 0.9rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.dash-card p { color: var(--muted); font-size: 0.83rem; }

.btn-outline { display: block; text-align: center; padding: 0.7rem 1rem; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; margin-bottom: 0.5rem; transition: background .15s; }
.btn-outline:hover { background: var(--blue-tint); text-decoration: none; }
.btn-link { display: block; text-align: center; padding: 0.5rem; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.btn-link:hover { color: var(--ink); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 110px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-devices { min-height: 0; margin-top: 2.5rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .showcase, .showcase.reverse { flex-direction: column; }
  .showcase-device { margin-top: 2rem; }
  .showcase-frame { max-width: 420px; margin: 0 auto; }
  .feature-detail, .feature-detail.reverse { flex-direction: column; }
  .feature-detail-media { margin-top: 2rem; display: flex; justify-content: center; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .hero-visual { max-width: 320px; }
  .hero-visual .app-frame.secondary { left: -5%; bottom: -10%; }
  .dash-action-card { width: calc(33.33% - 0.75rem); min-width: 100px; }
}
@media (max-width: 560px) {
  section { padding: 60px 5%; }
  .auth-card { padding: 1.75rem; }
  .form-row { flex-direction: column; gap: 0; }
  footer { flex-direction: column; text-align: center; }
  .dash-action-card { width: calc(50% - 0.5rem); }
}

/* ===== PRICING MODEL V2 ===== */

/* Free/Pro-only pricing grid (no Enterprise tier) reads better a bit narrower */
.pricing-grid--two { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Segmented billing-period control — used on pricing.php (buttons) and
   register.php / subscription.php (radio-wrapped labels). */
.period-tabs { display: flex; gap: 0.4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 4px; margin-bottom: 1.1rem; }
.period-tab { flex: 1; text-align: center; border: none; background: none; border-radius: var(--pill); padding: 8px 10px; font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; }
.period-tab input { position: absolute; opacity: 0; pointer-events: none; }
.period-tab.active, .period-tab:has(input:checked) { background: var(--blue); color: #fff; }

.plan-desc--seasonal { background: var(--blue-tint); border: 1px solid #d5e0f3; border-radius: var(--r-sm); padding: 0.6rem 0.8rem; color: var(--blue-ink); font-size: 0.82rem; line-height: 1.55; }
.plan-desc--seasonal i { margin-right: 0.3rem; }

/* Plan-selection cards (register.php step 2, subscription.php upgrade) */
.plan-select-wrap { max-width: 760px; }
.plan-select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.plan-select-card { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-select-card--featured { border-color: var(--blue); background: var(--surface); box-shadow: var(--shadow-blue); }
.plan-select-name { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.plan-select-card--featured .plan-select-name { color: var(--blue); }
.plan-select-price { font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.plan-select-price small { font-size: 0.85rem; font-weight: 400; color: var(--muted-2); margin-left: 2px; }
.plan-select-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; flex: 1; }

/* Month picker (seasonal declaration) */
.month-picker { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); padding: 0.9rem; margin: 0.2rem 0 0.4rem; }
.month-picker-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.55rem; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.month-chip { position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 7px 4px; font-size: 0.78rem; color: var(--muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.month-chip input { position: absolute; opacity: 0; pointer-events: none; }
.month-chip:has(input:checked) { border-color: var(--green); color: var(--green-hover); background: var(--green-tint); font-weight: 600; }
.month-picker-hint { font-size: 0.76rem; color: var(--muted-2); margin-top: 0.6rem; line-height: 1.5; }

/* Plan badge (dashboard.php welcome card) */
.plan-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; padding: 0.22rem 0.7rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 0.5rem; vertical-align: middle; }
.plan-badge--free { background: #fff3e0; color: #9a5b00; }
.plan-badge--pro { background: #f2e9fb; color: #6d2fb0; }

/* Season status card (dashboard.php / subscription.php) */
.season-card { display: flex; align-items: center; gap: 0.9rem; }
.season-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--muted-2); }
.season-status-dot.is-active { background: var(--green); }
.season-status-dot.is-paused { background: #f59e0b; }
.season-months { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.season-month-pill { font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.season-month-pill.is-current { background: var(--green-tint); color: var(--green-hover); }

/* Subscription management page */
.subscription-wrap { max-width: 780px; margin: 6rem auto 4rem; padding: 0 5%; }
.subscription-head { margin-bottom: 2rem; }
.subscription-head h1 { font-size: 1.75rem; }
.sub-current-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.75rem; margin-bottom: 1.5rem; }
.sub-current-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.6rem; }
.sub-current-head h2 { font-size: 1.2rem; }
.sub-meta { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.sub-actions form { display: inline; }
.btn-danger-outline { background: var(--surface); color: var(--danger); border: 1.5px solid var(--danger-border); padding: 10px 20px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-danger-outline:hover { background: var(--danger-bg); }

@media (max-width: 480px) {
  .month-grid { grid-template-columns: repeat(3, 1fr); }
}
