:root {
  --green-900: #24422d;
  --green-800: #355c3c;
  --green-700: #4f7650;
  --green-600: #6e955f;
  --green-300: #c8d6a5;
  --sage: #eef4df;
  --cream: #fff7e6;
  --cream-2: #f7edcf;
  --gold: #f3bf44;
  --gold-2: #f7dc86;
  --teal: #9ac7bd;
  --coral: #dc795f;
  --blue: #80aeca;
  --ink: #243328;
  --muted: #68776c;
  --white: rgba(255,255,255,.84);
  --card: rgba(255, 252, 238, .82);
  --stroke: rgba(94, 122, 75, .18);
  --shadow: 0 24px 70px rgba(44, 70, 42, .16);
  --shadow-soft: 0 14px 40px rgba(44, 70, 42, .10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #fbf0d5 0%, #eff4df 42%, #f7e7bb 100%);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(var(--shell), calc(100% - 44px)); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }

.page-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.85), transparent 34%),
    radial-gradient(circle at 85% 22%, rgba(243,191,68,.22), transparent 22%),
    radial-gradient(circle at 16% 82%, rgba(103,145,91,.25), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,248,228,.9));
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    radial-gradient(rgba(80,109,69,.22) .9px, transparent .9px),
    radial-gradient(rgba(255,255,255,.55) .8px, transparent .8px);
  background-size: 28px 28px, 46px 46px;
  background-position: 0 0, 12px 16px;
}
.sun-glow {
  position: absolute; top: 90px; left: 50%; width: 460px; height: 460px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(247,220,134,.6), rgba(247,220,134,0) 68%);
  filter: blur(2px);
}
.leaf { position: absolute; filter: blur(.1px); opacity: .75; }
.leaf::before,
.leaf::after { content: ""; position: absolute; border-radius: 999px 0 999px 0; background: linear-gradient(145deg, #4f7650, #d6c85f); transform-origin: bottom center; }
.leaf-a { top: -20px; left: -40px; width: 250px; height: 240px; transform: rotate(12deg); }
.leaf-b { top: -15px; right: -30px; width: 270px; height: 250px; transform: scaleX(-1) rotate(5deg); }
.leaf-c { bottom: -80px; right: -60px; width: 260px; height: 260px; opacity: .4; }
.leaf::before { width: 95px; height: 34px; left: 44px; top: 42px; box-shadow: 25px 58px 0 #719255, 82px 22px 0 #b0b96b, 95px 86px 0 #4f7650, 148px 50px 0 #c2bf61; }
.leaf::after { width: 70px; height: 26px; left: 18px; top: 120px; box-shadow: 68px 35px 0 #719255, 138px 7px 0 #d8ca69, 182px 62px 0 #537a51; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 249, 231, .70);
  border-bottom: 1px solid rgba(67, 95, 58, .10);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--green-800); letter-spacing: -.03em; font-size: 1.3rem; }
.brand small { font-size: .76rem; font-weight: 800; color: var(--green-600); background: rgba(111,149,95,.12); padding: 5px 9px; border-radius: 999px; letter-spacing: 0; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 14px; background: linear-gradient(145deg, var(--gold), var(--green-600)); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(106, 133, 73, .18); }
.brand-mark span { width: 15px; height: 15px; background: var(--cream); border-radius: 0 999px 999px 999px; transform: rotate(45deg); }
.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

@media (max-width: 560px) {
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
}
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 700; color: var(--green-900); }
.nav-links a { opacity: .82; }
.nav-links a:hover { opacity: 1; color: var(--green-700); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.65); border-radius: 14px; padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--green-800); margin: 5px 0; border-radius: 99px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--green-700), #84a663); box-shadow: 0 16px 35px rgba(67, 105, 61, .26); }
.btn-primary:hover { box-shadow: 0 20px 44px rgba(67, 105, 61, .34); }
.btn-ghost { color: var(--green-800); background: rgba(255,255,255,.66); border: 1px solid rgba(78,113,70,.16); box-shadow: var(--shadow-soft); }
.btn-small { min-height: 42px; padding: 10px 16px; font-size: .9rem; }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; gap: 54px; align-items: center; min-height: calc(100svh - 78px); padding: 92px 0 72px; }
.eyebrow { color: var(--green-700); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span { width: 22px; height: 22px; background: linear-gradient(145deg, #d7d27c, #5f8a52); border-radius: 0 999px 999px 999px; transform: rotate(45deg); box-shadow: 0 8px 20px rgba(69,93,52,.15); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.1rem, 7vw, 6.2rem); line-height: .91; letter-spacing: -.085em; margin-bottom: 24px; color: var(--green-900); }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.06em; color: var(--green-900); margin-bottom: 18px; }
h3 { color: var(--green-900); letter-spacing: -.03em; }
.hero-lead { font-size: 1.2rem; line-height: 1.75; color: var(--muted); max-width: 650px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-strip span { padding: 10px 13px; border-radius: 999px; color: var(--green-800); font-weight: 800; font-size: .89rem; background: rgba(255,255,255,.55); border: 1px solid rgba(83,119,73,.12); box-shadow: 0 10px 30px rgba(82,103,57,.08); }

.hero-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.device-frame {
  width: min(320px, 72vw); min-height: 610px; border-radius: 45px; padding: 22px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(253,246,226,.78));
  border: 8px solid rgba(255,255,255,.75);
  box-shadow: 0 42px 90px rgba(51,80,52,.18), inset 0 0 0 1px rgba(64,98,54,.1);
}
.phone-top { display: flex; align-items: center; justify-content: space-between; color: var(--green-800); font-weight: 900; margin-bottom: 24px; }
.logo-dot { width: 26px; height: 26px; border-radius: 10px; background: linear-gradient(145deg, var(--gold), var(--green-600)); display: block; }
.phone-top i { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #f7cd64, #de735e); }
.mood-row { padding: 18px; background: rgba(255,255,255,.72); border-radius: 24px; border: 1px solid var(--stroke); box-shadow: var(--shadow-soft); margin-bottom: 14px; }
.mood-row b { display: block; margin-bottom: 14px; color: var(--green-900); }
.mood-row div { display: flex; justify-content: space-between; font-size: 1.35rem; }
.app-card { border-radius: 28px; padding: 22px; min-height: 175px; margin-bottom: 14px; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,.75); }
.journey-card { background: linear-gradient(145deg, rgba(132,166,99,.88), rgba(247,220,134,.76)), radial-gradient(circle at 80% 20%, rgba(255,255,255,.85), transparent 25%); color: white; display: flex; flex-direction: column; justify-content: end; }
.journey-card span { font-weight: 900; }
.journey-card strong { font-size: 1.55rem; margin: 6px 0; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-grid div { background: rgba(255,255,255,.7); border: 1px solid var(--stroke); border-radius: 18px; padding: 18px 12px; text-align: center; font-weight: 900; color: var(--green-800); box-shadow: var(--shadow-soft); }
.dashboard-card, .floating-card { position: absolute; background: rgba(255, 253, 241, .88); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.75); box-shadow: var(--shadow); border-radius: 28px; }
.dashboard-card { width: 370px; right: 0; bottom: 25px; padding: 22px; }
.dash-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-head span { font-weight: 900; color: var(--green-900); }
.dash-head small { color: var(--muted); font-weight: 700; }
.chart-bars { height: 160px; display: flex; align-items: end; gap: 12px; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(111,149,95,.08)); border-radius: 18px; padding: 18px; }
.chart-bars span { flex: 1; height: var(--h); border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, var(--gold), var(--green-600)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.dash-metrics div { background: rgba(255,255,255,.58); border-radius: 16px; padding: 12px; }
.dash-metrics strong { display: block; color: var(--muted); font-size: .78rem; }
.dash-metrics b { color: var(--green-900); }
.insight-card { left: 0; top: 86px; padding: 18px 20px; display: grid; gap: 3px; min-width: 190px; }
.insight-card strong { color: var(--green-900); }
.insight-card em { font-size: 2rem; color: var(--green-700); font-style: normal; font-weight: 950; letter-spacing: -.07em; }
.insight-card small { color: var(--muted); font-weight: 700; }
.pulse { position: absolute; top: 17px; right: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 9px rgba(243,191,68,.16); }

.section-heading { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.section-heading p { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.section-heading.compact { text-align: left; margin: 0; }
.three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glass-card, .experience, .mock-dashboard, .dashboard-copy, .roi-card, .module-grid article, .privacy-card, .timeline div, .faq details {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.glass-card { padding: 30px; border-radius: var(--radius-lg); }
.glass-card i { font-size: 2.3rem; font-style: normal; display: block; margin-bottom: 14px; }
.glass-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.glass-card p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }

.dual-experience { background: rgba(255,255,255,.22); border-block: 1px solid rgba(82,107,57,.08); }
.dual-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: center; }
.experience-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.experience { border-radius: var(--radius-xl); padding: 24px; }
.experience h3 { font-size: 1.4rem; }
.experience ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--muted); font-weight: 650; }
.experience li::before { content: "✓"; color: var(--green-700); font-weight: 900; margin-right: 9px; }
.experience-illustration { height: 190px; border-radius: 26px; margin-bottom: 20px; overflow: hidden; position: relative; background: linear-gradient(145deg, #dfe8cd, #f4d88a); }
.employee-ui .avatar { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(145deg, #f5c172, #865e44); top: 24px; left: 24px; box-shadow: 0 0 0 10px rgba(255,255,255,.45); }
.employee-ui div { position: absolute; height: 30px; border-radius: 999px; background: rgba(255,255,255,.65); left: 24px; right: 24px; bottom: 26px; }
.employee-ui div:nth-child(3) { bottom: 66px; right: 80px; background: rgba(111,149,95,.72); }
.employee-ui div:nth-child(4) { bottom: 106px; left: 116px; right: 22px; }
.director-ui { display: grid; place-items: center; }
.donut { width: 122px; height: 122px; border-radius: 50%; background: conic-gradient(var(--green-700) 0 52%, var(--gold) 52% 75%, var(--blue) 75% 100%); box-shadow: inset 0 0 0 28px rgba(255,251,235,.95); }
.director-ui span { position: absolute; left: 24px; height: 15px; border-radius: 99px; background: rgba(255,255,255,.78); width: 42%; bottom: 32px; }
.director-ui span:nth-child(3) { bottom: 58px; width: 62%; }
.director-ui span:nth-child(4) { bottom: 84px; width: 33%; background: rgba(111,149,95,.56); }

.dashboard-showcase { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: stretch; }
.mock-dashboard { border-radius: var(--radius-xl); padding: 24px; }
.mock-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mock-top strong { color: var(--green-900); font-size: 1.25rem; display: block; }
.mock-top small { color: var(--muted); font-weight: 700; }
.mock-top button { border: 0; border-radius: 999px; padding: 10px 14px; background: rgba(111,149,95,.14); color: var(--green-800); font-weight: 900; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.62); border: 1px solid rgba(92,116,69,.1); }
.kpi span { display: block; color: var(--muted); font-weight: 800; font-size: .83rem; }
.kpi strong { display: block; font-size: 1.7rem; letter-spacing: -.06em; color: var(--green-900); margin: 6px 0 2px; }
.kpi em { font-style: normal; color: var(--muted); font-weight: 900; font-size: .82rem; }
.kpi em.down { color: #4f8d63; }
.kpi em.up { color: #cb8841; }
.rps-list { display: grid; gap: 14px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(111,149,95,.08)); }
.rps-list div { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 18px; color: var(--green-900); font-weight: 800; }
.rps-list b { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--green-700)); width: var(--w); box-shadow: 0 0 0 8px rgba(255,255,255,.42); }
.dashboard-copy { border-radius: var(--radius-xl); padding: 30px; }
.dashboard-copy p { color: var(--muted); line-height: 1.75; }
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill-list span { padding: 9px 11px; border-radius: 999px; background: rgba(111,149,95,.11); color: var(--green-800); font-weight: 850; font-size: .86rem; }

.roi-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: center; }
.roi-card { border-radius: var(--radius-xl); padding: 28px; }
.roi-chart { min-height: 430px; border-radius: 28px; padding: 28px; background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,247,225,.46)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.bar-group { height: 330px; display: flex; align-items: end; justify-content: center; gap: 42px; padding-bottom: 40px; border-bottom: 1px solid rgba(64,92,57,.14); }
.bar { width: 92px; height: var(--h); border-radius: 999px 999px 16px 16px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 20px 40px rgba(74,102,61,.13); }
.bar.muted { background: linear-gradient(180deg, #d7c9b0, #bcae98); }
.bar.active { background: linear-gradient(180deg, var(--gold), var(--green-700)); }
.bar em { position: absolute; left: 50%; transform: translateX(-50%); bottom: -42px; width: 140px; text-align: center; font-style: normal; font-weight: 900; color: var(--green-900); }
.roi-note strong { font-size: clamp(3.3rem, 8vw, 5.6rem); color: var(--green-800); letter-spacing: -.09em; line-height: .9; display: block; }
.roi-note span { color: var(--muted); line-height: 1.65; font-weight: 700; }
.roi-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-weight: 800; }
.roi-legend i { width: 12px; height: 12px; display: inline-block; border-radius: 50%; margin-right: 8px; }
.muted-dot { background: #bcae98; }
.active-dot { background: var(--green-700); }

.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module-grid article { padding: 22px; border-radius: 24px; }
.module-grid i { font-style: normal; font-size: 2rem; }
.module-grid h3 { margin: 12px 0 8px; }
.module-grid p { color: var(--muted); line-height: 1.55; margin: 0; }

.privacy-card { border-radius: 40px; padding: 44px; display: grid; grid-template-columns: 1fr .75fr; gap: 30px; align-items: center; }
.privacy-card p { color: var(--muted); line-height: 1.75; }
.privacy-points { display: grid; gap: 14px; }
.privacy-points div { background: rgba(255,255,255,.62); border-radius: 22px; padding: 18px; display: flex; gap: 18px; align-items: center; }
.privacy-points strong { color: var(--gold); font-size: 1.5rem; }
.privacy-points span { color: var(--green-900); font-weight: 900; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline div { border-radius: 26px; padding: 24px; }
.timeline b { width: 42px; height: 42px; border-radius: 16px; background: linear-gradient(145deg, var(--gold), var(--green-600)); display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; margin-bottom: 16px; }
.timeline p { color: var(--muted); line-height: 1.6; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq details { border-radius: 22px; padding: 20px 22px; }
.faq summary { cursor: pointer; font-weight: 900; color: var(--green-900); }
.faq p { color: var(--muted); line-height: 1.65; margin: 14px 0 0; }

.booking-banner {
  position: fixed; z-index: 18; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(920px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-radius: 999px; padding: 12px 12px 12px 24px;
  background: rgba(255, 252, 238, .88); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 18px 60px rgba(41, 62, 38, .20); backdrop-filter: blur(18px);
}
.booking-banner strong { display: block; color: var(--green-900); }
.booking-banner span { color: var(--muted); font-weight: 700; }

.modal { position: fixed; inset: 0; z-index: 70; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,34,23,.54); backdrop-filter: blur(10px); }
.booking-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1040px, calc(100% - 24px)); max-height: min(88svh, 900px); overflow: auto;
  border-radius: 40px; background: linear-gradient(180deg, rgba(255,253,243,.96), rgba(250,242,218,.96));
  border: 1px solid rgba(255,255,255,.82); box-shadow: 0 40px 140px rgba(0,0,0,.28); padding: 34px;
}
.modal-close { position: sticky; top: 0; float: right; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(67,95,58,.1); color: var(--green-800); font-size: 1.65rem; cursor: pointer; }
.booking-head { max-width: 610px; margin-bottom: 24px; }
.booking-head h2 { margin: 8px 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); }
.booking-head p { color: var(--muted); line-height: 1.65; }
.booking-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.field-label { display: block; font-weight: 950; color: var(--green-900); margin-bottom: 12px; }
.field-label small { color: var(--muted); font-weight: 750; }
.date-grid, .slots-grid { display: grid; gap: 10px; }
.date-grid { grid-template-columns: repeat(3, 1fr); }
.slots-grid { grid-template-columns: repeat(4, 1fr); max-height: 250px; overflow: auto; padding-right: 4px; }
.date-btn, .slot-btn {
  border: 1px solid rgba(84,114,67,.16); background: rgba(255,255,255,.62); color: var(--green-900); border-radius: 18px; padding: 13px 12px; cursor: pointer; font-weight: 900;
  box-shadow: 0 8px 20px rgba(65,92,56,.08); transition: .18s ease;
}
.date-btn small { display: block; color: var(--muted); font-weight: 750; margin-top: 4px; }
.date-btn.is-selected, .slot-btn.is-selected { background: linear-gradient(135deg, rgba(111,149,95,.92), rgba(145,171,104,.92)); color: #fff; border-color: transparent; }
.slot-btn.is-unavailable { opacity: .44; cursor: not-allowed; text-decoration: line-through; background: rgba(219,211,193,.65); color: #7d7564; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-form label span { display: block; color: var(--green-900); font-weight: 900; margin-bottom: 8px; }
.booking-form label em { color: var(--muted); font-style: normal; font-size: .85em; }
.booking-form input, .booking-form textarea {
  width: 100%; border: 1px solid rgba(80,111,69,.16); border-radius: 18px; padding: 15px 16px; background: rgba(255,255,255,.67); outline: none; color: var(--green-900); box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.booking-form input:focus, .booking-form textarea:focus { border-color: rgba(79,118,80,.55); box-shadow: 0 0 0 5px rgba(111,149,95,.12); }
.full-field { display: block; margin: 14px 0; }
.btn-submit { width: 100%; }
.booking-status { min-height: 26px; margin: 14px 0 0; color: var(--green-800); font-weight: 850; text-align: center; }
.booking-status.error { color: #b15b48; }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .75s ease forwards; }
.delay-1 { animation-delay: .14s; }
.delay-2 { animation-delay: .28s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1060px) {
  .hero, .dual-grid, .dashboard-showcase, .roi-grid, .privacy-card { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-visual { min-height: 760px; }
  .dashboard-card { right: 50%; transform: translateX(50%); bottom: 0; }
  .insight-card { left: 50%; transform: translateX(-50%); top: 0; }
  .module-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 22px; right: 22px; top: 82px; padding: 18px;
    border-radius: 22px; background: rgba(255,252,238,.95); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.75);
    display: none; flex-direction: column; align-items: stretch; gap: 12px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links button { width: 100%; justify-content: center; }
  .three-cards, .experience-cards, .faq-grid, .booking-columns, .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .rps-list div { grid-template-columns: 1fr; gap: 8px; }
  .roi-chart { grid-template-columns: 1fr; }
  .bar-group { height: 240px; }
  .booking-banner { border-radius: 28px; flex-direction: column; align-items: stretch; text-align: center; padding: 16px; }
  .booking-panel { padding: 24px; border-radius: 28px; }
  .date-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .section { padding: 64px 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  h1 { font-size: 3.2rem; }
  .hero-lead { font-size: 1.04rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 700px; }
  .dashboard-card { width: calc(100% - 10px); }
  .insight-card { display: none; }
  .module-grid, .timeline, .kpi-grid { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  main { padding-bottom: 116px; }
}
/* Selected date: make the full date white too */
.date-btn.is-selected small {
  color: rgba(255, 255, 255, .92);
}

/* Success modal */
.success-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 28px));
  border-radius: 34px;
  padding: 34px 28px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,253,243,.98), rgba(250,242,218,.98));
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 40px 140px rgba(0,0,0,.28);
}

.success-icon {
  width: 74px;
  height: 74px;
  margin: 8px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green-600), var(--gold));
  box-shadow: 0 18px 44px rgba(79,118,80,.28);
}

.success-panel h2 {
  margin: 0 0 12px;
  color: var(--green-900);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.success-panel p {
  margin: 0 auto 24px;
  max-width: 390px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.65;
}

.success-close-btn {
  width: 100%;
}

/* Mobile sticky booking banner fix */
@media (max-width: 560px) {
  main {
    padding-bottom: 116px;
  }

  .booking-banner {
    display: flex !important;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    z-index: 30;
    border-radius: 22px;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .booking-banner div {
    min-width: 0;
  }

  .booking-banner strong {
    font-size: .92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .booking-banner span {
    display: none;
  }

  .booking-banner .btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 15px;
    white-space: nowrap;
  }

  .success-panel {
    border-radius: 28px;
    padding: 30px 22px 24px;
  }
}

@media (max-width: 370px) {
  .booking-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .booking-banner strong {
    white-space: normal;
  }

  .booking-banner .btn {
    width: 100%;
  }
}


/* =========================
   Advanced pro upgrade
   ========================= */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 100;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green-700), var(--gold), var(--green-600));
  box-shadow: 0 0 20px rgba(243, 191, 68, .45);
}

.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient-particles span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 0 26px rgba(243,191,68,.35);
  animation: particleFloat 13s linear infinite;
}
.ambient-particles span:nth-child(1) { left: 8%; top: 72%; animation-duration: 16s; }
.ambient-particles span:nth-child(2) { left: 26%; top: 22%; animation-duration: 19s; animation-delay: -4s; }
.ambient-particles span:nth-child(3) { left: 67%; top: 68%; animation-duration: 14s; animation-delay: -7s; }
.ambient-particles span:nth-child(4) { left: 82%; top: 28%; animation-duration: 18s; animation-delay: -10s; }
.ambient-particles span:nth-child(5) { left: 46%; top: 88%; animation-duration: 20s; animation-delay: -12s; }
@keyframes particleFloat {
  0% { transform: translate3d(0, 30px, 0) scale(.72); opacity: 0; }
  12% { opacity: .75; }
  50% { transform: translate3d(28px, -80px, 0) scale(1); }
  100% { transform: translate3d(-22px, -190px, 0) scale(.62); opacity: 0; }
}

.page-bg::before { animation: bgBreath 12s ease-in-out infinite alternate; }
.sun-glow { animation: sunPulse 9s ease-in-out infinite alternate; }
.leaf-a { animation: leafDriftA 11s ease-in-out infinite alternate; }
.leaf-b { animation: leafDriftB 13s ease-in-out infinite alternate; }
.leaf-c { animation: leafDriftC 15s ease-in-out infinite alternate; }
@keyframes bgBreath { to { filter: saturate(1.08) brightness(1.015); transform: scale(1.018); } }
@keyframes sunPulse { to { transform: translateX(-50%) scale(1.12); opacity: .92; } }
@keyframes leafDriftA { to { transform: rotate(18deg) translate3d(12px, 18px, 0); } }
@keyframes leafDriftB { to { transform: scaleX(-1) rotate(-2deg) translate3d(-10px, 20px, 0); } }
@keyframes leafDriftC { to { transform: rotate(9deg) translate3d(-18px, -18px, 0); } }

.hero-title { display: grid; gap: .02em; }
.hero-title span, .hero-title strong { display: block; }
.hero-title strong {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--green-900), var(--green-700), var(--gold), var(--green-700));
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShimmer 5.5s ease-in-out infinite;
}
@keyframes titleShimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-visual .device-frame,
.hero-visual .dashboard-card,
.hero-visual .floating-card,
.roi-card,
.mock-dashboard { will-change: transform; }
.hero-visual .device-frame { animation: deviceFloat 6.8s ease-in-out infinite; }
.hero-visual .dashboard-card { animation: cardFloat 7.5s ease-in-out infinite; }
@keyframes deviceFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -40%;
  width: 40%;
  height: 240%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  animation: buttonSweep 3.8s ease-in-out infinite;
}
@keyframes buttonSweep { 0%, 35% { left: -55%; } 65%, 100% { left: 125%; } }

