/* RepLyfe — shared product and marketing styles */
:root {
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", var(--font-sans);
  --page: #ffffff;
  --page-soft: #f7f7f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #181818;
  --ink-soft: #666666;
  --ink-faint: #737373;
  --border: #e5e5e5;
  --border-strong: #cccccc;
  --orange: #c64f12;
  --on-accent: #ffffff;
  --orange-hover: #d95a17;
  --orange-soft: #fff0e5;
  --orange-ink: #a33d0b;
  --shadow-sm: 0 8px 24px rgba(55, 37, 24, .07);
  --shadow-lg: 0 30px 80px rgba(55, 37, 24, .13);
  color-scheme: light;
  font-family: var(--font-sans);
}

html.dark {
  --page: #000000;
  --page-soft: #050505;
  --surface: #0a0a0a;
  --surface-raised: #101010;
  --ink: #f7f7f7;
  --ink-soft: #aaaaaa;
  --ink-faint: #777777;
  --border: #242424;
  --border-strong: #3a3a3a;
  --orange: #ff8138;
  --on-accent: #101010;
  --orange-hover: #ff965e;
  --orange-soft: #151515;
  --orange-ink: #ffb487;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .2);
  --shadow-lg: 0 35px 90px rgba(0, 0, 0, .38);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-sans); background: var(--page); }
