:root {
  --navy: #0B1F3A;
  --navy-dark: #0d202a;
  --gold: #C5A059;
  --white: #FFFFFF;
  --light: #f4f1eb;
  --text: #1E293B;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { color: var(--text); line-height: 1.6; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 28px; }
section[id] { scroll-margin-top: 104px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #5b8094;
  outline-offset: 4px;
}

.navbar { background: var(--navy); color: var(--white); padding: 16px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(197,160,89,0.3); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-box { border: 2px solid var(--gold); color: var(--gold); font-weight: 800; padding: 6px 10px; border-radius: 6px; }
.logo small { display: block; color: var(--gold); font-size: 10px; letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.lang-btn { background: transparent; border: 1px solid var(--gold); color: var(--white); padding: 4px 10px; cursor: pointer; border-radius: 4px; font-weight: 700; }
.lang-btn.active { background: var(--gold); color: var(--navy); }

.hero { background: radial-gradient(ellipse at 82% 22%, #274754, var(--navy-dark) 68%); color: var(--white); padding: clamp(52px, 7vw, 105px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.hero-category { color: var(--gold); font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font: 400 clamp(2.55rem, 4.7vw, 4.65rem)/1.04 Georgia, serif; letter-spacing: -.04em; margin-bottom: 24px; }
.hero-sub { color: #CBD5E1; font-size: 16px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-gold { background: var(--gold); color: var(--navy); padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; display: inline-block; }
.btn-outline-white { border: 1px solid var(--white); color: var(--white); padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 600; }

.hero-preview { border: 1px solid #71828a; padding: 9px; border-radius: 14px; background: #223d49; box-shadow: 0 24px 64px #07131a77; }
.hero-preview img { display: block; width: 100%; height: auto; border-radius: 7px; }
.hero-preview figcaption { color: #eef1f2; font-size: .88rem; padding: 11px 4px 2px; }

.section { padding: 64px 0; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }
.text-white { color: var(--white); }
.sec-title { text-align: center; font: 400 clamp(2rem, 3.7vw, 3.4rem)/1.1 Georgia, serif; letter-spacing: -.035em; color: var(--navy); margin-bottom: 18px; }
.sec-desc { text-align: center; color: #64748B; max-width: 680px; margin: 0 auto 38px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); padding: 26px; border-radius: 10px; border: 1px solid #E2E8F0; border-top: 4px solid var(--gold); }
.card h3 { color: var(--navy); margin-bottom: 10px; }

.price-card { background: var(--white); padding: 28px; border-radius: 10px; border: 1px solid #CBD5E1; position: relative; display: flex; flex-direction: column; }
.product-grid { margin-top: 32px; }
.product-card { border: 1px solid #ddd5c6; border-top: 4px solid #a77c3d; gap: 12px; box-shadow: 0 12px 26px #1429360b; }
.product-card h3 { font-size: 1.28rem; line-height: 1.35; color: var(--navy); }
.product-card > a:last-child { margin-top: auto; align-self: flex-start; color: var(--navy); font-weight: 700; }
.product-card > button:last-child { margin-top: auto; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.demo-guide { color: #52616a; font-size: .94rem; border-top: 1px solid #e9e2d6; padding-top: 12px; }
.demo-links { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-links a { color: var(--navy); border: 1px solid #ded5c5; padding: 4px 8px; border-radius: 5px; font-weight: 700; font-size: .86rem; text-decoration: none; }
.demo-links a:hover { background: var(--light); }
.price-card.featured { border: 2px solid var(--gold); transform: translateY(-6px); }
.top-tag { position: absolute; top: -12px; right: 20px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 12px; }
.price { font-size: 36px; font-weight: 800; color: var(--navy); margin: 12px 0 18px; }
.price small { font-size: 14px; font-weight: 500; color: #64748B; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li { padding: 7px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
.muted-li { color: #52616a; }
.btn-navy-full { display: block; text-align: center; background: var(--navy); color: var(--white); padding: 12px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.btn-gold-full { display: block; text-align: center; background: var(--gold); color: var(--navy); padding: 12px; border-radius: 6px; text-decoration: none; font-weight: 700; }

.checkout-notice { margin-top: 30px; background: var(--white); border: 1px solid var(--gold); padding: 22px; border-radius: 8px; text-align: center; }
.checkout-notice p { margin: 10px 0 16px; font-size: 14px; color: #475569; }

.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--light); padding: 20px; border-radius: 8px; border-left: 4px solid var(--navy); }
.faq-item h4 { color: var(--navy); margin-bottom: 6px; }

.demo-box { text-align: center; max-width: 720px; }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 16px; }
.demo-form[hidden] { display: none; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #CBD5E1; color: var(--text); background: var(--white); font: inherit; }
.demo-form textarea { resize: vertical; }
.form-field { display: grid; gap: 4px; text-align: left; color: var(--white); font-size: 13px; }
.form-field select:disabled { opacity: .7; }
.demo-form button { grid-column: span 2; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px auto; padding: 12px 16px; max-width: 680px; border-radius: 6px; font-weight: 600; }
.form-status.success { color: #14532D; background: #DCFCE7; }
.form-status.error { color: #7F1D1D; background: #FEE2E2; }
.form-privacy { margin: 12px auto; max-width: 680px; color: #CBD5E1; font-size: 12px; }
.contact-line a { color: var(--gold); font-weight: 700; }
.footer { background: var(--navy-dark); color: #94A3B8; text-align: center; padding: 20px 0; font-size: 13px; }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .demo-form { grid-template-columns: 1fr; }
  .demo-form button { grid-column: span 1; }
  .price-card.featured { transform: none; }
  .nav-flex { flex-wrap: wrap; gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
  section[id] { scroll-margin-top: 134px; }
}

@media (max-width: 520px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .navbar { padding: 12px 0; }
  .logo strong { font-size: 14px; }
  .nav-links a { font-size: 13px; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; }
  .section { padding: 48px 0; }
  .sec-title { font-size: 26px; }
  .price-card { padding: 22px; }
  .demo-form input, .demo-form select, .demo-form button { width: 100%; min-height: 44px; }
}

/* SOPHIE 24/7 chat panel (sophie-chat.js) */
.sophie-panel{position:fixed;right:16px;bottom:16px;z-index:1000;width:min(380px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 32px));display:flex;flex-direction:column;background:#fff;color:#1a2238;border:1px solid #d7dbe6;border-radius:12px;box-shadow:0 12px 32px rgba(10,20,50,.25);font-size:15px}
.sophie-panel header{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:12px 14px;border-bottom:1px solid #e6e9f0}
.sophie-panel header small{flex:1 1 100%;order:3;color:#555e72;font-size:12px}
.sophie-close{margin-left:auto;background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:inherit}
.sophie-log{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.sophie-msg{margin:0;padding:8px 10px;border-radius:10px;max-width:88%;white-space:pre-line;overflow-wrap:anywhere}
.sophie-assistant{background:#eef1f8;align-self:flex-start}
.sophie-user{background:#1a2a5c;color:#fff;align-self:flex-end}
.sophie-panel form{display:flex;gap:8px;padding:10px;border-top:1px solid #e6e9f0}
.sophie-panel input{flex:1;min-width:0;padding:9px 10px;border:1px solid #c9cfdd;border-radius:8px;font:inherit}
.sophie-panel form button{padding:9px 14px;border:0;border-radius:8px;background:#1a2a5c;color:#fff;font:inherit;cursor:pointer}
/* Owner dashboard (admin.html) */
.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-bottom:16px}
.admin-tile{border:1px solid #d7dbe6;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;background:#fff}
.admin-tile small{color:#555e72}
.admin-scroll{overflow-x:auto;margin-bottom:16px}
.admin table{border-collapse:collapse;width:100%;font-size:14px}
.admin th,.admin td{border-bottom:1px solid #e6e9f0;padding:6px 8px;text-align:left;vertical-align:top}
.admin-on,.admin-off{padding:10px;border-radius:8px;border:1px solid #c9cfdd;cursor:pointer;font:inherit;text-align:left}
.admin-on{background:#e9f7ee}.admin-off{background:#fdecec}
/* Footer links: readable on the dark footer (was browser default blue/purple) */
.footer .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
.footer p { margin: 0; }
.footer a { color: var(--gold); font-weight: 600; text-decoration: none; padding: 6px 2px; display: inline-block; }
.footer a:visited { color: var(--gold); }
.footer a:hover, .footer a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Phone layout */
@media (max-width: 600px) {
  .navbar { position: static; }
  .price-card.featured { transform: none; }
  .btn-gold, .btn-outline-white, .btn-navy-full, .btn-gold-full, .lang-btn, .demo-form button { min-height: 44px; }
  .nav-links a { padding: 8px 4px; }
  .price { font-size: 30px; }
  .footer .container { flex-direction: column; gap: 4px; }
  .sophie-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 16px); }
  .demo-form input, .demo-form select, .demo-form textarea { font-size: 16px; } /* avoids iOS zoom on focus */
}