.js .reveal,
.js .reveal-pro,
.js .glass-card,
.js .module-grid article,
.js .timeline div,
.js .faq details {
  animation: none !important;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  transition:
    opacity .86s ease,
    transform .86s cubic-bezier(.16,1,.3,1),
    box-shadow .25s ease,
    border-color .25s ease;
}
.js .reveal.is-visible,
.js .reveal-pro.is-visible,
.js .glass-card.is-visible,
.js .module-grid article.is-visible,
.js .timeline div.is-visible,
.js .faq details.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.js .delay-1 { transition-delay: .14s; }
.js .delay-2 { transition-delay: .26s; }

.glass-card:hover,
.module-grid article:hover,
.experience:hover,
.faq details:hover {
  transform: translateY(-6px);
  border-color: rgba(111,149,95,.26);
  box-shadow: 0 24px 70px rgba(44,70,42,.16);
}

/* Showcase section */
.showcase-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(243,191,68,.16), transparent 24%),
    radial-gradient(circle at 86% 54%, rgba(111,149,95,.16), transparent 28%),
    rgba(255,255,255,.18);
  border-block: 1px solid rgba(82,107,57,.08);
}
.showcase-bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: .34;
  pointer-events: none;
}
.showcase-bg-orb.orb-a { left: -170px; top: 80px; background: var(--gold-2); animation: orbMoveA 12s ease-in-out infinite alternate; }
.showcase-bg-orb.orb-b { right: -160px; bottom: 60px; background: var(--green-300); animation: orbMoveB 13s ease-in-out infinite alternate; }
@keyframes orbMoveA { to { transform: translate3d(80px, 50px, 0) scale(1.08); } }
@keyframes orbMoveB { to { transform: translate3d(-60px, -30px, 0) scale(1.12); } }
.product-showcase-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 24px;
  align-items: stretch;
}
.product-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 680px;
  padding: 28px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,253,242,.88), rgba(247,237,207,.72));
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 30px 90px rgba(44,70,42,.14);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.product-showcase-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 22% 10%, rgba(255,255,255,.72), transparent 32%), radial-gradient(circle at 80% 100%, rgba(111,149,95,.14), transparent 34%);
  pointer-events: none;
}
.showcase-copy-block { position: relative; z-index: 2; }
.feature-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--green-800);
  background: rgba(111,149,95,.12);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.showcase-copy-block h3 { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.06; margin-bottom: 10px; }