body { min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); }
html.dark body { background: #000 !important; color: #f7f7f7; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.font-display { font-family: var(--font-display); }

/* Marketing site */
.site-shell { overflow: hidden; background: var(--page); color: var(--ink); }
.section-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-space { padding-block: 112px; }
.announcement-bar {
  display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 20px; background: #201b18; color: #f8f2ed; font-size: 12px; font-weight: 600;
  letter-spacing: .01em;
}
.dark .announcement-bar { background: #000; border-bottom: 1px solid #202020; }
.announcement-bar a { margin-left: 5px; color: #ffab75; }
.announcement-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(239, 108, 37, .16); }
.dark .announcement-dot, .dark .brand-mark, .dark .button-orange { box-shadow: none; }
.site-header {
  position: sticky; z-index: 40; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--page) 91%, transparent); backdrop-filter: blur(18px);
}
.site-nav { display: flex; width: min(1240px, calc(100% - 48px)); min-height: 78px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark {
  display: block; width: 33px; height: 33px; flex: 0 0 auto; object-fit: contain;
}
.logo-period { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 34px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.nav-links a, .nav-login { transition: color .18s ease; }
.nav-links a:hover, .nav-login:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 17px; }
.nav-login { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.theme-switch {
  display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.theme-switch:hover { transform: translateY(-1px); border-color: var(--orange); background: var(--orange-soft); }
.theme-icon { display: block; font-size: 16px; line-height: 1; }
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent;
  border-radius: 8px; padding: 0 21px; font-size: 14px; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; gap: 12px; padding-inline: 16px; font-size: 12px; }
.button-dark { background: var(--ink); color: var(--page); }
.dark .button-dark { background: #f6f1ec; color: #181512; }
.button-dark:hover { background: #37302b; }
.dark .button-dark:hover { background: #fff; }
.button-orange { background: var(--orange); color: #fff; box-shadow: 0 14px 28px rgba(239, 108, 37, .2); }
.button-orange:hover { background: var(--orange-hover); }
.button-outline { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.button-outline:hover { border-color: var(--orange); color: var(--orange); }

.hero-section {
  position: relative; border-bottom: 1px solid var(--border);
  background: var(--page);
}
.dark .hero-section { background: #000; }
.hero-inner { display: grid; width: min(1280px, calc(100% - 48px)); margin-inline: auto; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 64px; padding-block: 84px 92px; }
.hero-copy { max-width: 540px; }
.eyebrow, .section-kicker { margin: 0; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow-line { width: 29px; height: 2px; background: var(--orange); }
.hero-copy h1 { margin: 23px 0 0; font-family: var(--font-display); font-size: clamp(42px, 4.25vw, 65px); font-weight: 700; line-height: 1.06; letter-spacing: -.055em; }
.hero-copy h1 em { display: block; color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
.hero-lead { max-width: 515px; margin: 26px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.76; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 13px 22px; margin-top: 28px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.proof-check { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 10px; font-style: normal; }

.hero-demo { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 18px; padding: 17px; background: var(--surface-raised); box-shadow: var(--shadow-lg); }
.hero-demo::before { position: absolute; z-index: -1; right: -34px; bottom: -31px; width: 155px; height: 155px; border-radius: 28px; background-image: radial-gradient(var(--orange) 1.1px, transparent 1.1px); background-size: 12px 12px; content: ""; opacity: .28; }
.dark .hero-demo::before { display: none; }
.demo-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 5px 15px; }
.demo-kicker { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.demo-heading h2 { margin: 3px 0 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
.demo-live { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 99px; padding: 6px 9px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.demo-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #28a564; box-shadow: 0 0 0 3px rgba(40, 165, 100, .12); }
.instagram-frame { display: grid; min-height: 438px; overflow: hidden; grid-template-columns: 51.5% 48.5%; border: 1px solid #dedede; border-radius: 10px; background: #fff; color: #111; }
.instagram-photo { position: relative; min-height: 438px; overflow: hidden; background: #eee6dc; }
.instagram-photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.photo-label { position: absolute; left: 14px; bottom: 14px; border-radius: 4px; padding: 6px 8px; background: rgba(25, 20, 16, .8); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .16em; backdrop-filter: blur(7px); }
.instagram-panel { display: flex; min-width: 0; flex-direction: column; background: #fff; }
.ig-post-header { display: flex; min-height: 60px; align-items: center; gap: 10px; border-bottom: 1px solid #efefef; padding: 10px 13px; }
.ig-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ig-avatar-shop { border: 2px solid #fff; background: linear-gradient(135deg, #d95722, #6d321b); box-shadow: 0 0 0 2px #e56b31; }
.ig-avatar-customer { background: linear-gradient(135deg, #b9c7d8, #5a6d84); }
.ig-account { display: grid; gap: 1px; font-size: 10px; }
.ig-account strong { font-size: 11px; }
.ig-account span { color: #737373; font-size: 8px; }
.ig-more { margin-left: auto; font-size: 17px; font-weight: 800; letter-spacing: 2px; }
.ig-comments { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 17px; overflow: hidden; padding: 15px 13px; }
.ig-comment { display: flex; position: relative; align-items: flex-start; gap: 10px; font-size: 10px; line-height: 1.42; transition: opacity .25s ease, transform .25s ease; }
.ig-comment > div { min-width: 0; }
.ig-comment p { margin: 0; }
.ig-comment strong { margin-right: 3px; font-size: 10px; }
.ig-comment small { display: block; margin-top: 5px; color: #8e8e8e; font-size: 8px; font-weight: 600; }
.ig-customer { margin-top: 3px; }
.ig-reply { margin-left: 27px; padding-left: 16px; }
.ig-reply::before { position: absolute; top: 16px; left: -17px; width: 25px; height: 1px; background: #d7d7d7; content: ""; }
.ig-reply-link { font-weight: 700; }
.ig-heart-small { margin-left: auto; color: #333; font-size: 13px; }
.ig-post-footer { display: grid; gap: 5px; border-top: 1px solid #efefef; padding: 10px 13px; }
.ig-actions { display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 1; }
.ig-save { margin-left: auto; }
.ig-post-footer > strong { font-size: 9px; }
.ig-post-footer > small { color: #8e8e8e; font-size: 7px; letter-spacing: .06em; }
.ig-add-comment { display: flex; align-items: center; gap: 8px; border-top: 1px solid #efefef; padding: 10px 13px; color: #9c9c9c; font-size: 9px; }
.ig-add-comment > span:first-child { color: #111; font-size: 17px; }
.ig-add-comment strong { margin-left: auto; color: #75a7d1; font-size: 9px; }
.dark .instagram-frame { border-color: #3a3836; }
.dark .instagram-panel { background: #0f0f0f; color: #f5f5f5; }
.dark .ig-post-header, .dark .ig-post-footer, .dark .ig-add-comment { border-color: #292929; }
.dark .ig-account span, .dark .ig-comment small, .dark .ig-post-footer > small, .dark .ig-add-comment { color: #a8a8a8; }
.dark .ig-avatar-shop { border-color: #0f0f0f; }
.dark .ig-heart-small, .dark .ig-add-comment > span:first-child { color: #f4f4f4; }
.dark .ig-reply::before { background: #454545; }

.demo-flow { display: grid; grid-template-columns: minmax(145px, .68fr) 34px minmax(230px, 1.32fr); align-items: center; gap: 8px; margin-top: 13px; }
.demo-flow-status, .demo-dm-card { display: flex; min-width: 0; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 10px; }
.flow-icon, .dm-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--orange-soft); color: var(--orange); font-size: 13px; }
.demo-flow-status div, .demo-dm-card div { min-width: 0; }
.demo-flow-status strong, .demo-dm-card strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.demo-flow-status span:not(.flow-icon), .demo-dm-card p { display: block; overflow: hidden; margin: 3px 0 0; color: var(--ink-soft); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.flow-line { position: relative; height: 1px; background: var(--border-strong); }
.flow-line::after { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong); content: ""; transform: rotate(45deg); }
.dm-check { display: grid; width: 19px; height: 19px; flex: 0 0 auto; margin-left: auto; place-items: center; border-radius: 50%; background: #ddf6e7; color: #19864c; font-size: 10px; font-weight: 900; }
.dark .dm-check { background: #173524; color: #6ade9b; }
.demo-dm-card, .ig-reply { opacity: 1; transform: translateY(0); }
.demo-dm-pending, .demo-updating { opacity: .22; transform: translateY(4px); }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; padding: 0 3px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.demo-controls > div { display: flex; gap: 5px; }
.demo-chip { border: 1px solid var(--border); border-radius: 99px; background: var(--surface); padding: 5px 9px; color: var(--ink-soft); font-size: 9px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.demo-chip:hover, .demo-chip.is-active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }

.trust-strip { border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-strip .section-container { display: grid; min-height: 76px; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-strip span { position: relative; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-align: center; }
.trust-strip span + span::before { position: absolute; top: 50%; left: 0; width: 1px; height: 18px; background: var(--border); content: ""; transform: translateY(-50%); }
.section-intro { max-width: 700px; margin-inline: auto; text-align: center; }
.section-intro h2, .feature-heading h2, .final-cta h2 { margin: 13px 0 0; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.045em; }
.section-intro > p:last-child { max-width: 610px; margin: 19px auto 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 58px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.step-card { position: relative; min-height: 290px; padding: 34px; background: var(--surface); }
.step-number { color: var(--ink-faint); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.step-symbol { display: grid; width: 48px; height: 48px; margin-top: 42px; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 21px; }
.step-card h3, .feature-card h3, .plan-card h3 { margin: 20px 0 0; font-family: var(--font-display); font-size: 19px; letter-spacing: -.025em; }
.step-card p, .feature-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

.features-section { border-block: 1px solid var(--border); background: var(--page-soft); }
.feature-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; }
.feature-heading > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.feature-card { min-height: 230px; border: 1px solid var(--border); border-radius: 12px; padding: 28px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--orange) 60%, var(--border)); box-shadow: var(--shadow-sm); }
.feature-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; background: var(--orange-soft); color: var(--orange); font-size: 18px; font-weight: 800; }

.pricing-section { background: var(--page); }
.volume-box { max-width: 720px; margin: 44px auto 0; border: 1px solid var(--border); border-radius: 12px; padding: 22px 25px 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.volume-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.volume-top label { font-weight: 800; }
.volume-top strong { color: var(--orange); }
.volume-box input[type="range"] { width: 100%; margin-top: 20px; accent-color: var(--orange); }
.volume-ticks { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 9px; }
.volume-box > p { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; text-align: center; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; align-items: stretch; }
.plan-card { position: relative; display: flex; min-height: 480px; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; padding: 30px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.plan-card.active-plan { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 22px 55px rgba(239, 108, 37, .12); }
.dark .plan-card.active-plan { box-shadow: none; }
.plan-featured { border: 2px solid var(--orange); }
.recommended-badge { position: absolute; top: 0; right: 25px; border-radius: 0 0 7px 7px; padding: 8px 10px; background: var(--orange); color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.plan-name { margin: 0; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.plan-card h3 { font-size: 22px; }
.plan-description { min-height: 44px; margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.plan-limit { display: flex; align-items: baseline; gap: 7px; margin-top: 25px; border-block: 1px solid var(--border); padding-block: 20px; }
.plan-limit strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -.04em; }
.plan-limit span { color: var(--ink-soft); font-size: 11px; }
.plan-list { display: grid; min-height: 132px; gap: 11px; margin: 23px 0 0; padding: 0; color: var(--ink-soft); font-size: 12px; list-style: none; }
.plan-list li { display: flex; gap: 9px; }
.plan-list li::before { color: var(--orange); content: "✓"; font-weight: 900; }
.plan-button { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 14px; font-size: 12px; font-weight: 800; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.plan-button:hover { border-color: var(--orange); color: var(--orange); }
.plan-button-primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.plan-button-primary:hover { background: var(--orange-hover); color: #fff; }
.pricing-note { max-width: 760px; margin: 21px auto 0; color: var(--ink-faint); font-size: 10px; line-height: 1.55; text-align: center; }

.final-cta { border-top: 1px solid var(--border); background: var(--orange-soft); }
.final-cta-inner { display: flex; min-height: 350px; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta h2 { max-width: 700px; }
.final-cta p:not(.section-kicker) { margin: 17px 0 0; color: var(--ink-soft); }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: grid; min-height: 140px; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 38px; }
.footer-inner > p { color: var(--ink-soft); font-size: 12px; }
.footer-inner > div { display: flex; gap: 21px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.footer-inner > div a:hover { color: var(--orange); }
.footer-inner > small { color: var(--ink-faint); font-size: 10px; }

/* Authentication and product dashboard */
.auth-shell { display: flex; min-height: 100vh; flex-direction: column; background: var(--page); }
.auth-nav { display: flex; width: min(1180px, calc(100% - 48px)); min-height: 86px; margin-inline: auto; align-items: center; justify-content: space-between; }
.auth-wrap { display: grid; width: min(1080px, calc(100% - 48px)); margin: auto; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-story { position: relative; min-height: 570px; padding: 66px 62px; border-right: 1px solid var(--border); background: var(--page-soft); }
.auth-story::after { display: none; }
.dark .auth-story::after { border-color: #242424; }
.auth-story h1 { max-width: 480px; margin: 19px 0 0; font-family: var(--font-display); font-size: clamp(34px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.auth-story > p:not(.section-kicker) { max-width: 470px; margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.auth-story ul { display: grid; gap: 15px; margin: 46px 0 0; padding: 0; list-style: none; }
.auth-story li { display: flex; align-items: center; gap: 13px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.auth-story li span { color: var(--orange); font-size: 10px; letter-spacing: .1em; }
.auth-card { border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface); padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-form-card { display: flex; min-height: 570px; flex-direction: column; justify-content: center; border: 0; border-radius: 0; padding: 64px 58px; box-shadow: none; }
.auth-overline { margin: 0; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.auth-form-card h2 { margin: 11px 0 0; font-family: var(--font-display); font-size: 30px; letter-spacing: -.035em; }
.auth-subtitle { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.auth-form { display: grid; gap: 20px; margin-top: 32px; }
.auth-submit { display: flex; min-height: 49px; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; padding: 0 17px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.auth-submit:hover { transform: translateY(-1px); background: var(--orange-hover); }
.auth-error { margin: 0; border: 1px solid #f0b7b0; border-radius: 8px; padding: 10px 12px; background: #fff1ef; color: #9e271b; font-size: 12px; }
.dark .auth-error { border-color: #3a3a3a; background: #101010; color: #ffaba2; }
.auth-switch { margin: 28px 0 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--orange); font-weight: 800; }
.auth-footer { display: flex; width: min(1180px, calc(100% - 48px)); min-height: 72px; margin-inline: auto; align-items: center; justify-content: space-between; color: var(--ink-faint); font-size: 10px; }
.field-label { display: block; margin-bottom: .45rem; font-size: .82rem; font-weight: 700; }
.field-input { width: 100%; border: 1px solid var(--border-strong); border-radius: .7rem; background: var(--surface); padding: .8rem .9rem; color: var(--ink); outline: none; }
.field-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 108, 37, .14); }
.field-help { color: var(--ink-soft); font-size: .75rem; }
.side-link { display: flex; align-items: center; gap: .7rem; border-radius: .7rem; padding: .7rem .85rem; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.side-link:hover, .side-link.active { background: var(--orange-soft); color: var(--orange); }
.metric-card { border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 1.15rem; }
.dashboard-shell { background: var(--page); color: var(--ink); }
.dashboard-sidebar { background: var(--surface) !important; border-color: var(--border) !important; }
.dashboard-main { background: var(--page); }
.dashboard-note { border: 1px solid var(--border); background: var(--page-soft) !important; }
.dashboard-note p:first-child { color: var(--ink) !important; }
.dashboard-note p:last-child { color: var(--ink-soft) !important; }
.dashboard-primary { background: var(--orange) !important; color: #fff !important; }
.dashboard-primary:hover { background: var(--orange-hover) !important; }
.dashboard-theme { border-color: var(--border) !important; background: var(--surface); }
.dark .dashboard-sidebar { background: #050505 !important; }
.dark .dashboard-main { background: #000 !important; }
.dark .metric-card { background: #0a0a0a; border-color: #242424; }
.dark .table-wrap { background: #0a0a0a !important; border-color: #242424; }
.dark .dashboard-note { background: #0a0a0a !important; }
.dark .bg-slate-50, .dark .dark\:bg-slate-950 { background: #050505 !important; }
.dark .dark\:bg-slate-900 { background: #0a0a0a !important; }
.dark .dark\:bg-slate-800 { background: #151515 !important; }
.text-blue-600, .dark .dark\:text-blue-300 { color: var(--orange) !important; }
.bg-blue-600, .dark .dark\:bg-blue-600 { background: var(--orange) !important; }
.hover\:bg-blue-500:hover { background: var(--orange-hover) !important; }
.bg-blue-100 { background: var(--orange-soft) !important; }
.text-blue-800 { color: var(--orange-ink) !important; }
.dark .dark\:bg-blue-950, .dark .dark\:bg-blue-950\/40, .dark .dark\:bg-blue-950\/50 { background: #121212 !important; }
.dark .dark\:text-blue-200 { color: var(--orange) !important; }
.accent-blue-600 { accent-color: var(--orange) !important; }
.rule-keyword, .rule-badge { background: var(--orange-soft); color: var(--orange); }
.dark .rule-keyword, .dark .rule-badge { border: 1px solid #303030; background: #121212; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 1rem; }
.status-pill { display: inline-flex; border-radius: 999px; padding: .22rem .6rem; font-size: .7rem; font-weight: 800; }
.status-success { background: #dcfce7; color: #166534; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-pending { background: #ffedd5; color: #9a3412; }
.dark .status-success { background: #181818; color: #dedede; }
.dark .status-failed { background: #181818; color: #ffaba2; }
.dark .status-pending { background: #181818; color: #ffc28e; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { max-width: 760px; text-align: center; margin-inline: auto; }
  .eyebrow, .hero-actions, .hero-proof { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-demo { width: min(760px, 100%); margin-inline: auto; }
  .feature-heading { gap: 45px; }
}

@media (max-width: 800px) {
  .section-container, .site-nav, .hero-inner { width: min(100% - 32px, 1180px); }
  .section-space { padding-block: 80px; }
  .nav-links { display: none; }
  .hero-inner { padding-block: 65px 75px; }
  .hero-copy h1 { font-size: clamp(39px, 10vw, 58px); }
  .trust-strip .section-container { grid-template-columns: 1fr 1fr; padding-block: 12px; }
  .trust-strip span { padding: 12px 5px; }
  .trust-strip span + span::before { display: none; }
  .steps-grid, .features-grid, .plans-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 240px; }
  .step-symbol { margin-top: 28px; }
  .feature-heading { grid-template-columns: 1fr; gap: 20px; }
  .plan-card { min-height: auto; }
  .plan-list { min-height: 0; margin-bottom: 25px; }
  .final-cta-inner { min-height: 390px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 35px; }
  .footer-inner > p { grid-column: 1 / -1; margin: 0; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-story { min-height: auto; padding: 46px 40px; border-right: 0; border-bottom: 1px solid var(--border); }
  .auth-story::after { display: none; }
  .auth-story h1 { max-width: 620px; }
  .auth-story ul { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
  .auth-story li { align-items: flex-start; flex-direction: column; }
  .auth-form-card { min-height: auto; padding: 48px 40px; }
}

@media (max-width: 620px) {
  .announcement-bar { text-align: center; }
  .announcement-bar a { display: none; }
  .site-nav { min-height: 68px; }
  .nav-login { display: none; }
  .button-small { display: none; }
  .hero-inner { width: min(100% - 24px, 1180px); padding-top: 52px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-lead { font-size: 15px; line-height: 1.68; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof { align-items: flex-start; flex-direction: column; padding-left: 7px; }
  .hero-demo { padding: 10px; border-radius: 13px; }
  .demo-heading { align-items: flex-start; }
  .demo-live { display: none; }
  .instagram-frame { grid-template-columns: 1fr; }
  .instagram-photo { min-height: 390px; }
  .instagram-panel { min-height: 380px; }
  .demo-flow { grid-template-columns: 1fr; }
  .flow-line { width: 1px; height: 18px; margin-left: 23px; }
  .flow-line::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
  .demo-controls { align-items: flex-start; flex-direction: column; }
  .section-container { width: min(100% - 32px, 1180px); }
  .section-space { padding-block: 68px; }
  .section-intro h2, .feature-heading h2, .final-cta h2 { font-size: 33px; }
  .trust-strip .section-container { grid-template-columns: 1fr; }
  .trust-strip span { border-bottom: 1px solid var(--border); }
  .trust-strip span:last-child { border-bottom: 0; }
  .step-card, .feature-card, .plan-card { padding: 25px; }
  .volume-box { padding-inline: 18px; }
  .volume-top { align-items: flex-start; flex-direction: column; gap: 6px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner > p { grid-column: auto; }
  .auth-nav, .auth-footer, .auth-wrap { width: min(100% - 28px, 1180px); }
  .auth-nav { min-height: 74px; }
  .auth-wrap { border-radius: 13px; }
  .auth-story { padding: 36px 25px; }
  .auth-story h1 { font-size: 32px; }
  .auth-story ul { grid-template-columns: 1fr; }
  .auth-form-card { padding: 38px 25px; }
  .auth-form-card h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Product surfaces: shared neutral palette, with orange reserved for accents. */
.hidden { display: none !important; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
button:disabled:hover { transform: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.field-input::placeholder { color: var(--ink-faint); opacity: 1; }
.field-input { min-height: 46px; font-size: 14px; }
textarea.field-input { resize: vertical; line-height: 1.6; }
.field-help { line-height: 1.65; margin-top: 7px; overflow-wrap: anywhere; }
.dark .field-input:focus { box-shadow: none; }
.auth-submit, .button-orange, .brand-mark, .recommended-badge { color: var(--on-accent); }
.auth-submit { justify-content: center; gap: 15px; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-field button { position: absolute; top: 0; bottom: 0; right: 12px; border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.dark .button-dark { background: #f5f5f5; color: #111; }
.dark .instagram-frame { background: #0a0a0a; border-color: #333; }
.dark .ig-avatar-shop { background: #252525; box-shadow: 0 0 0 2px #555; }
.dark .ig-avatar-customer { background: #555; }
.dark .dm-check { background: #202020; color: #ddd; }
.dark .demo-live-dot { background: #aaa; box-shadow: none; }

.workspace { display: grid; grid-template-columns: 246px minmax(0, 1fr); background: var(--page); }
.workspace-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 0; height: 100vh; padding: 32px 22px 22px; border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
.workspace-label { margin-top: 48px; margin-bottom: 13px; padding-left: 12px; color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.workspace-nav { display: grid; gap: 5px; }
.workspace-nav .side-link { border-radius: 7px; min-height: 43px; font-size: 12px; white-space: nowrap; }
.nav-number { font-size: 9px; opacity: .7; font-variant-numeric: tabular-nums; }
.workspace-support { margin-top: auto; padding: 30px 10px; }
.workspace-support .section-kicker { font-size: 8px; letter-spacing: .08em; }
.workspace-support p { margin: 10px 0 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.workspace-support a { font-size: 11px; font-weight: 700; }
.workspace-tools { display: flex; justify-content: space-between; gap: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.workspace-main { min-width: 0; width: min(100%, 1500px); padding: 42px clamp(20px, 3vw, 56px) 0; margin-inline: auto; }
.workspace-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 30px; }
.workspace-header h1 { margin: 8px 0; font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -.045em; }
.muted { color: var(--ink-soft); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.header-actions, .form-actions, .log-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; padding: 10px 16px; font-size: 12px; font-weight: 700; line-height: 1.5; transition: background .15s ease; }
.primary-button { background: var(--orange); color: var(--on-accent); }
.primary-button:hover { background: var(--orange-hover); }
.secondary-button { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.secondary-button:hover { background: var(--page-soft); }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 4px; background: transparent; border: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--orange); }
.neutral-badge { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 5px; padding: 5px 9px; background: var(--page-soft); color: var(--ink-soft); font-size: 10px; font-weight: 600; line-height: 1.5; }
.workspace-section { scroll-margin-top: 24px; }
.workspace-section + .workspace-section { margin-top: 48px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.workspace .metric-card { min-width: 0; border-radius: 10px; padding: 24px; }
.metric-label { color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.metric-value { display: block; margin: 17px 0 9px; font-family: var(--font-display); font-size: clamp(25px, 2.3vw, 36px); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-caption { color: var(--ink-faint); font-size: 10px; }
.setup-guide { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center; gap: 16px; border-block: 1px solid var(--border); padding: 24px 0; margin: 25px 0; }
.setup-guide h2 { margin: 7px 0 4px; font-size: 13px; font-weight: 700; }
.setup-guide .section-kicker { font-size: 8px; letter-spacing: .1em; }
.setup-step { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; }
.step-index { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 10px; color: var(--ink-faint); }
.setup-step small { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 10px; font-weight: 400; }
.setup-step.is-complete .step-index, .setup-step.is-complete small { color: var(--orange); }
.charts-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-heading h2, .card-heading h3, .extra-accounts > h3 { font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.card-heading .muted { margin-top: 5px; font-size: 11px; }
.chart-area { position: relative; min-width: 0; height: 215px; }
.chart-area canvas { max-width: 100%; }
.chart-note { margin-top: 10px; font-size: 10px; color: var(--ink-faint); }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { font-family: var(--font-display); font-size: 25px; font-weight: 750; letter-spacing: -.035em; margin: 8px 0 4px; }
.rule-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.form-stack { display: grid; gap: 19px; }
.form-stack > .card-heading { margin-bottom: 0; }
.form-options { display: grid; gap: 16px; border-block: 1px solid var(--border); padding-block: 18px; }
.option-row { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; font-weight: 600; }
.option-row input { accent-color: var(--orange); margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; }
.option-row small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.rule-list { display: grid; gap: 15px; }
.rule-card { border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.rule-keyword { display: inline-block; border: 1px solid var(--border); border-radius: 5px; padding: 5px 9px; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.rule-message { margin: 15px 0; }
.message-label { color: var(--ink-faint); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.rule-message p { margin-top: 5px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.rule-badges, .rule-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rule-actions { margin-top: 15px; padding-top: 8px; border-top: 1px solid var(--border); gap: 20px; }
.rule-actions button:last-child { margin-left: auto; }
.rule-footnote { margin-top: 24px; font-size: 10px; color: var(--ink-faint); line-height: 1.6; }
.empty-state { display: flex; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px 15px; }
.empty-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 9px; font-size: 22px; color: var(--ink-faint); margin-bottom: 18px; }
.empty-state h3 { font-size: 13px; font-weight: 700; }
.empty-state p { max-width: 280px; margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.integration-column { display: grid; gap: 18px; align-content: start; min-width: 0; }
.integration-column > .card-heading, .integration-column > .field-help { margin: 0; }
.integration-divider { border-top: 1px solid var(--border); padding-top: 20px; }
.form-actions { border-top: 1px solid var(--border); padding-top: 20px; }
.extra-accounts { margin-top: 20px; }
.extra-account-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 16px; margin-block: 20px; }
.account-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border: 1px solid var(--border); border-radius: 7px; padding: 8px 15px; font-size: 12px; }
.notice { border: 1px solid var(--border-strong); border-left: 3px solid var(--orange); border-radius: 7px; padding: 14px 17px; background: var(--surface-raised); font-size: 12px; line-height: 1.7; }
.workspace-main > .notice { margin-bottom: 24px; }
.notice-error { color: #a02b23; }
.dark .notice-error, .dark .danger-text { color: #f4a49c; }
.log-controls .field-input { width: auto; min-height: 42px; padding-block: 8px; font-size: 12px; }
.activity-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); }
.activity-table th { padding: 15px 18px; background: var(--page-soft); color: var(--ink-faint); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.activity-table td { padding: 17px 18px; border-top: 1px solid var(--border); font-size: 11px; white-space: nowrap; }
.activity-table .log-detail { min-width: 200px; max-width: 330px; white-space: normal; overflow-wrap: anywhere; line-height: 1.7; color: var(--ink-soft); }
.activity-table .table-empty { padding: 50px 20px; text-align: center; color: var(--ink-soft); white-space: normal; }
.usage-progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--border); accent-color: var(--orange); margin: 22px 0 12px; }
.usage-progress::-webkit-progress-bar { background: var(--border); }
.usage-progress::-webkit-progress-value { background: var(--orange); }
.usage-progress::-moz-progress-bar { background: var(--orange); }
.subscription-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; margin-top: 45px; padding: 25px 0; border-top: 1px solid var(--border); font-size: 10px; color: var(--ink-faint); }
.toast { position: fixed; z-index: 100; top: 22px; right: 24px; display: grid; width: min(390px, calc(100vw - 48px)); grid-template-columns: 38px 1fr 28px; align-items: center; gap: 12px; padding: 14px; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border-strong); border-left: 3px solid var(--orange); border-radius: 10px; box-shadow: 0 18px 55px rgba(0,0,0,.2); opacity: 0; transform: translateY(-14px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--on-accent); font-weight: 900; }
.toast strong, .toast small { display: block; }
.toast strong { margin-bottom: 3px; font-size: 12px; }
.toast small { color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.toast button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 18px; }
.toast button:hover { background: var(--page-soft); color: var(--ink); }
.field-meta { display: inline-flex; align-items: center; gap: 7px; }
.field-importance { display: inline-flex; min-height: 20px; align-items: center; border: 1px solid var(--border); border-radius: 99px; padding: 0 8px; color: var(--ink-faint); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-importance.required { border-color: color-mix(in srgb, var(--orange) 55%, var(--border)); color: var(--orange); }
.field-importance.recommended { color: var(--ink-soft); }
.confirm-dialog { width: min(430px, calc(100% - 32px)); border: 1px solid var(--border); border-radius: 12px; padding: 28px; background: var(--surface); color: var(--ink); }
.confirm-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.confirm-dialog h2 { margin: 12px 0; font-size: 22px; font-weight: 700; }
.confirm-dialog .form-actions { margin-top: 25px; justify-content: flex-end; }

/* Dashboard motion, page structure and contextual help */
.page-enter { animation: page-enter .38s cubic-bezier(.22, .8, .35, 1) both; }
.reveal-card { animation: card-enter .45s cubic-bezier(.22, .8, .35, 1) both; }
.reveal-card:nth-child(2) { animation-delay: .045s; }
.reveal-card:nth-child(3) { animation-delay: .09s; }
.reveal-card:nth-child(4) { animation-delay: .135s; }
@keyframes page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.workspace .metric-card, .rule-card, .setup-guide, .page-intro-card { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.workspace .metric-card:hover, .rule-card:hover { border-color: var(--border-strong); }
.side-link { position: relative; }
.side-link::before { position: absolute; left: 0; width: 2px; height: 0; border-radius: 2px; background: var(--orange); content: ""; transition: height .2s ease; }
.side-link.active::before { height: 18px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .45rem; }
.field-heading .field-label { margin-bottom: 0; }
.help-button { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--ink-soft); font-size: 11px; font-weight: 800; line-height: 1; transition: border-color .18s ease, color .18s ease, transform .18s ease, background .18s ease; }
.help-button:hover { border-color: var(--orange); background: var(--page-soft); color: var(--orange); transform: translateY(-1px); }
.option-row .help-button { margin-left: auto; }
.option-row.is-disabled { opacity: .55; }
.help-dialog { width: min(480px, calc(100% - 30px)); border: 1px solid var(--border); border-radius: 14px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.32); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .2s ease, display .2s allow-discrete, overlay .2s allow-discrete; }
.help-dialog[open] { opacity: 1; transform: none; }
@starting-style { .help-dialog[open] { opacity: 0; transform: translateY(12px) scale(.98); } }
.help-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease, display .2s allow-discrete, overlay .2s allow-discrete; }
.help-dialog[open]::backdrop { opacity: 1; }
@starting-style { .help-dialog[open]::backdrop { opacity: 0; } }
.help-dialog form { position: relative; padding: 34px; }
.help-dialog-icon { display: grid; width: 42px; height: 42px; margin-bottom: 22px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--orange); font-size: 18px; font-weight: 800; }
.help-dialog h2 { margin: 10px 0 12px; font-family: var(--font-display); font-size: 23px; letter-spacing: -.025em; }
.help-dialog #help-body { font-size: 13px; line-height: 1.8; white-space: pre-line; }
.help-confirm { width: 100%; margin-top: 26px; }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: var(--page-soft); color: var(--ink-soft); font-size: 20px; }
.dialog-close:hover { color: var(--orange); }
.page-intro-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 10px; padding: 26px; background: var(--page-soft); }
.page-intro-card h2 { margin: 7px 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -.025em; }
.page-intro-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.intro-index { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.mini-flow { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.mini-flow span { border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; background: var(--surface); font-size: 10px; font-weight: 700; }
.mini-flow i { color: var(--orange); font-size: 13px; font-style: normal; }
.security-note { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 10px; padding: 19px 22px; background: var(--page-soft); }
.security-note > span { color: var(--orange); font-size: 24px; }
.security-note strong { font-size: 12px; }
.security-note p { margin-top: 4px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.log-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.metric-value.small { font-size: 27px; }
.subscription-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 20px; }
.subscription-hero h2 { margin: 8px 0; font-family: var(--font-display); font-size: 25px; }
.subscription-hero .usage-progress, .subscription-hero .usage-explanation { grid-column: 1 / -1; }
.usage-explanation { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; }
.plan-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.plan-choice { position: relative; display: flex; min-height: 340px; flex-direction: column; }
.plan-choice.featured { border-color: var(--orange); }
.plan-choice h3 { margin: 12px 0 8px; font-family: var(--font-display); font-size: 19px; }
.plan-choice > strong { font-size: 13px; }
.plan-choice ul { display: grid; gap: 12px; margin: 24px 0; padding: 0; color: var(--ink-soft); font-size: 12px; list-style: none; }
.plan-choice li::before { margin-right: 8px; color: var(--orange); content: "✓"; }
.plan-choice > a { margin-top: auto; }
.billing-message { margin-top: 16px; text-align: center; }

@media (max-width: 1200px) {
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace-sidebar { padding-inline: 15px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-guide > div { grid-column: 1 / -1; }
  .charts-grid { grid-template-columns: 1.25fr 1fr; }
  .workspace .metric-card { padding: 20px; }
  .extra-account-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .workspace { display: block; }
  .workspace-sidebar { position: static; display: grid; grid-template-columns: 1fr auto; height: auto; padding: 18px 24px 0; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .workspace-sidebar > .site-logo { align-self: center; }
  .workspace-label, .workspace-support { display: none; }
  .workspace-tools { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .workspace-nav { grid-column: 1 / -1; display: flex; overflow-x: auto; padding: 16px 0 12px; margin-top: 3px; scrollbar-width: none; }
  .workspace-nav::-webkit-scrollbar { display: none; }
  .workspace-nav .side-link { flex: 0 0 auto; }
  .workspace-main { padding-top: 30px; }
  .integration-grid { gap: 30px; }
  .plan-choice-grid { grid-template-columns: 1fr; }
  .plan-choice { min-height: auto; }
}
@media (max-width: 680px) {
  .workspace-sidebar { padding-inline: 16px; }
  .workspace-tools { gap: 10px; }
  .workspace-tools .secondary-button { min-height: 36px; padding: 6px 10px; }
  .workspace-main { padding-inline: 16px; }
  .workspace-header h1 { font-size: 28px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .metrics-grid { gap: 10px; }
  .workspace .metric-card { padding: 18px; }
  .metric-value { font-size: 27px; }
  .metric-caption { font-size: 9px; }
  .setup-guide { grid-template-columns: 1fr; gap: 17px; }
  .charts-grid, .rule-layout, .integration-grid, .extra-account-form { grid-template-columns: minmax(0, 1fr); }
  .integration-column + .integration-column { padding-top: 24px; border-top: 1px solid var(--border); }
  .page-intro-card { align-items: flex-start; flex-direction: column; }
  .mini-flow { width: 100%; justify-content: space-between; }
  .mini-flow span { flex: 1; text-align: center; }
  .log-summary { grid-template-columns: 1fr; }
  .log-controls { width: 100%; }
  .log-controls select { flex: 1; }
  .section-heading h2 { font-size: 23px; }
  .auth-wrap { margin-top: 15px; }
  .auth-story { padding: 27px 25px; }
  .auth-story h1 { font-size: 27px; }
  .auth-story ul { display: none; }
  .auth-story > p:not(.section-kicker) { font-size: 13px; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter, .reveal-card { animation: none !important; }
  .help-dialog, .help-dialog::backdrop { transition: none !important; }
}
