:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --panel: #ffffff;
  --rule: rgba(59,61,66,.12);
  --rule-2: rgba(59,61,66,.24);
  --fg: #3b3d42;
  --heading: #1d273b;
  --muted: #6b7280;
  --accent: #1fde82;  /* bright green: buttons / decorative only */
  --accent-ink: #0d9154;  /* accent for TEXT on light bg (>=4.5:1) */
  --accent-hover: #45ffa8;
  --wa: #25D366;
  --wa-ink: #0c1406;
  --font: "Roboto", system-ui, sans-serif;
  --radius: 4px;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* RTL support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-inner { flex-direction: row-reverse; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
[dir="rtl"] .hero-proof { flex-direction: row-reverse; }
[dir="rtl"] .trust-chips { flex-direction: row-reverse; }
[dir="rtl"] .cta-row { flex-direction: row-reverse; }
[dir="rtl"] .form-row { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { flex-direction: row-reverse; }
[dir="rtl"] .cards-3 { flex-direction: row-reverse; }
[dir="rtl"] .work-list { direction: rtl; }
[dir="rtl"] .price-grid { flex-direction: row-reverse; }
[dir="rtl"] .faq-q { text-align: right; }
[dir="rtl"] .faq-x { margin-left: auto; margin-right: 0; }
[dir="rtl"] .case-grid { flex-direction: row-reverse; }
[dir="rtl"] .result-band { flex-direction: row-reverse; }
[dir="rtl"] .uc-stage { flex-direction: row-reverse; }
[dir="rtl"] .uc-tabs { flex-direction: row-reverse; }
[dir="rtl"] .demo-opts { flex-direction: row-reverse; }
[dir="rtl"] .demo-form { flex-direction: row-reverse; }
[dir="rtl"] .livechat-form { flex-direction: row-reverse; }
[dir="rtl"] .livechat-opts { flex-direction: row-reverse; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
main, footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--heading); }

/* navigation — floating island pill */
.nav {
  position: fixed; top: 10px; left: 10px; right: 10px; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; min-height: 56px;
  padding: .45rem .5rem .45rem 1rem;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(29,39,59,.10);
  transition: box-shadow .3s, background .3s, border-radius .3s;
}
.nav.scrolled { background: rgba(255,255,255,.94); box-shadow: 0 12px 36px rgba(29,39,59,.16); }
.nav.nav-left .nav-links { margin-right: 4.75rem; } /* second pages: shift right cluster ~2cm left */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; }
.logo img { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.logo-word { font-weight: 400; font-size: .92rem; letter-spacing: .01em; line-height: 1; }
.logo-word em { font-style: normal; color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 400; transition: color .2s; white-space: nowrap; flex: none; box-sizing: border-box; }
.nav-links a:hover { color: var(--fg); }

/* side section index */
.side-index {
  position: fixed; left: 1.5rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.1rem; z-index: 60;
}
.side-index a { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--rule-2); background: transparent; transition: all .3s; }
.side-index a span { position: absolute; left: 20px; top: -4px; white-space: nowrap; font-size: .68rem; letter-spacing: .18em; color: transparent; transition: color .3s; }
.side-index a:hover span { color: var(--muted); }
.side-index a.active { background: var(--accent); border-color: var(--accent); }
.side-index a.active span { color: var(--accent-ink); }
@media (max-width: 1200px) { .side-index { display: none; } }

/* buttons — clean, minimal, Nektop-style */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 12px 28px; border-radius: 999px;
  font-family: var(--font); font-size: 11px; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn.wa { background: var(--wa); color: #06281a; }
.btn.wa:hover { background: #3ede79; color: #06281a; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.btn.ghost:hover { background: var(--fg); color: #fff; }

/* type */
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.35; color: var(--heading); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin: .4rem 0 1.2rem; }
h3 { font-size: 1.25rem; font-weight: 500; }
.accent { color: var(--accent-ink); }
.subtitle-classic { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-ink); margin-bottom: .5rem; }
.text-center { text-align: center; }

/* sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.2rem, 4vw, 3rem);
  max-width: var(--max); margin: 0 auto;
}
.section.alt { max-width: none; background: var(--bg-2); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 820px) { .row-split { grid-template-columns: 1fr; } }
.story h2 { max-width: 18ch; }
.col > p { color: var(--muted); margin-bottom: 1.3rem; }
.section-head { max-width: 520px; margin: 0 auto 3rem; }

/* video section */
.video-section { text-align: center; }
.video-wrap { max-width: 860px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.1); border: 1px solid var(--rule); }
.intro-video { display: block; width: 100%; height: auto; background: #000; }

/* hero — Nektop-style 2-column split */
.hero {
  padding-top: calc(80px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
/* ambient animated orbs behind the hero */
.hero-ambient {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-ambient .orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  will-change: transform;
}
.hero-ambient .orb-a {
  width: 340px; height: 340px;
  top: -60px; right: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(31,222,130,.55), rgba(31,222,130,0) 70%);
  animation: heroDrift 9s ease-in-out infinite;
}
.hero-ambient .orb-b {
  width: 300px; height: 300px;
  bottom: -40px; left: 12%;
  background: radial-gradient(circle at 60% 60%, rgba(69,110,255,.45), rgba(69,110,255,0) 70%);
  animation: heroDrift 12s ease-in-out -4s infinite;
}
@keyframes heroDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -28px) scale(1.12); }
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
  animation: heroRise .8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-left { max-width: 520px; }
.hero-eyebrow {
  font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--muted); margin-bottom: .8rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.315; letter-spacing: 0;
  margin: 0 0 1.2rem; color: var(--heading);
}
/* gentle shimmer sweep across the accent word in the hero title */
.hero-title .accent {
  background-image: linear-gradient(90deg, var(--accent-ink), #14b877 50%, var(--accent-ink));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: accentShimmer 3.5s linear infinite;
}
@keyframes accentShimmer {
  to { background-position: 200% center; }
}
.hero-sub {
  color: var(--muted); font-size: 15px; line-height: 1.7;
  margin-bottom: 2rem; max-width: 440px;
}
/* cta rows — consistent button spacing everywhere */
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.cta-row.center { justify-content: center; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-right { display: flex; justify-content: center; }
.hero-illustration { width: 100%; max-width: 480px; height: auto; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { max-width: 100%; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-right { order: -1; }
  .hero-illustration { max-width: 360px; }
}

/* project cards */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.project:nth-child(1), .project:nth-child(3) { transform: translateY(14px); }
.project img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.05); }
.project-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 1.15rem; }
.project-title { font-size: 1.06rem; font-weight: 500; }
.project-tag { font-size: .64rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-ink); white-space: nowrap; }

/* process */
.process { max-width: 720px; margin: 2rem auto 0; text-align: left; }
.step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.5rem; padding: 1.7rem 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-idx { font-weight: 300; font-size: 1.5rem; color: var(--accent-ink); }
.step-body h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step-body p { color: var(--muted); }
@media (max-width: 560px) { .step { grid-template-columns: 2.4rem 1fr; gap: 1rem; } }

/* news cards */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 860px; margin: 0 auto; }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.post-date { font-size: .66rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.post-card h3 { margin: .6rem 0 .5rem; }
.post-card h3 a { color: var(--fg); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-ink); }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-author { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

/* contacts */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy > p:not(.subtitle-classic):not(.email-line) { color: var(--muted); margin-bottom: 1.4rem; }
form { display: grid; gap: .8rem; margin-top: 1.4rem; }
input, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--fg); font: inherit; padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,222,130,.12); }
textarea { min-height: 110px; resize: vertical; }
form button.btn { justify-content: center; }