.showcase-copy-block p { margin: 0; color: var(--muted); line-height: 1.72; font-weight: 650; }
.phone-product-frame,
.laptop-product-frame {
  position: relative;
  z-index: 2;
  margin: auto;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .2s ease;
}
.phone-product-frame {
  width: min(310px, 74vw);
  padding: 16px;
  border-radius: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(242,232,197,.9));
  border: 8px solid rgba(255,255,255,.84);
  box-shadow: 0 38px 80px rgba(36,66,45,.21), inset 0 0 0 1px rgba(36,66,45,.08);
}
.phone-glow {
  position: absolute;
  inset: 10% -22% auto -22%;
  height: 270px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243,191,68,.26), transparent 68%);
  filter: blur(8px);
  z-index: -1;
}
.phone-notch {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 92px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: rgba(36,66,45,.22);
  z-index: 4;
}
.showcase-screen {
  position: relative;
  overflow: hidden;
  background: rgba(238,244,223,.72);
}
.portrait-screen { aspect-ratio: 9/16; border-radius: 32px; }
.landscape-screen { aspect-ratio: 16/10; border-radius: 0 0 22px 22px; }
.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045) translateX(18px);
  filter: blur(6px);
  transition: opacity .72s ease, transform .82s cubic-bezier(.16,1,.3,1), filter .72s ease;
}
.showcase-img.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  filter: blur(0);
}
.floating-ui-pill {
  position: absolute;
  z-index: 5;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--green-900);
  font-size: .76rem;
  font-weight: 950;
  background: rgba(255,253,242,.88);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 14px 35px rgba(36,66,45,.14);
  backdrop-filter: blur(12px);
}
.pill-top { left: -22px; top: 72px; animation: pillFloat 4s ease-in-out infinite; }
.pill-bottom { right: -28px; bottom: 86px; animation: pillFloat 4.6s ease-in-out infinite reverse; }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.laptop-product-frame {
  width: min(720px, 100%);
  border-radius: 28px;
  padding: 10px 10px 0;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(236,226,194,.9));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 42px 90px rgba(36,66,45,.18);
}
.laptop-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 20px 20px 0 0;
  color: var(--green-800);
  font-size: .84rem;
  font-weight: 950;
  background: rgba(255,255,255,.55);
}
.laptop-topbar span { width: 10px; height: 10px; border-radius: 999px; background: var(--coral); opacity: .8; }
.laptop-topbar span:nth-child(2) { background: var(--gold); }
.laptop-topbar span:nth-child(3) { background: var(--green-600); }
.laptop-topbar b { margin-left: auto; }
.laptop-base {
  width: 76%;
  height: 18px;
  margin: 0 auto -18px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(231,217,181,.96), rgba(198,184,151,.96));
  box-shadow: 0 18px 36px rgba(36,66,45,.15);
}
.showcase-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.showcase-tabs button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(80,111,69,.13);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--green-800);
  background: rgba(255,255,255,.56);
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.showcase-tabs button span {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 999px;
  background: rgba(111,149,95,.38);
}
.showcase-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), #87a866);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(67,105,61,.2);
}
.showcase-tabs button.is-active span { background: var(--gold); box-shadow: 0 0 0 5px rgba(243,191,68,.18); }
.showcase-tabs button:hover { transform: translateY(-2px); }

/* Stronger mobile UX */
@media (max-width: 1060px) {
  .product-showcase-grid { grid-template-columns: 1fr; }
  .product-showcase-card { min-height: auto; }
  .dashboard-product-card { padding-bottom: 38px; }
}
@media (max-width: 820px) {
  .hero-title { gap: 0; }
  .product-showcase-card { border-radius: 32px; padding: 22px; }
  .phone-product-frame { width: min(300px, 86vw); }
  .laptop-topbar b { display: none; }
  .showcase-tabs { gap: 8px; }
  .showcase-tabs button { font-size: .84rem; padding: 9px 11px; }
}
@media (max-width: 560px) {
  .ambient-particles span { opacity: .38; }
  .hero-title { font-size: 3rem; }
  .product-showcase-card { padding: 18px; }
  .floating-ui-pill { display: none; }
  .laptop-product-frame { border-radius: 20px; padding: 7px 7px 0; }
  .laptop-topbar { height: 32px; border-radius: 15px 15px 0 0; }
  .laptop-base { height: 12px; margin-bottom: -12px; }
  .landscape-screen { border-radius: 0 0 16px 16px; }
  .showcase-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .showcase-tabs button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Small-screen hero card position fix: avoid transform conflicts with float animation */
@media (max-width: 1060px) {
  .hero-visual .dashboard-card {
    animation: none;
  }
}

/* Dashboard RPS tabs: cleaner layout for 6 analytics maquettes */
.dashboard-rps-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard-rps-tabs button {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 820px) {
  .dashboard-rps-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-rps-tabs button {
    font-size: .78rem;
    padding: 9px 8px;
  }
}

@media (max-width: 420px) {
  .dashboard-rps-tabs {
    grid-template-columns: 1fr;
  }
}
/* App store buttons section */
.store-download-section {
  padding-top: 40px;
  padding-bottom: 150px;
}

.store-download-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(243,191,68,.22), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(111,149,95,.18), transparent 30%),
    rgba(255, 252, 238, .86);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 28px 90px rgba(44, 70, 42, .16);
  backdrop-filter: blur(18px);
}

.store-download-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(243,191,68,.18);
  filter: blur(10px);
  pointer-events: none;
}

.store-copy {
  position: relative;
  z-index: 1;
}

.store-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.store-copy p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.store-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-badge {
  min-width: 210px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 18px 45px rgba(36, 66, 45, .24);
  transition: transform .22s ease, box-shadow .22s ease;
}

.store-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(36, 66, 45, .32);
}

.store-badge small {
  display: block;
  font-size: .76rem;
  font-weight: 750;
  opacity: .84;
  line-height: 1;
}

.store-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1;
}

.store-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 1.25rem;
}

.app-store {
  background: linear-gradient(135deg, #1e3124, #6e955f);
}

.google-play {
  background: linear-gradient(135deg, #315b3a, #f3bf44);
}

@media (max-width: 820px) {
  .store-download-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 22px;
  }

  .store-copy p {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .store-download-section {
    padding-bottom: 145px;
  }

  .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }
}

/* iPhone/Safari store button tap fix */
.store-badge {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.store-badge span,
.store-badge small,
.store-badge strong {
  pointer-events: none;
}

.store-buttons {
  position: relative;
  z-index: 5;
}

@media (hover: none) {
  .store-badge:hover {
    transform: none;
  }
}

/* App showcase: 9 tabs responsive layout */
.app-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.app-showcase-tabs button {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  padding: 10px 12px;
}

@media (max-width: 820px) {
  .app-showcase-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-showcase-tabs button {
    font-size: .78rem;
    padding: 9px 8px;
  }
}

@media (max-width: 420px) {
  .app-showcase-tabs {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Mobile-first cinematic ecosystem hero preview
========================================================= */

.hero-ecosystem {
  min-height: 650px;
  isolation: isolate;
  perspective: 1200px;
}

.hero-ecosystem::before {
  content: "";
  position: absolute;
  width: min(620px, 92vw);
  height: min(620px, 92vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(243,191,68,.24), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(111,149,95,.18), transparent 62%);
  filter: blur(4px);
  animation: ecosystemGlow 7s ease-in-out infinite alternate;
  z-index: -2;
}

.ecosystem-orbit {
  position: absolute;
  width: min(560px, 86vw);
  height: min(560px, 86vw);
  border-radius: 50%;
  border: 1px solid rgba(111,149,95,.18);
  box-shadow:
    inset 0 0 0 16px rgba(255,255,255,.13),
    0 0 90px rgba(243,191,68,.13);
  animation: orbitSlow 18s linear infinite;
  z-index: -1;
}

.ecosystem-orbit::before,
.ecosystem-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green-600));
  box-shadow: 0 12px 28px rgba(61,91,54,.18);
}

.ecosystem-orbit::before {
  width: 16px;
  height: 16px;
  left: 14%;
  top: 22%;
}

.ecosystem-orbit::after {
  width: 11px;
  height: 11px;
  right: 18%;
  bottom: 24%;
}

.ecosystem-dashboard {
  position: absolute;
  right: 0;
  top: 42%;
  width: min(480px, 74vw);
  transform: translateY(-50%) rotateY(-10deg) rotateX(3deg);
  transform-style: preserve-3d;
  border-radius: 28px;
  padding: 12px;
  background: rgba(255,253,241,.70);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 34px 90px rgba(35,56,36,.20);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: dashboardEnter 1.1s cubic-bezier(.16,1,.3,1) both, dashboardFloat 7s ease-in-out infinite 1.1s;
}

.ecosystem-dashboard-top {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--green-900);
  font-size: .78rem;
  font-weight: 900;
}

.ecosystem-dashboard-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(111,149,95,.38);
}

.ecosystem-dashboard-top span:nth-child(2) {
  background: rgba(243,191,68,.65);
}

.ecosystem-dashboard-top span:nth-child(3) {
  background: rgba(128,174,202,.55);
}

.ecosystem-dashboard-top strong {
  margin-left: 6px;
}

.ecosystem-dashboard-screen {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.65);
}

.ecosystem-dashboard-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ecosystem-dashboard-glass {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ecosystem-dashboard-glass div {
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 12px 26px rgba(46,70,43,.10);
}

.ecosystem-dashboard-glass small {
  display: block;
  color: var(--muted);
  font-weight: 850;
  font-size: .68rem;
}

.ecosystem-dashboard-glass b {
  display: block;
  color: var(--green-900);
  font-size: 1rem;
  margin-top: 2px;
}

.ecosystem-phone {
  position: relative;
  width: min(255px, 58vw);
  aspect-ratio: 9 / 18.4;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(253,246,226,.82));
  border: 6px solid rgba(255,255,255,.82);
  box-shadow:
    0 38px 90px rgba(39,65,41,.24),
    inset 0 0 0 1px rgba(69,104,57,.13);
  transform: translate3d(-64px, 24px, 80px) rotateZ(-2deg);
  animation: phoneEnter 1s cubic-bezier(.16,1,.3,1) both .15s, phoneFloat 6.5s ease-in-out infinite 1.15s;
  z-index: 3;
}

.ecosystem-phone-glow {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  background: rgba(243,191,68,.28);
  filter: blur(34px);
  z-index: -1;
}

.ecosystem-phone-notch {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 32%;
  height: 14px;
  border-radius: 0 0 14px 14px;
  background: rgba(36,66,45,.86);
  z-index: 5;
}

.ecosystem-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--cream);
}

.ecosystem-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(16%) scale(1.03);
  animation: heroPhoneCycle 9s infinite;
}

.ecosystem-phone-screen img:nth-child(1) {
  animation-delay: 0s;
}

.ecosystem-phone-screen img:nth-child(2) {
  animation-delay: 3s;
}

.ecosystem-phone-screen img:nth-child(3) {
  animation-delay: 6s;
}

.ecosystem-bridge {
  position: absolute;
  width: min(430px, 72vw);
  height: 120px;
  left: 48%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.ecosystem-bridge span {
  position: absolute;
  left: 20%;
  right: 12%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(243,191,68,.82), rgba(111,149,95,.65), transparent);
  transform-origin: left center;
  animation: dataFlow 2.8s ease-in-out infinite;
}

.ecosystem-bridge span:nth-child(1) {
  top: 34px;
  transform: rotate(-8deg);
}

.ecosystem-bridge span:nth-child(2) {
  top: 60px;
  transform: rotate(4deg);
  animation-delay: .45s;
}

.ecosystem-bridge span:nth-child(3) {
  top: 84px;
  transform: rotate(14deg);
  animation-delay: .9s;
}

.ecosystem-kpi {
  position: absolute;
  z-index: 6;
  min-width: 118px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255,253,241,.78);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 18px 45px rgba(43,70,42,.16);
  backdrop-filter: blur(18px);
  animation: kpiFloat 5.8s ease-in-out infinite;
}

.ecosystem-kpi span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.ecosystem-kpi strong {
  display: block;
  color: var(--green-900);
  font-size: 1.25rem;
  margin-top: 3px;
  letter-spacing: -.04em;
}

.kpi-left {
  left: 2%;
  top: 18%;
}

.kpi-right {
  right: 4%;
  top: 12%;
  animation-delay: -1.2s;
}

.kpi-bottom {
  right: 12%;
  bottom: 16%;
  animation-delay: -2.2s;
}

.ecosystem-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(460px, 92%);
  padding: 14px 16px;
  text-align: center;
  border-radius: 22px;
  color: var(--green-900);
  background: rgba(255,253,241,.72);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 18px 44px rgba(42,65,37,.13);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.ecosystem-caption strong {
  display: block;
  font-weight: 950;
}

.ecosystem-caption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

@keyframes ecosystemGlow {
  to {
    transform: scale(1.05);
    filter: blur(7px) saturate(1.08);
  }
}

@keyframes orbitSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes phoneEnter {
  from {
    opacity: 0;
    transform: translate3d(-94px, 62px, 80px) rotateZ(-7deg) scale(.92);
  }
}

@keyframes dashboardEnter {
  from {
    opacity: 0;
    transform: translateY(-48%) translateX(40px) rotateY(-16deg) rotateX(5deg) scale(.94);
  }
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translate3d(-64px, 24px, 80px) rotateZ(-2deg);
  }
  50% {
    transform: translate3d(-64px, 8px, 80px) rotateZ(1deg);
  }
}