.qr-card {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px); padding: 2rem; text-align: center;
  position: sticky; top: 100px;
}
.qr-img { border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem; width: min(260px, 100%); margin: 0 auto; }
.qr-img img { width: 100%; height: auto; border-radius: 2px; }
.qr-title { margin: 1.3rem 0; }
.qr-title strong { font-weight: 500; font-size: 1.15rem; }
.qr-card .meta { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* footer — dark */
.footer { background: #243238; color: #fff; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 2.6rem clamp(1.2rem, 4vw, 3rem);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer .logo { color: #fff; }
.footer .logo-word em { color: var(--accent); }
.footer .meta { color: #a1a2a4; font-size: .78rem; letter-spacing: .04em; }
.footer .email-link { color: var(--accent); text-decoration: none; font-weight: 500; }  /* bright green on dark footer bg */
.footer .email-link:hover { text-decoration: underline; }
.ig-link { display: inline-flex; align-items: center; gap: .4rem; }
.ig-link .ig-ico { flex: none; }
.contact-line { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.4rem; }
.contact-line .email-link { display: inline-flex; align-items: center; gap: .45rem; }
.contact-line .ai-ico { height: 18px; width: auto; }
.ai-ico { vertical-align: middle; margin-right: .3rem; }

/* email line */
.email-line { color: var(--muted); }
.email-link { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.email-link:hover { text-decoration: underline; }

/* motion — calm directional reveals */
.reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; transition-delay: var(--d, 0s); }
.reveal.fade-up { transform: translateY(18px); }
.reveal.fade-left { transform: translateX(-22px); }
.reveal.fade-right { transform: translateX(22px); }
.reveal.blur-in { filter: blur(9px); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; filter: none; } }
.reveal { animation: revealFailsafe .6s ease 1.6s forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.fade-up, .reveal.fade-left, .reveal.fade-right, .reveal.blur-in { transition: none; opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
  .project:hover img { transform: none; }
  .bubble, .typing, .float-chip, .pulse-dot { animation: none !important; }
  .hero-ambient .orb, .hero-inner, .hero-title .accent { animation: none !important; }
  .hero-title .accent { -webkit-text-fill-color: var(--accent-ink); color: var(--accent-ink); background-image: none; }
  .nav.open .nav-links { animation: none !important; }
}

/* ============ AI automation theme (appended) ============ */

/* accessibility */
.skip { position: absolute; left: -9999px; top: 0; background: var(--heading); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 6px 0; z-index: 100; }
.skip:focus { left: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* island menu — mobile: pill expands like a dynamic island */
.nav-toggle { display: none; background: rgba(29,39,59,.06); border: 0; cursor: pointer; padding: .65rem .6rem; border-radius: 999px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--heading); margin: 4px 2px; border-radius: 2px; transition: transform .25s, opacity .25s; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: block; flex: none; }
  .nav-links { display: none; }
  .nav.open { background: #fff; border-radius: 22px; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: calc(100% + 10px); left: 10px; right: 10px;
    flex-direction: column; align-items: stretch; gap: 0;
    box-sizing: border-box; width: auto;
    background: #fff; border: 1px solid var(--rule); border-radius: 18px;
    padding: .4rem; box-shadow: 0 18px 44px rgba(29,39,59,.16);
    animation: nav-drop .22s cubic-bezier(.2,.9,.3,1.2) both;
    transform-origin: top center;
  }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .nav-links a:not(.btn) { box-sizing: border-box; padding: .8rem .9rem; font-size: 15px; border-radius: 12px; border-top: 1px solid var(--rule); }
  .nav-links a:not(.btn):hover { background: var(--bg-2); }
  .nav-links .btn { margin: .5rem .4rem .3rem; justify-content: center; }
  .nav-links .lang-switch { box-sizing: border-box; margin: .5rem .4rem .3rem; width: auto; max-width: none; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 380px) {
  .logo-word { font-size: .8rem; }
  .nav { padding-left: .8rem; }
}
/* iOS: inputs <16px trigger auto-zoom on focus — keep form controls at 16px on small phones */
@media (max-width: 640px) {
  .form-field input, .form-field select, .form-field textarea,
  .est-form input, .est-form .est-go,
  .demo-form input, .demo-form select, .demo-form textarea, .demo-form button,
  .livechat-form input, .livechat-form button {
    font-size: 16px;
  }
}

/* hero phone mockup */
.hero-proof { list-style: none; display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; padding: 0; }
.hero-proof li { font-size: .8rem; font-weight: 400; color: var(--heading); display: flex; align-items: center; gap: .45rem; }
.hero-proof li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }
@media (max-width: 820px) { .hero-proof { justify-content: center; } }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,222,130,.5); } 50% { box-shadow: 0 0 0 6px rgba(31,222,130,0); } }
.phone { position: relative; width: min(300px, 80vw); background: #1d273b; border-radius: 36px; padding: 12px; box-shadow: 0 30px 70px rgba(29,39,59,.28), 0 0 0 1px rgba(29,39,59,.1); }
.phone-notch { width: 110px; height: 22px; background: #1d273b; border-radius: 0 0 14px 14px; margin: -12px auto 6px; position: relative; z-index: 2; }
.phone-notch::after { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 8px auto 0; }
.phone-screen { background: #f4f6f8; border-radius: 26px; padding: .9rem .8rem 1rem; display: flex; flex-direction: column; gap: .5rem; min-height: 380px; }
.chat-head { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 14px; padding: .55rem .7rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: .3rem; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#1fde82,#10a862); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex: none; }
.chat-name { font-size: .8rem; font-weight: 500; color: var(--heading); line-height: 1.3; }
.chat-name small { display: block; font-weight: 300; color: #1f9d5c; font-size: .68rem; }
.bubble { unicode-bidi: plaintext; text-align: start; max-width: 88%; padding: .55rem .75rem; border-radius: 14px; font-size: .76rem; line-height: 1.5; opacity: 0; animation: bubbleIn .5s ease forwards; }
.bubble.them { background: #fff; color: var(--heading); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.bubble.me { background: #1fde82; color: #06281a; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 400; }
.bubble.note { background: #1d273b; color: #fff; align-self: stretch; max-width: 100%; text-align: center; font-size: .7rem; border-radius: 10px; }
.m1 { animation-delay: .6s; } .m2 { animation-delay: 1.6s; } .m3 { animation-delay: 2.6s; } .m4 { animation-delay: 3.6s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typing { display: flex; gap: 4px; background: #fff; border-radius: 12px; padding: .6rem .8rem; align-self: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #b9c2cc; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
/* AI-thinking dots used inside chat bubbles ("…" placeholders) */
.tdots { display: inline-flex; gap: 4px; align-items: center; padding: .15rem 0; }
.tdots i { width: 7px; height: 7px; border-radius: 50%; background: #b9c2cc; display: inline-block; animation: tdot 1.2s ease-in-out infinite; }
.tdots i:nth-child(2) { animation-delay: .18s; } .tdots i:nth-child(3) { animation-delay: .36s; }
@keyframes tdot { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: .45rem .9rem; font-size: .72rem; font-weight: 500; color: var(--heading); box-shadow: 0 10px 26px rgba(0,0,0,.12); animation: float 3.5s ease-in-out infinite; white-space: nowrap; }
.fc1 { top: 12%; right: -8%; } .fc2 { bottom: 14%; left: -10%; animation-delay: 1.7s; } .fc3 { bottom: 44%; left: -16%; animation-delay: 2.8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-right { position: relative; }
@media (max-width: 820px) { .fc1 { right: 0; } .fc2 { left: 0; } .fc3 { left: 0; } .hero-right { order: 0; } }
[dir="rtl"] .fc1 { right: auto; left: 0; }
[dir="rtl"] .fc2 { left: auto; right: 0; }
[dir="rtl"] .fc3 { left: auto; right: 0; }
@media (max-width: 640px) { .float-chip { display: none; } }

/* trust band */
.trust { background: #1d273b; color: #fff; }
.trust-inner { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem,5vw,3.5rem) clamp(1.2rem,4vw,3rem); text-align: center; }
.trust-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #8fa0b5; margin-bottom: 1.1rem; }
.trust-chips { list-style: none; display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; padding: 0; margin-bottom: 2.2rem; }
.trust-chips li { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .5rem 1.1rem; font-size: .82rem; color: #dbe4ee; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.trust-stat b { display: block; font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 700; color: var(--accent-ink); direction: ltr; unicode-bidi: isolate; }
.trust-stat span { font-size: .8rem; color: #9fb0c3; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* outcome cards */
.lede { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.6rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 1.7rem 1.5rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); border-color: rgba(31,222,130,.5); }
.card-ico { font-size: 1.7rem; margin-bottom: .8rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* work list */
.work-list { display: grid; gap: 1rem; }
.work-item { display: block; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem 1.6rem; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.work-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.08); border-color: rgba(31,222,130,.5); color: inherit; }
.work-kicker { font-size: .66rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-ink); font-weight: 500; }
.work-item h3 { margin: .5rem 0 .4rem; }
.work-item p { color: var(--muted); font-size: .92rem; margin-bottom: .7rem; }
.work-link { font-size: .85rem; font-weight: 500; color: var(--heading); }
.work-item:hover .work-link { color: #0d9b5b; }


/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.6rem; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem 1.7rem; display: flex; flex-direction: column; }
.price-card .btn { justify-content: center; width: 100%; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 18px 50px rgba(31,222,130,.14); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #06281a; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 999px; padding: .3rem .9rem; white-space: nowrap; }
.price-card h3 { font-size: 1.15rem; }
.price-main { font-size: 2.1rem; font-weight: 700; color: var(--heading); margin: .4rem 0 .1rem; }
.price-main .price-unit { font-size: .78rem; font-weight: 400; color: var(--muted); }
.price-mo { font-size: .95rem; font-weight: 500; color: var(--heading); margin: .2rem 0 .4rem; }
.price-mo small { display: block; font-size: .74rem; font-weight: 400; color: var(--muted); margin-top: .25rem; }
.price-fineprint { font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--rule-2); padding-top: .9rem; margin: 1rem 0 1.4rem; }
/* plan comparison strip */
.cmp-strip { max-width: 920px; margin: 2.4rem auto 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--panel); }
.cmp-strip .cmp-head, .cmp-strip .cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
.cmp-strip .cmp-head span, .cmp-strip .cmp-row span { padding: .7rem 1rem; font-size: .82rem; border-bottom: 1px solid var(--rule); }
.cmp-strip .cmp-head span { font-weight: 700; font-size: .9rem; background: var(--bg-2); }
.cmp-strip .cmp-row span:first-child { font-weight: 500; color: var(--muted); background: var(--bg-2); }
.cmp-strip .cmp-row:last-child span { border-bottom: 0; }
.cmp-strip .cmp-row span:nth-child(2), .cmp-strip .cmp-row span:nth-child(3), .cmp-strip .cmp-row span:nth-child(4) { border-left: 1px solid var(--rule); }
/* Mobile: keep the plan headers + 4-column table (scrollable), compact cells.
   (Previously the header row was hidden and cells stacked with no plan context.)
   overflow-y stays visible so wrapped cell text is never clipped. */
@media (max-width: 760px) {
  .cmp-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  .cmp-strip .cmp-head, .cmp-strip .cmp-row { grid-template-columns: minmax(84px, 1.1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); min-width: 520px; }
  .cmp-strip .cmp-head { display: grid; }
  .cmp-strip .cmp-head span, .cmp-strip .cmp-row span { padding: .5rem .6rem; font-size: .76rem; line-height: 1.35; }
  .cmp-strip .cmp-head span { font-size: .8rem; }
  .cmp-strip .cmp-row span:first-child { text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; }
  .cmp-strip .cmp-row span:nth-child(2), .cmp-strip .cmp-row span:nth-child(3), .cmp-strip .cmp-row span:nth-child(4) { border-left: 1px solid var(--rule); }
}


/* faq */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .7rem; }
.faq-item { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: 0; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 500; color: var(--heading); text-align: left; padding: 1.1rem 1.3rem; }
.faq-x { color: var(--accent-ink); font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform .25s; flex: none; }
.faq-item.open .faq-x { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p { overflow: hidden; margin: 0; }
.faq-a p { padding: 0 1.3rem; }
.faq-item.open .faq-a p { padding-bottom: 1.2rem; color: var(--muted); }

/* contact form v2 */
.contact-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-size: .78rem; font-weight: 500; color: var(--heading); }
.form-field .opt { font-weight: 300; color: var(--muted); }
select { width: 100%; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--fg); font: inherit; padding: .8rem 1rem; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,222,130,.12); }
.form-error { color: #c0392b; font-size: .85rem; }
.char-count { font-size: .75rem; color: var(--muted); text-align: right; margin: 0; }
#contact-status { margin-top: .8rem; font-size: .9rem; }
.qr-note { color: var(--muted); font-size: .82rem; margin: 0 0 1.2rem; }

/* footer columns */
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 3rem clamp(1.2rem,4vw,3rem) 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: #9fb0c3; font-size: .86rem; margin-top: 1rem; max-width: 30ch; }
.footer-h { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .9rem; font-weight: 500; }
.footer-grid nav, .footer-grid > div { display: grid; gap: .55rem; align-content: start; }
.footer-grid a { color: #9fb0c3; font-size: .88rem; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); }
.footer-base .meta { max-width: var(--max); margin: 0 auto; padding: 1.2rem clamp(1.2rem,4vw,3rem); color: #8fa0b5; font-size: .78rem; }

/* sub-page hero (demo + case studies) */
.page-hero { padding-top: calc(80px + clamp(3rem,6vw,5rem)); padding-bottom: 2rem; text-align: center; max-width: 760px; margin: 0 auto; padding-left: 1.2rem; padding-right: 1.2rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--muted); }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--accent-ink); }

/* case study */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.case-block { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 1.6rem; }
.case-block.full { grid-column: 1 / -1; }
.case-kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; margin-bottom: .6rem; }
.case-block h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.case-block p, .case-block li { color: var(--muted); font-size: .93rem; }
.case-block ul { padding-left: 1.1rem; display: grid; gap: .4rem; margin-top: .6rem; }
.result-band { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 560px) { .result-band { grid-template-columns: 1fr; } }
.result-band b { display: block; font-size: 1.5rem; color: #0d9b5b; }
.result-band span { font-size: .82rem; }

/* live demo chat */
.demo-wrap { max-width: 520px; margin: 0 auto; }
.demo-phone { background: #fff; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(29,39,59,.14); }
.demo-head { background: #1d273b; color: #fff; padding: .9rem 1.2rem; display: flex; align-items: center; gap: .7rem; }
.demo-head .chat-avatar { background: linear-gradient(135deg,#1fde82,#10a862); }
.demo-head b { font-weight: 500; font-size: .95rem; }
.demo-head small { display: block; font-weight: 400; color: #2e7a53; font-size: .72rem; }
.demo-log { height: 380px; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; background: #f4f6f8; }
.demo-log .bubble { opacity: 1; animation: bubbleIn .3s ease; max-width: 85%; font-size: .86rem; }
.demo-opts { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem; border-top: 1px solid var(--rule); background: #fff; }
.demo-opt { border: 1px solid var(--accent); color: #0d7a48; background: #fff; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.demo-opt:hover { background: var(--accent); color: #06281a; }
.demo-form { display: flex; gap: .5rem; padding: .9rem 1.1rem; border-top: 1px solid var(--rule); background: #fff; }
.demo-form input { flex: 1; margin: 0; unicode-bidi: plaintext; }
.demo-form button { flex: none; }
.demo-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1rem; }

/* floating live chat */
.livechat-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg,#1fde82,#10a862); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 32px rgba(16,168,98,.4); transition: transform .2s; }
.livechat-fab:hover { transform: scale(1.06); }
.livechat-dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; border: 2px solid #fff; }
.livechat-panel { position: fixed; right: 1.2rem; bottom: 5.4rem; z-index: 70; width: min(380px, calc(100vw - 2.4rem)); background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(29,39,59,.25); display: flex; flex-direction: column; }
.livechat-panel[hidden] { display: none; }
.livechat-head { background: #1d273b; color: #fff; padding: .8rem 1rem; display: flex; align-items: center; gap: .65rem; }
.livechat-head b { font-weight: 500; font-size: .9rem; display: block; }
.livechat-head small { font-weight: 400; color: #2e7a53; font-size: .7rem; display: block; }
.livechat-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .2rem .5rem; }
.livechat-log { height: 320px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: #f4f6f8; }
.livechat-log .bubble { opacity: 1; animation: bubbleIn .25s ease; font-size: .84rem; }
.livechat-log .bubble a { color: #0d7a48; font-weight: 500; }
.livechat-opts { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem .9rem; background: #fff; border-top: 1px solid var(--rule); }
.livechat-opts:empty { display: none; }
.livechat-opts .demo-opt { font-size: .76rem; padding: .42rem .85rem; }
.livechat-form { display: flex; gap: .5rem; padding: .7rem .9rem; border-top: 1px solid var(--rule); background: #fff; }
.livechat-form input { flex: 1; margin: 0; unicode-bidi: plaintext; }
.livechat-form .btn { flex: none; padding: 10px 18px; }

/* ============ language switcher ============ */
.lang-switch { flex: none; width: auto; max-width: 130px; margin-left: .1rem; padding: .38rem .45rem; border-radius: 8px; border: 1px solid var(--rule); background: #fff; color: var(--heading); font: inherit; font-size: 13px; cursor: pointer; }
.lang-switch:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
[dir="rtl"] .side-index { right: 1rem; left: auto; }
[dir="rtl"] .livechat { direction: rtl; }


/* ============ use-case simulations ============ */
.uc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.2rem; }
.uc-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.uc-tab { border: 1px solid var(--accent); background: #fff; color: #0d7a48; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.uc-tab:hover { background: var(--accent); color: #06281a; }
.uc-tab.is-active { background: var(--accent); color: #06281a; }
.uc-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.2rem; align-items: start; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 1.2rem; }
.uc-screen { background: #f4f6f8; border-radius: 14px; padding: 1rem; height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.uc-screen .bubble { opacity: 1; animation: bubbleIn .25s ease; font-size: .85rem; }
.uc-hint { color: var(--muted); font-size: .85rem; text-align: center; margin: auto; }
.uc-outcome { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.uc-chip { background: #e8fbf1; color: #0d7a48; border-radius: 999px; padding: .4rem .7rem; font-size: .78rem; font-weight: 600; }
.uc-benefit { color: var(--heading); font-size: .92rem; margin: .9rem 0 0; }
.uc-side .btn { margin-bottom: .3rem; }
@media (max-width: 820px) { .uc-stage { grid-template-columns: 1fr; } }


/* ============ voice chat ============ */
.chat-tts { margin-left: auto; margin-right: .5rem; border: 0; background: transparent; font-size: 1.05rem; cursor: pointer; line-height: 1; padding: .2rem; }
.chat-tts:hover { transform: scale(1.12); }
.chat-mic { border: 1px solid var(--rule); background: #fff; border-radius: 10px; padding: .45rem .6rem; font-size: 1rem; line-height: 1; cursor: pointer; flex: none; }
.chat-mic:hover { border-color: var(--accent); }
.chat-mic.listening { background: var(--accent); color: #06281a; border-color: var(--accent); animation: micPulse 1s infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 6px rgba(31,222,130,.25); } }
.livechat-form { display: flex; gap: .4rem; align-items: center; }
.demo-head { display: flex; align-items: center; gap: .5rem; }

/* ============ benefits estimator (Apple style) ============ */
#estimator {
  --ap-fg: #1d1d1f;
  --ap-sub: #6e6e73;
  --ap-muted: #86868b;
  --ap-line: rgba(0, 0, 0, .08);
  --ap-fill: #f5f5f7;
  --ap-green: #34c759;
  --ap-green-ink: #1e7e46;
  --ap-red: #ff3b30;
  --ap-radius: 14px;
}
#estimator { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; }
#estimator .section-head { max-width: 640px; }
#estimator h2 { font-size: clamp(1.7rem, 3.4vw, 2.15rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ap-fg); }
#estimator .lede { font-size: .95rem; line-height: 1.55; color: var(--ap-sub); max-width: 520px; margin: .6rem auto 0; }
#estimator .est-ic { flex: none; width: 15px; height: 15px; }

/* Idle input: Apple search-bar style, 440px max */
#estimator .est-form {
  display: flex; align-items: center; gap: .5rem; max-width: 440px; margin: 2rem auto 0;
  background: var(--ap-fill); border: 1px solid var(--ap-line); border-radius: 12px;
  padding: 4px 4px 4px 14px; transition: box-shadow .2s ease, border-color .2s ease;
}
#estimator .est-form:focus-within { border-color: rgba(0,0,0,.2); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
#estimator .est-form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: .95rem; padding: .625rem 0; color: var(--ap-fg);
}
#estimator .est-form input::placeholder { color: var(--ap-muted); }
#estimator .est-go {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 2.375rem; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: var(--ap-fg); color: #f5f5f7; font: inherit; font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: transform .12s ease, filter .15s ease;
}
#estimator .est-go:hover { filter: brightness(1.15); }
#estimator .est-go:active { transform: scale(.97); }
#estimator .est-go:disabled { opacity: .5; cursor: default; }
#estimator .est-spin {
  width: 13px; height: 13px; border: 2px solid rgba(245,245,247,.4);
  border-top-color: #f5f5f7; border-radius: 50%; animation: estSpin .7s linear infinite;
}
@keyframes estSpin { to { transform: rotate(360deg); } }

/* Status: quiet inline notes, 440px */
#estimator .est-status { max-width: 440px; margin: .8rem auto 0; min-height: 0; }
#estimator .est-status:empty { display: none; }
#estimator .est-note {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ap-sub);
}
#estimator .est-note .est-ic { color: var(--ap-muted); }
#estimator .est-note-error .est-ic { color: var(--ap-red); }
#estimator .est-note-ok .est-ic { color: var(--ap-green); }

/* Results: 720px, compact cards */
#estimator .est-results { max-width: 720px; margin: 1.6rem auto 0; }
#estimator .est-results.hidden { display: none; }
#estimator .est-results.show { animation: estRise .4s cubic-bezier(.25, .6, .4, 1); }
@keyframes estRise { from { opacity: 0; transform: translateY(10px); } }

#estimator .est-summary {
  background: var(--ap-fill); border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  padding: 1.4rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
#estimator .est-score { display: flex; align-items: baseline; gap: .35rem; margin: 0; }
#estimator .est-score b {
  font-size: 2.6rem; font-weight: 200; letter-spacing: -0.03em; color: var(--ap-fg); line-height: 1;
}
#estimator .est-score span { font-size: .85rem; color: var(--ap-muted); font-weight: 500; }
#estimator .est-tierbox { flex: 1; min-width: 220px; }
#estimator .est-tier-k {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ap-muted); margin: 0 0 .2rem;
}
#estimator .est-tier-name { font-size: 1.05rem; font-weight: 600; color: var(--ap-fg); margin: 0; }
#estimator .est-tier-price { font-size: .85rem; color: var(--ap-sub); margin: .15rem 0 .4rem; }
#estimator .est-tier-note { font-size: .8rem; color: var(--ap-sub); line-height: 1.45; margin: 0 0 .6rem; }
#estimator .est-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#estimator .est-pill {
  display: inline-flex; align-items: center; gap: .35rem; height: 2rem; padding: 0 .95rem;
  border-radius: 999px; font-size: .8rem; font-weight: 500; text-decoration: none;
  transition: transform .12s ease;
}
#estimator .est-pill:active { transform: scale(.97); }
#estimator .est-pill .est-ic { width: 13px; height: 13px; }
#estimator .est-pill-primary { background: var(--ap-fg); color: #f5f5f7; }
#estimator .est-pill-ghost { background: transparent; color: var(--ap-fg); border: 1px solid var(--ap-line); }
#estimator .est-pill-ghost:hover { background: var(--ap-fill); }

/* 5 compact category cards: 2-col grid, 1-col mobile */
#estimator .est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
#estimator .est-card {
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  padding: .9rem 1rem;
}
#estimator .est-card-full { grid-column: 1 / -1; }
#estimator .est-cat-h { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
#estimator .est-cat-h .est-ic { color: var(--ap-fg); }
#estimator .est-cat-t { font-size: .85rem; font-weight: 600; color: var(--ap-fg); flex: 1; }
#estimator .est-pts {
  font-size: .7rem; font-weight: 600; color: var(--ap-muted);
  background: var(--ap-fill); border-radius: 999px; padding: .2rem .55rem; font-variant-numeric: tabular-nums;
}
#estimator .est-pts.on { color: var(--ap-green-ink); background: rgba(52, 199, 89, .12); }
#estimator .est-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
#estimator .est-item { display: flex; gap: .45rem; align-items: flex-start; font-size: .78rem; line-height: 1.4; color: var(--ap-fg); }
#estimator .est-item .est-ic { width: 13px; height: 13px; margin-top: 2px; }
#estimator .est-item-ok .est-ic { color: var(--ap-green); }
#estimator .est-item-miss { color: var(--ap-muted); }
#estimator .est-item-miss .est-ic { color: rgba(0,0,0,.25); }

/* Benefits: subtle green-tinted Apple panel */
#estimator .est-ben {
  margin-top: .75rem; background: rgba(52, 199, 89, .07); border: 1px solid rgba(52, 199, 89, .18);
  border-radius: var(--ap-radius); padding: 1rem 1.1rem;
}
#estimator .est-ben-t { font-size: .85rem; font-weight: 600; color: var(--ap-green-ink); margin: 0 0 .5rem; }
#estimator .est-ben-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; }
#estimator .est-ben-lines li { font-size: .82rem; color: var(--ap-fg); display: flex; gap: .45rem; align-items: flex-start; }
#estimator .est-ben-lines .est-ic { color: var(--ap-green); width: 14px; height: 14px; margin-top: 2px; }

/* Quiet skeletons: sized to final layout, 440/720 */
#estimator .est-skel {
  background: var(--ap-fill); border: 1px solid var(--ap-line); border-radius: 12px;
  animation: estPulse 1.4s ease-in-out infinite;
}
@keyframes estPulse { 50% { opacity: .5; } }
#estimator .est-skel-summary { height: 128px; }
#estimator .est-skel-row { display: flex; gap: .75rem; margin-top: .75rem; }
#estimator .est-skel-row .est-skel { flex: 1; height: 150px; }

@media (max-width: 600px) {
  #estimator .est-grid { grid-template-columns: 1fr; }
  #estimator .est-skel-row { flex-direction: column; }
  #estimator .est-summary { flex-direction: column; align-items: flex-start; }
}
[dir="rtl"] #estimator { direction: rtl; }
@media (prefers-reduced-motion: reduce) {
  #estimator .est-results.show, #estimator .est-skel { animation: none; }
  #estimator .est-go, #estimator .est-pill { transition: none; }
}

/* --- Detailed plan card: included modules + first fixes (Apple compact) --- */
#estimator .est-plan {
  margin-top: .75rem; background: #fff; border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius); padding: 1.1rem 1.2rem;
}
#estimator .est-plan-head { margin-bottom: .7rem; }
#estimator .est-plan-title { font-size: .95rem; font-weight: 600; color: var(--ap-fg); margin: 0; }
#estimator .est-plan-sub { font-size: .8rem; color: var(--ap-muted); margin: .15rem 0 0; }
#estimator .est-plan-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .9rem;
}
#estimator .est-plan-li { display: flex; gap: .45rem; align-items: flex-start; font-size: .8rem; line-height: 1.4; color: var(--ap-fg); }
#estimator .est-plan-li .est-ic { color: var(--ap-green); width: 14px; height: 14px; margin-top: 2px; }
#estimator .est-plan-base { color: var(--ap-sub); }
#estimator .est-plan-base .est-ic { color: var(--ap-muted); }
#estimator .est-plan-fixes { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--ap-line); }
#estimator .est-plan-fixes-t { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ap-muted); margin: 0 0 .5rem; }
#estimator .est-plan-fixes ol { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
#estimator .est-plan-fixes li { font-size: .8rem; color: var(--ap-fg); line-height: 1.45; }
@media (max-width: 600px) { #estimator .est-plan-list { grid-template-columns: 1fr; } }

/* keyboard focus: clear high-contrast ring for every focusable control */
/* keyboard focus: one high-contrast ring for every focusable control */
:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