@keyframes dashboardFloat {
  0%, 100% {
    transform: translateY(-50%) rotateY(-10deg) rotateX(3deg);
  }
  50% {
    transform: translateY(-53%) rotateY(-7deg) rotateX(2deg);
  }
}

@keyframes kpiFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes dataFlow {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  35% {
    opacity: 1;
  }
  75% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes heroPhoneCycle {
  0% {
    opacity: 0;
    transform: translateX(18%) scale(1.04);
  }
  8%, 28% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  36%, 100% {
    opacity: 0;
    transform: translateX(-14%) scale(1.02);
  }
}

/* Tablet and mobile: hero becomes vertical and centered */
@media (max-width: 1060px) {
  .hero {
    text-align: center;
  }

  .hero-copy {
    max-width: 820px;
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-strip {
    justify-content: center;
  }

  .hero-ecosystem {
    min-height: 610px;
    margin-top: -16px;
  }

  .ecosystem-dashboard {
    right: 50%;
    top: 39%;
    width: min(470px, 86vw);
    transform: translateX(50%) translateY(-50%) rotateY(-4deg) rotateX(2deg) scale(.94);
  }

  .ecosystem-phone {
    transform: translate3d(-74px, 86px, 80px) rotateZ(-3deg);
  }

  .kpi-left {
    left: 8%;
    top: 10%;
  }

  .kpi-right {
    right: 8%;
    top: 7%;
  }

  .kpi-bottom {
    right: 50%;
    bottom: 12%;
    transform: translateX(50%);
  }

  @keyframes phoneFloat {
    0%, 100% {
      transform: translate3d(-74px, 86px, 80px) rotateZ(-3deg);
    }
    50% {
      transform: translate3d(-74px, 70px, 80px) rotateZ(0deg);
    }
  }

  @keyframes dashboardFloat {
    0%, 100% {
      transform: translateX(50%) translateY(-50%) rotateY(-4deg) rotateX(2deg) scale(.94);
    }
    50% {
      transform: translateX(50%) translateY(-53%) rotateY(-2deg) rotateX(1deg) scale(.94);
    }
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 38px;
  }

  .hero-ecosystem {
    min-height: 560px;
    margin-top: -8px;
  }

  .hero-ecosystem::before {
    width: 96vw;
    height: 96vw;
  }

  .ecosystem-orbit {
    width: 92vw;
    height: 92vw;
  }

  .ecosystem-dashboard {
    top: 33%;
    width: 92vw;
    border-radius: 22px;
    padding: 9px;
    opacity: .96;
  }

  .ecosystem-dashboard-top {
    height: 28px;
    font-size: .66rem;
  }

  .ecosystem-dashboard-screen {
    border-radius: 16px;
  }

  .ecosystem-dashboard-glass {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 6px;
  }

  .ecosystem-dashboard-glass div {
    padding: 7px;
    border-radius: 12px;
  }

  .ecosystem-dashboard-glass small {
    font-size: .58rem;
  }

  .ecosystem-dashboard-glass b {
    font-size: .82rem;
  }

  .ecosystem-phone {
    width: min(210px, 54vw);
    border-radius: 32px;
    padding: 8px;
    border-width: 5px;
    transform: translate3d(-52px, 126px, 80px) rotateZ(-3deg);
  }

  .ecosystem-phone-screen {
    border-radius: 24px;
  }

  .ecosystem-phone-notch {
    height: 11px;
    top: 9px;
  }

  .ecosystem-kpi {
    min-width: auto;
    padding: 9px 11px;
    border-radius: 16px;
  }

  .ecosystem-kpi span {
    font-size: .62rem;
  }

  .ecosystem-kpi strong {
    font-size: .94rem;
  }

  .kpi-left {
    left: 2%;
    top: 11%;
  }

  .kpi-right {
    right: 2%;
    top: 10%;
  }

  .kpi-bottom {
    bottom: 13%;
  }

  .ecosystem-caption {
    bottom: 0;
    width: 100%;
    border-radius: 20px;
    padding: 12px 13px;
  }

  .ecosystem-caption span {
    font-size: .76rem;
  }

  .ecosystem-bridge {
    width: 86vw;
    top: 47%;
  }

  @keyframes phoneFloat {
    0%, 100% {
      transform: translate3d(-52px, 126px, 80px) rotateZ(-3deg);
    }
    50% {
      transform: translate3d(-52px, 112px, 80px) rotateZ(0deg);
    }
  }
}

@media (max-width: 390px) {
  .hero-ecosystem {
    min-height: 520px;
  }

  .ecosystem-phone {
    width: min(190px, 52vw);
    transform: translate3d(-42px, 126px, 80px) rotateZ(-3deg);
  }

  .ecosystem-caption {
    font-size: .86rem;
  }

  .ecosystem-caption span {
    display: none;
  }

  @keyframes phoneFloat {
    0%, 100% {
      transform: translate3d(-42px, 126px, 80px) rotateZ(-3deg);
    }
    50% {
      transform: translate3d(-42px, 114px, 80px) rotateZ(0deg);
    }
  }
}

/* =========================================================
   Mobile-first hero order: cinematic preview first
   Desktop stays text left / visual right
========================================================= */

@media (max-width: 820px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 26px;
  }

  .hero-ecosystem {
    order: 1;
    width: 100%;
    min-height: 540px;
    margin-top: 0;
  }

  .hero-copy {
    order: 2;
    width: 100%;
  }

  .hero-title {
    margin-top: 6px;
  }

  .hero-lead {
    margin-bottom: 22px;
  }

  .trust-strip {
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 18px;
    gap: 18px;
  }

  .hero-ecosystem {
    min-height: 510px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 13vw, 3.35rem);
    line-height: .95;
  }

  .hero-copy .eyebrow {
    justify-content: center;
  }

  .hero-actions {
    margin-bottom: 20px;
  }
}

@media (max-width: 390px) {
  .hero-ecosystem {
    min-height: 480px;
  }
}

/* =========================================================
   Fix mobile hero overlap after putting ecosystem first
   Adds safe vertical room before headline text
========================================================= */

@media (max-width: 820px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 18px;
  }

  .hero-ecosystem {
    order: 1;
    width: 100%;
    min-height: 670px !important;
    margin-top: 0;
    margin-bottom: 42px;
  }

  .hero-copy {
    order: 2;
    position: relative;
    z-index: 5;
    width: 100%;
    padding-top: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 12px;
  }

  .hero-ecosystem {
    min-height: 650px !important;
    margin-bottom: 46px;
  }

  .ecosystem-caption {
    bottom: 12px;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero-title {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .hero-ecosystem {
    min-height: 625px !important;
    margin-bottom: 42px;
  }

  .ecosystem-phone {
    width: min(200px, 52vw);
  }
}

@media (max-width: 390px) {
  .hero-ecosystem {
    min-height: 600px !important;
    margin-bottom: 38px;
  }
}
/* Fix clipped descenders in mobile hero gradient title */
.hero-title {
  overflow: visible;
  padding-bottom: .08em;
}

.hero-title span,
.hero-title strong {
  line-height: 1.04;
  overflow: visible;
}

.hero-title strong {
  display: inline-block;
  padding-bottom: .14em;
  margin-bottom: -.06em;
}

@media (max-width: 560px) {
  .hero-title {
    padding-bottom: .12em;
  }

  .hero-title span,
  .hero-title strong {
    line-height: 1.06;
  }

  .hero-title strong {
    padding-bottom: .18em;
  }
}
/* =========================================================
   Middle showcase upgrade:
   App = Wellness Storybook Deck
   Dashboard = RH Intelligence Glass Cockpit
========================================================= */

/* Bigger premium showcase section */
.showcase-section {
  overflow: hidden;
}

.storybook-showcase-card,
.cockpit-showcase-card {
  position: relative;
  overflow: hidden;
}

.storybook-showcase-card::before,
.cockpit-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .8;
  background:
    radial-gradient(circle at 18% 12%, rgba(243,191,68,.16), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(111,149,95,.13), transparent 32%);
}

/* =========================
   APP: Wellness Storybook
========================= */

.wellness-storybook {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  perspective: 1400px;
  isolation: isolate;
  margin: 8px 0 24px;
}

.storybook-light {
  position: absolute;
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(247,220,134,.34), transparent 54%),
    radial-gradient(circle, rgba(111,149,95,.18), transparent 72%);
  filter: blur(8px);
  animation: storybookGlow 7s ease-in-out infinite alternate;
  z-index: -2;
}

.storybook-book {
  position: relative;
  width: min(500px, 94%);
  min-height: 625px;
  border-radius: 38px;
  padding: 26px 24px 24px 38px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.58), rgba(255,248,226,.86)),
    radial-gradient(circle at 12% 20%, rgba(243,191,68,.22), transparent 32%);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow:
    0 34px 90px rgba(47,73,43,.18),
    inset 0 0 0 1px rgba(98,119,72,.08);
  transform: rotateX(3deg) rotateY(-6deg);
  transform-style: preserve-3d;
  animation: storybookFloat 7s ease-in-out infinite;
}

.storybook-book::before,
.storybook-book::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.storybook-book::before {
  inset: 12px -8px -12px 20px;
  background: rgba(219,202,154,.28);
  border: 1px solid rgba(122,105,70,.08);
  transform: translateZ(-28px) rotateY(3deg);
  z-index: -1;
}

.storybook-book::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(61,76,43,.10), transparent 13%, transparent 86%, rgba(255,255,255,.24)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.65), transparent 18%);
  mix-blend-mode: soft-light;
}

.storybook-spine {
  position: absolute;
  left: 16px;
  top: 24px;
  bottom: 24px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-700), var(--gold), var(--green-600));
  box-shadow: 0 0 0 7px rgba(255,255,255,.35);
  opacity: .85;
}

.storybook-pages {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 72%;
  height: 14px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(0deg, rgba(103,88,58,.12) 0 1px, transparent 1px 3px),
    rgba(255,252,239,.78);
}

.storybook-page {
  position: relative;
  height: 100%;
  min-height: 575px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 15px;
  border-radius: 30px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,253,242,.88), rgba(252,242,215,.72)),
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.86), transparent 22%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  overflow: hidden;
}

.storybook-page-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--green-900);
}

.storybook-page-top span {
  font-weight: 950;
  letter-spacing: -.03em;
}

.storybook-page-top small {
  color: var(--muted);
  font-weight: 850;
  font-size: .72rem;
}

.storybook-phone-frame {
  position: relative;
  width: min(255px, 74%);
  aspect-ratio: 9 / 18.4;
  border-radius: 38px;
  padding: 9px;
  border: 6px solid rgba(255,255,255,.86);
  background: linear-gradient(180deg, #ffffff, #fbf0d5);
  box-shadow:
    0 24px 70px rgba(45,68,39,.22),
    inset 0 0 0 1px rgba(85,111,69,.12);
  transform: translateZ(45px);
}

.storybook-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream);
}

.storybook-screen .showcase-img {
  transform-origin: left center;
  transform: rotateY(-18deg) translateX(24px) scale(.98);
  opacity: 0;
  filter: blur(3px) saturate(.95);
}

.storybook-screen .showcase-img.is-active {
  opacity: 1;
  filter: blur(0) saturate(1.02);
  animation: storyPageTurn .72s cubic-bezier(.18, .8, .22, 1) both;
}

.storybook-note {
  width: 100%;
  border-radius: 22px;
  padding: 13px 15px;
  text-align: center;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.72);
}

.storybook-note strong {
  display: block;
  color: var(--green-900);
  font-weight: 950;
}

.storybook-note span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
  font-size: .82rem;
}

.storybook-leaf {
  position: absolute;
  width: 54px;
  height: 22px;
  border-radius: 999px 0 999px 0;
  background: linear-gradient(135deg, var(--green-600), var(--gold-2));
  opacity: .6;
  z-index: 3;
}

.storybook-leaf.leaf-one {
  left: 7%;
  top: 18%;
  transform: rotate(-26deg);
  animation: smallLeafFloat 5.2s ease-in-out infinite;
}

.storybook-leaf.leaf-two {
  right: 8%;
  bottom: 18%;
  transform: rotate(145deg);
  animation: smallLeafFloat 6s ease-in-out infinite reverse;
}

/* =========================
   DASHBOARD: RH Glass Cockpit
========================= */

.rh-glass-cockpit {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  perspective: 1400px;
  isolation: isolate;
  margin: 18px 0 26px;
}

.cockpit-aura {
  position: absolute;
  width: min(720px, 98%);
  height: min(500px, 72vw);
  border-radius: 48px;
  background:
    radial-gradient(circle at 42% 45%, rgba(243,191,68,.18), transparent 44%),
    radial-gradient(circle at 72% 38%, rgba(128,174,202,.16), transparent 36%),
    radial-gradient(circle at 20% 78%, rgba(111,149,95,.20), transparent 40%);
  filter: blur(10px);
  animation: cockpitAura 7s ease-in-out infinite alternate;
  z-index: -2;
}

.cockpit-grid-lines {
  position: absolute;
  inset: 8%;
  border-radius: 40px;
  opacity: .34;
  background-image:
    linear-gradient(rgba(79,118,80,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,118,80,.14) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
  animation: cockpitGridMove 14s linear infinite;
  z-index: -1;
}

.cockpit-console {
  position: relative;
  width: min(720px, 96%);
  border-radius: 32px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(242,249,232,.48)),
    linear-gradient(135deg, rgba(36,66,45,.06), rgba(243,191,68,.09));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow:
    0 34px 100px rgba(30,55,35,.22),
    inset 0 0 0 1px rgba(255,255,255,.46);
  backdrop-filter: blur(22px);
  transform: rotateX(4deg) rotateY(6deg);
  transform-style: preserve-3d;
  animation: cockpitFloat 7.4s ease-in-out infinite;
}

.cockpit-console::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.72), transparent 28%, rgba(243,191,68,.18), transparent 72%, rgba(111,149,95,.18));
  pointer-events: none;
  mix-blend-mode: screen;
}

.cockpit-topbar {
  position: relative;
  z-index: 2;
  height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--green-900);
}

.cockpit-topbar div {
  display: flex;
  gap: 7px;
}

.cockpit-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(111,149,95,.46);
}

.cockpit-topbar span:nth-child(2) {
  background: rgba(243,191,68,.75);
}

.cockpit-topbar span:nth-child(3) {
  background: rgba(128,174,202,.70);
}

.cockpit-topbar b {
  font-weight: 950;
  letter-spacing: -.03em;
}

.cockpit-topbar em {
  justify-self: end;
  font-style: normal;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
}

.cockpit-screen {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.cockpit-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.36), transparent 24%, transparent 70%, rgba(255,255,255,.22)),
    radial-gradient(circle at 72% 12%, rgba(243,191,68,.12), transparent 22%);
  pointer-events: none;
}

.cockpit-screen .showcase-img {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  filter: blur(4px) saturate(.96);
}

.cockpit-screen .showcase-img.is-active {
  opacity: 1;
  filter: blur(0) saturate(1.03);
  animation: cockpitScreenIn .76s cubic-bezier(.16, 1, .3, 1) both;
}

.cockpit-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.cockpit-bottom-metrics span {
  border-radius: 15px;
  padding: 10px;
  color: var(--green-900);
  font-weight: 900;
  font-size: .78rem;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.68);
}

.cockpit-bottom-metrics b {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--gold));
}

.cockpit-floating-kpi {
  position: absolute;
  z-index: 4;
  min-width: 118px;
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(255,253,241,.76);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 18px 46px rgba(38,62,39,.16);
  backdrop-filter: blur(18px);
  animation: cockpitKpiFloat 5.5s ease-in-out infinite;
}

.cockpit-floating-kpi small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: .68rem;
}

.cockpit-floating-kpi strong {
  display: block;
  color: var(--green-900);
  font-size: 1.16rem;
  margin-top: 2px;
}

.cockpit-kpi-a {
  left: 0;
  top: 18%;
}

.cockpit-kpi-b {
  right: 0;
  top: 10%;
  animation-delay: -1.4s;
}

.cockpit-kpi-c {
  right: 9%;
  bottom: 12%;
  animation-delay: -2.5s;
}

/* Tabs upgrade: premium, mobile-friendly */
.showcase-section .showcase-tabs {
  position: relative;
  z-index: 6;
}

.showcase-section .showcase-tabs button {
  box-shadow: 0 12px 28px rgba(45,70,43,.10);
}

.showcase-section .showcase-tabs button.is-active {
  transform: translateY(-2px);
}

/* Animations */
@keyframes storybookGlow {
  to {
    transform: scale(1.05);
    filter: blur(12px) saturate(1.08);
  }
}

@keyframes storybookFloat {
  0%, 100% {
    transform: rotateX(3deg) rotateY(-6deg) translateY(0);
  }
  50% {
    transform: rotateX(2deg) rotateY(-3deg) translateY(-12px);
  }
}

@keyframes storyPageTurn {
  0% {
    opacity: 0;
    transform: rotateY(-24deg) translateX(34px) scale(.98);
    filter: blur(4px) saturate(.94);
  }
  55% {
    opacity: 1;
    transform: rotateY(4deg) translateX(0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: rotateY(0) translateX(0) scale(1);
    filter: blur(0) saturate(1.02);
  }
}

@keyframes smallLeafFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -13px;
  }
}

@keyframes cockpitAura {
  to {
    transform: scale(1.05);
    filter: blur(14px) saturate(1.12);
  }
}

@keyframes cockpitGridMove {
  to {
    background-position: 34px 34px;
  }
}

@keyframes cockpitFloat {
  0%, 100% {
    transform: rotateX(4deg) rotateY(6deg) translateY(0);
  }
  50% {
    transform: rotateX(2deg) rotateY(3deg) translateY(-12px);
  }
}

@keyframes cockpitKpiFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes cockpitScreenIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.985);
    filter: blur(5px) saturate(.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1.03);
  }
}

/* Responsive: tablet */
@media (max-width: 1060px) {
  .wellness-storybook {
    min-height: 640px;
  }

  .storybook-book {
    transform: rotateX(2deg) rotateY(0deg);
  }

  .rh-glass-cockpit {
    min-height: 520px;
  }

  .cockpit-console {
    transform: rotateX(2deg) rotateY(0deg);
  }

  .cockpit-kpi-a {
    left: 4%;
  }

  .cockpit-kpi-b {
    right: 4%;
  }
}

/* Responsive: mobile */
@media (max-width: 560px) {
  .product-showcase-card {
    padding-inline: 16px;
  }

  .wellness-storybook {
    min-height: 585px;
    margin-top: 0;
    margin-bottom: 18px;
  }

  .storybook-book {
    width: 100%;
    min-height: 555px;
    padding: 18px 14px 18px 24px;
    border-radius: 30px;
    transform: none;
    animation: none;
  }

  .storybook-spine {
    left: 10px;
    top: 18px;
    bottom: 18px;
    width: 8px;
  }

  .storybook-page {
    min-height: 510px;
    border-radius: 24px;
    padding: 13px;
    gap: 12px;
  }

  .storybook-page-top {
    display: block;
    text-align: center;
  }

  .storybook-page-top small {
    display: block;
    margin-top: 3px;
  }

  .storybook-phone-frame {
    width: min(230px, 75vw);
    border-radius: 32px;
    border-width: 5px;
    padding: 8px;
  }

  .storybook-screen {
    border-radius: 24px;
  }

  .storybook-note {
    padding: 11px 12px;
  }

  .storybook-note span {
    display: none;
  }

  .storybook-leaf {
    display: none;
  }

  .rh-glass-cockpit {
    min-height: 430px;
    margin: 4px 0 18px;
  }

  .cockpit-console {
    width: 100%;
    border-radius: 26px;
    padding: 10px;
    transform: none;
    animation: none;
  }

  .cockpit-topbar {
    height: 34px;
    grid-template-columns: auto 1fr;
  }

  .cockpit-topbar em {
    display: none;
  }

  .cockpit-topbar b {
    font-size: .78rem;
  }

  .cockpit-screen {
    border-radius: 18px;
  }

  .cockpit-bottom-metrics {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cockpit-bottom-metrics span {
    padding: 8px 10px;
    font-size: .74rem;
  }

  .cockpit-floating-kpi {
    min-width: auto;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .cockpit-floating-kpi small {
    font-size: .58rem;
  }

  .cockpit-floating-kpi strong {
    font-size: .88rem;
  }

  .cockpit-kpi-a {
    left: 2%;
    top: 12%;
  }

  .cockpit-kpi-b {
    right: 2%;
    top: 8%;
  }

  .cockpit-kpi-c {
    right: 5%;
    bottom: 5%;
  }

  /* Mobile tabs: horizontal pills instead of huge vertical stack */
  .showcase-section .showcase-tabs,
  .showcase-section .app-showcase-tabs,
  .showcase-section .dashboard-rps-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-section .showcase-tabs::-webkit-scrollbar,
  .showcase-section .app-showcase-tabs::-webkit-scrollbar,
  .showcase-section .dashboard-rps-tabs::-webkit-scrollbar {
    display: none;
  }

  .showcase-section .showcase-tabs button,
  .showcase-section .app-showcase-tabs button,
  .showcase-section .dashboard-rps-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    padding: 9px 13px;
    font-size: .78rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}

@media (max-width: 390px) {
  .wellness-storybook {
    min-height: 550px;
  }

  .storybook-book {
    min-height: 520px;
  }

  .storybook-page {
    min-height: 480px;
  }

  .storybook-phone-frame {
    width: min(205px, 72vw);
  }

  .rh-glass-cockpit {
    min-height: 405px;
  }
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  .storybook-book,
  .cockpit-console,
  .storybook-light,
  .cockpit-aura,
  .cockpit-grid-lines,
  .cockpit-floating-kpi,
  .storybook-leaf {
    animation: none !important;
  }

  .storybook-screen .showcase-img.is-active,
  .cockpit-screen .showcase-img.is-active {
    animation: none !important;
  }
}
/* =========================================================
   Dual experience promo thumbnails
   Replaces old basic employee-ui / director-ui illustrations
========================================================= */

.experience-illustration.promo-illustration {
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 252, 238, .72);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 20px 52px rgba(44, 70, 42, .16);
}

.promo-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform .45s ease, filter .45s ease;
}

.experience:hover .promo-illustration img {
  transform: scale(1.06);
  filter: saturate(1.06) brightness(1.02);
}

.promo-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(36,66,45,.58)),
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.34), transparent 26%);
  pointer-events: none;
  z-index: 1;
}

.promo-illustration::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.52);
  pointer-events: none;
  z-index: 2;
}

.promo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 13px 15px;
  border-radius: 20px;
  background: rgba(255, 252, 238, .82);
  border: 1px solid rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(29, 48, 31, .16);
}

.promo-caption strong {
  display: block;
  color: var(--green-900);
  font-weight: 950;
  letter-spacing: -.03em;
}

.promo-caption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .experience-illustration.promo-illustration {
    border-radius: 24px;
  }

  .promo-illustration::after {
    inset: 9px;
    border-radius: 18px;
  }

  .promo-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 11px 12px;
    border-radius: 17px;
  }

  .promo-caption span {
    font-size: .76rem;
  }
}
/* =========================================================
   Bottom app download + main contact CTA
========================================================= */

.store-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  justify-items: stretch;
}

.store-actions .store-buttons {
  transform: translateY(-8px);
}

.contact-main-btn {
  width: 100%;
  min-height: 68px;
  border-radius: 24px;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  box-shadow: 0 22px 58px rgba(67, 105, 61, .30);
}

.contact-main-btn::before {
  content: "✦";
  font-size: 1.05rem;
}

@media (min-width: 821px) {
  .store-actions {
    min-width: 460px;
  }

  .store-actions .store-buttons {
    justify-content: center;
  }

  .contact-main-btn {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .store-actions {
    width: 100%;
  }

  .store-actions .store-buttons {
    transform: translateY(-4px);
  }

  .contact-main-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .store-actions {
    gap: 14px;
  }

  .contact-main-btn {
    min-height: 62px;
    font-size: 1.08rem;
    border-radius: 22px;
  }
}
/* =========================================================
   iOS / iPadOS / mobile stability patch
   Fixes: blank images, low opacity, cropped frames, Safari 3D bugs
========================================================= */

/* Make all important image frames deterministic */
.ecosystem-phone-screen,
.ecosystem-dashboard-screen,
.storybook-screen,
.cockpit-screen,
.promo-illustration {
  overflow: hidden;
  background: var(--cream);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Images should never overflow their frame */
.ecosystem-dashboard-screen img,
.ecosystem-phone-screen img,
.storybook-screen .showcase-img,
.cockpit-screen .showcase-img,
.portrait-screen .showcase-img,
.landscape-screen .showcase-img,
.promo-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Dashboard hero image should always be visible */
.ecosystem-dashboard-screen img {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Safer promo thumbnails */
.promo-illustration img {
  object-fit: cover;
}

/* Disable risky reveal opacity on touch/mobile devices */
@media (hover: none), (max-width: 1060px) {
  .js .reveal,
  .js .reveal-pro,
  .js .glass-card,
  .js .module-grid article,
  .js .timeline div,
  .js .faq details {
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow .25s ease, border-color .25s ease !important;
  }

  .hero-ecosystem,
  .hero-copy,
  .product-showcase-card,
  .store-download-card,
  .experience {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* iOS Safari specific stability */
@supports (-webkit-touch-callout: none) {
  /* Avoid Safari 3D rendering bugs */
  .ecosystem-phone,
  .ecosystem-dashboard,
  .storybook-book,
  .cockpit-console {
    animation: none !important;
    transform: none !important;
  }

  .ecosystem-orbit,
  .ecosystem-bridge span,
  .ecosystem-kpi,
  .storybook-light,
  .storybook-leaf,
  .cockpit-aura,
  .cockpit-grid-lines,
  .cockpit-floating-kpi {
    animation: none !important;
  }

  /* Top cinematic phone: show first image reliably instead of animation cycle */
  .ecosystem-phone-screen img {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
  }

  .ecosystem-phone-screen img:first-child,
  .ecosystem-phone-screen img.is-active {
    opacity: 1 !important;
    z-index: 2;
  }

  /* Showcase images: keep only active image visible */
  .storybook-screen .showcase-img,
  .cockpit-screen .showcase-img {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 0 !important;
  }

  .storybook-screen .showcase-img.is-active,
  .cockpit-screen .showcase-img.is-active {
    opacity: 1 !important;
    z-index: 2;
  }

  .storybook-note,
  .ecosystem-caption,
  .cockpit-bottom-metrics,
  .ecosystem-dashboard-glass,
  .ecosystem-kpi,
  .cockpit-floating-kpi {
    opacity: 1 !important;
  }
}

/* Mobile/iPad layout safety for hero cinematic preview */
@media (max-width: 820px) {
  .hero-ecosystem {
    opacity: 1 !important;
    overflow: visible;
  }

  .ecosystem-phone-screen img {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
  }

  .ecosystem-phone-screen img:first-child,
  .ecosystem-phone-screen img.is-active {
    opacity: 1 !important;
    z-index: 2;
  }

  .ecosystem-dashboard-screen img {
    object-fit: contain !important;
  }
}

/* Storybook + cockpit: prevent faded active screen */
.showcase-img.is-active {
  opacity: 1 !important;
}

.storybook-screen .showcase-img.is-active,
.cockpit-screen .showcase-img.is-active {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Prevent inactive slides from showing over the active one */
.storybook-screen .showcase-img:not(.is-active),
.cockpit-screen .showcase-img:not(.is-active) {
  opacity: 0 !important;
  z-index: 1;
}

.storybook-screen .showcase-img.is-active,
.cockpit-screen .showcase-img.is-active {
  z-index: 2;
}

/* iPad portrait/landscape frame fitting */
@media (min-width: 561px) and (max-width: 1060px) {
  .storybook-phone-frame {
    width: min(260px, 58vw);
  }

  .cockpit-console {
    width: min(760px, 96%);
  }

  .rh-glass-cockpit {
    min-height: 500px;
  }

  .wellness-storybook {
    min-height: 620px;
  }
}
/* =========================================================
   Hero cinematic JS slideshow
   Stable on iPhone/iPad, keeps images changing
========================================================= */

.hero-rotator {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-rotator .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0 !important;
  visibility: hidden;
  transform: scale(.985);
  filter: none !important;
  transition:
    opacity .75s ease,
    transform 1.05s ease,
    visibility .75s ease;
  z-index: 1;
  animation: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-rotator .hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* Keep image visible if JS is blocked */
.hero-rotator .hero-slide:first-child {
  opacity: 1;
  visibility: visible;
}

/* But when JS is working, inactive first image must be hidden too */
.js .hero-rotator .hero-slide:first-child:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Override previous iOS patch that forced first image forever */
@supports (-webkit-touch-callout: none) {
  .ecosystem-phone-screen img,
  .ecosystem-dashboard-screen img {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-rotator .hero-slide {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-rotator .hero-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-rotator .hero-slide:first-child:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}
/* =========================================================
   Final fix: top cinematic dashboard rotator frame
   Keeps dashboard changing without collapsing or breaking app preview
========================================================= */

/* Restore a real frame height for the dashboard slideshow */
.ecosystem-dashboard .ecosystem-dashboard-screen.hero-rotator {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.70);
  z-index: 1;
}

/* Override the older "dashboard image always visible" rule only for the rotator */
.ecosystem-dashboard .ecosystem-dashboard-screen.hero-rotator .hero-slide {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: none !important;
  filter: none !important;
  z-index: 1;
  background: rgba(255,255,255,.72);
}

/* Only active dashboard image is visible */
.ecosystem-dashboard .ecosystem-dashboard-screen.hero-rotator .hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

/* Prevent first dashboard image from staying visible behind active slides */
.js .ecosystem-dashboard .ecosystem-dashboard-screen.hero-rotator .hero-slide:first-child:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Keep KPI glass cards inside the dashboard frame, but not covering the whole screen */
.ecosystem-dashboard .ecosystem-dashboard-glass {
  z-index: 4;
  pointer-events: none;
}

/* PC/tablet safe frame */
@media (min-width: 821px) {
  .ecosystem-dashboard .ecosystem-dashboard-screen.hero-rotator {
    aspect-ratio: 16 / 10;
  }
}

/* Mobile safe frame */
@media (max-width: 560px) {
  .ecosystem-dashboard .ecosystem-dashboard-screen.hero-rotator {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .ecosystem-dashboard .ecosystem-dashboard-glass {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .ecosystem-dashboard .ecosystem-dashboard-glass div {
    padding: 6px 5px;
    border-radius: 12px;
  }

  .ecosystem-dashboard .ecosystem-dashboard-glass small {
    font-size: .56rem;
  }

  .ecosystem-dashboard .ecosystem-dashboard-glass b {
    font-size: .78rem;
  }
}
/* =========================================================
   Final iPhone fix: keep top dashboard visible and centered
   Does not change the app phone preview
========================================================= */

/* General top dashboard stability */
.hero-ecosystem .ecosystem-dashboard {
  max-width: 100%;
  box-sizing: border-box;
}

.hero-ecosystem .ecosystem-dashboard-screen.hero-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.hero-ecosystem .ecosystem-dashboard-screen.hero-rotator .hero-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: none !important;
  filter: none !important;
  z-index: 1;
}

.hero-ecosystem .ecosystem-dashboard-screen.hero-rotator .hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

/* iPhone / small mobile: do NOT rely on transform centering */
@media (max-width: 560px) {
  .hero-ecosystem {
    overflow: hidden !important;
  }

  .hero-ecosystem .ecosystem-dashboard {
    left: 4vw !important;
    right: auto !important;
    top: 29% !important;
    width: 92vw !important;
    max-width: 92vw !important;
    transform: none !important;
    opacity: .98 !important;
    z-index: 2 !important;
  }

  .hero-ecosystem .ecosystem-dashboard-screen.hero-rotator {
    aspect-ratio: 16 / 9.7;
    border-radius: 15px;
  }

  .hero-ecosystem .ecosystem-dashboard-screen.hero-rotator .hero-slide {
    object-fit: contain !important;
    object-position: center !important;
  }

  .hero-ecosystem .ecosystem-phone {
    z-index: 5 !important;
  }

  .hero-ecosystem .ecosystem-dashboard-glass {
    left: 9px !important;
    right: 9px !important;
    bottom: 8px !important;
    gap: 5px !important;
    z-index: 6 !important;
  }

  .hero-ecosystem .ecosystem-dashboard-glass div {
    padding: 5px 4px !important;
    border-radius: 10px !important;
  }

  .hero-ecosystem .ecosystem-dashboard-glass small {
    font-size: .52rem !important;
  }

  .hero-ecosystem .ecosystem-dashboard-glass b {
    font-size: .72rem !important;
  }
}

/* Very small iPhone screens */
@media (max-width: 390px) {
  .hero-ecosystem .ecosystem-dashboard {
    left: 3vw !important;
    width: 94vw !important;
    max-width: 94vw !important;
    top: 30% !important;
  }
}

/* iOS Safari override: previous patch disabled transforms, so we explicitly center with left/right */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 560px) {
    .hero-ecosystem .ecosystem-dashboard {
      left: 4vw !important;
      right: auto !important;
      transform: none !important;
    }

    .hero-ecosystem .ecosystem-dashboard-screen.hero-rotator .hero-slide {
      opacity: 0 !important;
      visibility: hidden !important;
      object-fit: contain !important;
      transform: none !important;
    }

    .hero-ecosystem .ecosystem-dashboard-screen.hero-rotator .hero-slide.is-active {
      opacity: 1 !important;
      visibility: visible !important;
    }
  }
}

/* =========================================================
   Middle showcase image fitting
   Keeps full image inside frame, width + height
========================================================= */

.storybook-screen,
.cockpit-screen,
.portrait-screen,
.landscape-screen {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}

.storybook-screen,
.portrait-screen {
  aspect-ratio: 9 / 18.4;
}

.cockpit-screen,
.landscape-screen {
  aspect-ratio: 16 / 10;
}

.storybook-screen .showcase-img,
.cockpit-screen .showcase-img,
.portrait-screen .showcase-img,
.landscape-screen .showcase-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: none !important;
  filter: none !important;
  z-index: 1;
}

.storybook-screen .showcase-img.is-active,
.cockpit-screen .showcase-img.is-active,
.portrait-screen .showcase-img.is-active,
.landscape-screen .showcase-img.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}
/* =========================================================
   Sticky contact banner: button only, centered and wider
========================================================= */

.booking-banner-contact-only {
  justify-content: center !important;
  padding: 12px !important;
}

.booking-banner-contact-only .booking-banner-main-btn {
  width: min(520px, 100%);
  min-height: 58px;
  font-size: 1.08rem;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .booking-banner-contact-only {
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
  }

  .booking-banner-contact-only .booking-banner-main-btn {
    width: 100%;
    min-height: 54px;
    font-size: 1rem;
  }
}

/* =========================================================
   Bottom availability section: informative, no store links
========================================================= */

.store-info-actions {
  gap: 20px;
}

.platform-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.platform-info-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 14px 34px rgba(44, 70, 42, .10);
}

.platform-info-card .store-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--green-700), var(--gold));
  box-shadow: 0 12px 26px rgba(67, 105, 61, .20);
}

.platform-info-card small {
  display: block;
  color: var(--muted);
  font-weight: 850;
  font-size: .76rem;
}

.platform-info-card strong {
  display: block;
  margin-top: 3px;
  color: var(--green-900);
  font-weight: 950;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.platform-wide {
  grid-column: span 2;
}

.store-info-actions .contact-main-btn {
  margin-top: 2px;
}

@media (max-width: 560px) {
  .platform-info-grid {
    grid-template-columns: 1fr;
  }

  .platform-wide {
    grid-column: auto;
  }

  .platform-info-card {
    min-height: 70px;
    border-radius: 20px;
    padding: 13px 14px;
  }

  .platform-info-card .store-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}
/* =========================================================
   Mobile fix: platform cards text alignment
   Google Play / App Store / Windows / Dashboard
========================================================= */

.platform-info-card {
  display: grid !important;
  grid-template-columns: 46px 1fr;
  align-items: center;
  justify-content: start;
  text-align: left !important;
  column-gap: 16px;
}

.platform-info-card .store-icon {
  grid-column: 1;
  justify-self: center;
}

.platform-info-card > div {
  grid-column: 2;
  min-width: 0;
  text-align: left !important;
  justify-self: start;
}

.platform-info-card small,
.platform-info-card strong {
  text-align: left !important;
}

.platform-info-card strong {
  width: 100%;
}

/* Mobile: keep all platform cards perfectly aligned */
@media (max-width: 560px) {
  .platform-info-card {
    grid-template-columns: 44px 1fr;
    column-gap: 15px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .platform-info-card .store-icon {
    width: 42px;
    height: 42px;
    flex-basis: auto;
  }

  .platform-info-card > div {
    display: block;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .platform-info-card small {
    font-size: .78rem;
    line-height: 1.2;
  }

  .platform-info-card strong {
    font-size: 1.05rem;
    line-height: 1.16;
  }
}

/* Very small iPhone screens */
@media (max-width: 390px) {
  .platform-info-card {
    grid-template-columns: 40px 1fr;
    column-gap: 13px;
    padding-left: 16px !important;
    padding-right: 14px !important;
  }

  .platform-info-card .store-icon {
    width: 39px;
    height: 39px;
  }

  .platform-info-card strong {
    font-size: 1rem;
  }
}
/* =========================================================
   iPad fix: center sticky Contactez-nous button
   Applies between mobile and desktop widths
========================================================= */

@media (min-width: 561px) and (max-width: 820px) {
  .booking-banner.booking-banner-contact-only {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px !important;
    gap: 0 !important;
  }

  .booking-banner-contact-only .booking-banner-main-btn {
    width: min(560px, calc(100% - 24px)) !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex: 0 1 560px !important;
  }
}

/* =========================================================
   Google Play / App Store clickable platform buttons
========================================================= */

.platform-info-card.app-link-card {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-color: rgba(111,149,95,.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,248,226,.64)),
    radial-gradient(circle at 12% 20%, rgba(243,191,68,.18), transparent 34%);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.platform-info-card.app-link-card::after {
  content: "↗";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  font-size: .86rem;
  background: linear-gradient(135deg, var(--green-700), var(--gold));
  box-shadow: 0 10px 22px rgba(67,105,61,.18);
  opacity: .92;
}

.platform-info-card.app-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111,149,95,.42);
  box-shadow: 0 20px 46px rgba(44,70,42,.16);
}

.platform-info-card.app-link-card:active {
  transform: translateY(-1px) scale(.99);
}

.platform-info-card.app-link-card > div {
  padding-right: 34px;
}

/* iPhone/iPad tap safety */
.platform-info-card.app-link-card,
.platform-info-card.app-link-card * {
  -webkit-tap-highlight-color: transparent;
}

.platform-info-card.app-link-card .store-icon,
.platform-info-card.app-link-card div,
.platform-info-card.app-link-card small,
.platform-info-card.app-link-card strong {
  pointer-events: none;
}

@media (max-width: 560px) {
  .platform-info-card.app-link-card::after {
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: .78rem;
  }

  .platform-info-card.app-link-card > div {
    padding-right: 30px;
  }
}