:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f1eee7;
  --text: #161513;
  --text-soft: #5d5a53;
  --line: #e3ddd2;
  --accent: #c15f3c;
  --accent-strong: #a94f31;
  --accent-soft: #f4e8e2;
  --shadow-soft: 0 16px 40px rgba(20, 20, 19, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-ui: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(120% 48% at 88% 0%, rgba(193, 95, 60, 0.15), rgba(193, 95, 60, 0) 52%),
    radial-gradient(74% 40% at 6% 0%, rgba(177, 173, 161, 0.24), rgba(177, 173, 161, 0) 54%),
    var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-compact {
  padding: 2.2rem 0;
}

.section-muted {
  background: rgba(177, 173, 161, 0.12);
  border-top: 1px solid rgba(22, 21, 19, 0.06);
  border-bottom: 1px solid rgba(22, 21, 19, 0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid rgba(22, 21, 19, 0.08);
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

.header-nav a {
  font-size: 0.94rem;
  color: var(--text-soft);
}

.header-nav a:hover {
  color: var(--text);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 640;
  font-size: 0.95rem;
  padding: 0.76rem 1.2rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(193, 95, 60, 0.22);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 26px rgba(193, 95, 60, 0.3);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.badge {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.28rem 0.62rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4e4b44;
}

.badge-muted {
  background: #f7f3eb;
}

.hero-layout {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.03;
  max-width: 13.5ch;
}

.hero-subtitle {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: #45423c;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
}

.hero-cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-demo {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.mockup-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d2c8;
}

.mockup-header p {
  margin-left: auto;
  color: #625f57;
  font-size: 0.8rem;
}

.mockup-main {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.55rem;
}

.mock-metric,
.mock-chart {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fcfbf8;
  padding: 0.72rem;
}

.mock-metric p,
.mock-chart p {
  color: #5f5b53;
  font-size: 0.84rem;
}

.mock-metric strong {
  margin-top: 0.28rem;
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.mock-metric small {
  color: #646058;
}

.mock-metric.alert {
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.13), rgba(193, 95, 60, 0.04));
  border-color: rgba(193, 95, 60, 0.35);
}

.chart-lines {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.42rem;
}

.chart-lines div {
  height: 10px;
  border-radius: 999px;
  background: #e8e2d7;
  overflow: hidden;
}

.chart-lines span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d09c87, var(--accent));
}

.stats-grid {
  display: grid;
  gap: 0.7rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.04);
}

.stat-card p {
  color: #5a574f;
  font-size: 0.86rem;
}

.stat-card strong {
  margin-top: 0.25rem;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.stat-card small {
  color: #68645c;
}

.section-head h2 {
  margin-top: 0.62rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.1;
  max-width: 22ch;
}

.section-head p {
  margin-top: 0.7rem;
  color: #4d4a43;
  max-width: 66ch;
}

.section-head.compact h2 {
  max-width: 26ch;
}

.section-head.center {
  text-align: center;
}

.section-head.center .badge,
.section-head.center h2,
.section-head.center p {
  margin-inline: auto;
}

.pain-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.pain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
}

.pain-card h3 {
  font-size: 1.07rem;
}

.pain-card p {
  margin-top: 0.35rem;
  color: #56534b;
}

.feature-layout {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.feature-list {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  padding: 0.6rem 0.75rem;
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.panel-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem;
  background: #fcfbf8;
}

.panel-item p {
  color: #5f5b53;
  font-size: 0.83rem;
}

.panel-item strong {
  display: block;
  margin-top: 0.2rem;
}

.product-shell {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
}

.product-sidebar {
  border-bottom: 1px solid var(--line);
  background: #f8f4ed;
  padding: 0.8rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
}

.product-sidebar p {
  border: 1px solid #dfd8cc;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  white-space: nowrap;
  color: #5e5a52;
  font-size: 0.82rem;
}

.product-main {
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.product-cards {
  display: grid;
  gap: 0.5rem;
}

.product-cards article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem;
  background: #fcfbf8;
}

.product-cards p {
  color: #5e5b53;
  font-size: 0.82rem;
}

.product-cards strong {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1.33rem;
}

.product-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem;
}

.product-list h3 {
  font-size: 0.96rem;
}

.product-list ul {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.product-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #4d4a43;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.45rem 0.5rem;
  background: #fcfbf8;
}

.product-alert {
  border: 1px solid rgba(193, 95, 60, 0.34);
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(193, 95, 60, 0.13), rgba(193, 95, 60, 0.04));
  padding: 0.72rem;
  color: #3f3b35;
}

.steps-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
}

.step-card span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.step-card h3 {
  margin-top: 0.6rem;
}

.step-card p {
  margin-top: 0.35rem;
  color: #5a574f;
}

.pricing-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.price-card-v2 {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(20, 20, 19, 0.04);
}

.price-card-v2.featured {
  border-color: rgba(193, 95, 60, 0.5);
  box-shadow: 0 16px 34px rgba(193, 95, 60, 0.16);
  background: linear-gradient(136deg, #fff, #fdf7f4);
}

.featured-badge {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.58rem;
}

.price-card-v2 h3 {
  font-size: 1.2rem;
}

.price-main {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.price-main span {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: #5f5b53;
  margin-left: 0.2rem;
}

.price-sub {
  margin-top: 0.4rem;
  color: #5f5b53;
  font-size: 0.9rem;
}

.price-card-v2 ul {
  margin: 0.75rem 0 0.9rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.price-card-v2 li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.46rem 0.56rem;
  background: #fcfbf8;
  color: #4f4c45;
  font-size: 0.91rem;
}

.section-anchor {
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}

.anchor-box {
  border: 1px solid rgba(193, 95, 60, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(193, 95, 60, 0.12), rgba(193, 95, 60, 0.03));
  padding: 1.2rem;
  text-align: center;
}

.anchor-box p {
  color: #524e47;
}

.anchor-box strong {
  margin-top: 0.3rem;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.7vw, 2rem);
}

.faq-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.7rem 0.78rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 650;
}

.faq-list p {
  margin-top: 0.5rem;
  color: #55524a;
}

.cta-final {
  padding-top: 3rem;
}

.cta-final-box {
  border: 1px solid rgba(193, 95, 60, 0.35);
  border-radius: var(--radius-xl);
  background: linear-gradient(132deg, rgba(193, 95, 60, 0.15), rgba(193, 95, 60, 0.05));
  padding: 1.3rem;
  text-align: center;
}

.cta-final-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.6rem);
}

.cta-final-box p {
  margin-top: 0.55rem;
  margin-bottom: 0.95rem;
  color: #4d4a43;
}

.site-footer {
  border-top: 1px solid rgba(22, 21, 19, 0.1);
  padding: 1.1rem 0;
}

.footer-inner {
  text-align: center;
  color: #67635b;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.popup-overlay.hidden {
  display: none;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.58);
}

.popup-modal {
  position: relative;
  width: min(520px, calc(100% - 1.6rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  box-shadow: 0 28px 70px rgba(15, 15, 14, 0.32);
}

.popup-close {
  position: absolute;
  right: 0.6rem;
  top: 0.54rem;
  border: 0;
  background: transparent;
  color: #6e6a62;
  font-size: 1.6rem;
  cursor: pointer;
}

.popup-modal h2 {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.95rem;
  line-height: 1.12;
}

.popup-subtitle {
  margin-top: 0.4rem;
  color: #55524a;
}

.selected-plan {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  background: #fbf9f4;
  border-radius: 12px;
  padding: 0.66rem;
}

.selected-plan span {
  display: block;
  color: #67635b;
  font-size: 0.81rem;
}

.selected-plan strong {
  margin-top: 0.18rem;
  display: block;
}

.popup-form {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.55rem;
}

.popup-form label {
  display: grid;
  gap: 0.24rem;
  color: #4f4c45;
  font-size: 0.85rem;
}

.popup-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.66rem 0.72rem;
  font-size: 0.95rem;
  background: #fffdf8;
}

.popup-message {
  min-height: 1.1rem;
  color: #9f3f34;
  font-size: 0.85rem;
}

.modal-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.dashboard-page {
  background: #f6f5f1;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
}

.dashboard-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-brand {
  font-size: 1.55rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.36rem;
}

.sidebar-nav a {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.56rem 0.7rem;
  color: #5f5b53;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.sidebar-logout {
  margin-top: auto;
}

.dashboard-main {
  padding: 1rem;
  display: grid;
  gap: 0.88rem;
}

.dashboard-topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.dashboard-topbar h1 {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.topbar-meta {
  margin-top: 0.4rem;
  color: #5f5b53;
}

.topbar-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
  padding: 0.6rem 0.68rem;
  width: fit-content;
}

.topbar-status p {
  color: #6a655c;
  font-size: 0.82rem;
}

.metric-grid {
  display: grid;
  gap: 0.65rem;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.86rem;
}

.metric-card p {
  color: #5f5b53;
  font-size: 0.84rem;
}

.metric-card strong {
  margin-top: 0.22rem;
  display: block;
  font-family: var(--font-display);
  font-size: 1.52rem;
}

.metric-card small {
  color: #6b665d;
  font-size: 0.8rem;
}

.metric-alert {
  border-color: rgba(193, 95, 60, 0.4);
  background: linear-gradient(130deg, rgba(193, 95, 60, 0.14), rgba(193, 95, 60, 0.04));
}

.dashboard-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0.9rem;
}

.section-header h2 {
  font-size: 1.22rem;
}

.section-header p {
  margin-top: 0.26rem;
  color: #5c584f;
}

.insight-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.insight-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfbf8;
  padding: 0.62rem 0.7rem;
}

.subscription-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.subscription-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.subscription-table th,
.subscription-table td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.subscription-table th {
  color: #646057;
  font-weight: 600;
  font-size: 0.86rem;
}

.status-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.74rem;
  border: 1px solid var(--line);
}

.tag-cut {
  color: #a9492f;
  border-color: rgba(169, 73, 47, 0.35);
  background: #fff4f1;
}

.tag-review {
  color: #9f6b2d;
  border-color: rgba(159, 107, 45, 0.35);
  background: #fff9ef;
}

.tag-keep {
  color: #3b7858;
  border-color: rgba(59, 120, 88, 0.35);
  background: #f4faf6;
}

.tag-renegotiate {
  color: #4e5da8;
  border-color: rgba(78, 93, 168, 0.35);
  background: #f5f7ff;
}

.table-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.34rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.economy-layout {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.7rem;
}

.economy-chart,
.economy-projection {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fcfbf8;
}

.economy-chart {
  display: grid;
  gap: 0.5rem;
}

.eco-row {
  display: grid;
  gap: 0.24rem;
}

.eco-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #534f47;
  font-size: 0.88rem;
}

.eco-track {
  height: 11px;
  border-radius: 999px;
  background: #e7e1d6;
  overflow: hidden;
}

.eco-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d29b85, var(--accent));
}

.economy-projection {
  display: grid;
  gap: 0.48rem;
}

.economy-projection article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
}

.economy-projection p {
  color: #68635b;
  font-size: 0.82rem;
}

.economy-projection strong {
  display: block;
  margin-top: 0.12rem;
}

.recommendation-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.62rem;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf8;
  padding: 0.68rem;
}

.recommendation-type {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f5a52;
}

.recommendation-card p {
  margin-top: 0.28rem;
  color: #504d45;
}

.recommendation-card strong {
  margin-top: 0.34rem;
  display: block;
}

.config-placeholder {
  margin-top: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fcfbf8;
  padding: 0.72rem;
  color: #5b584f;
}

.locked-card {
  border: 1px solid rgba(193, 95, 60, 0.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(134deg, rgba(193, 95, 60, 0.14), rgba(193, 95, 60, 0.04));
  padding: 1rem;
}

.locked-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.locked-card p {
  margin-top: 0.42rem;
  color: #4a4740;
}

.locked-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 246, 242, 0.9);
  display: grid;
  place-items: center;
  color: #5c584f;
  z-index: 70;
}

.thankyou-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thankyou-container {
  width: min(760px, calc(100% - 1.8rem));
}

.card-premium {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
  text-align: center;
}

.check-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.thankyou-card h1 {
  margin-top: 0.56rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.65rem);
}

.thankyou-card p {
  margin-top: 0.6rem;
  color: #4f4b43;
}

.thankyou-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 820px) {
  .header-nav {
    display: flex;
  }

  .hero-layout {
    grid-template-columns: 1.06fr 0.94fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .product-shell {
    grid-template-columns: 220px 1fr;
  }

  .product-sidebar {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    display: grid;
    align-content: start;
  }

  .product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .internal-only {
    grid-column: 1 / -1;
    max-width: 360px;
    margin-inline: auto;
  }

  .dashboard-shell {
    grid-template-columns: 270px 1fr;
  }

  .dashboard-main {
    padding: 1.2rem;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .economy-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* === SaaS Auth + Dashboard Refactor === */

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-wrap {
  width: min(520px, 100%);
}

.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
  display: grid;
  gap: 0.7rem;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  line-height: 1.1;
}

.login-sub {
  color: #57534b;
}

.login-form {
  display: grid;
  gap: 0.45rem;
}

.login-form label {
  font-size: 0.85rem;
  color: #4f4b43;
  margin-top: 0.2rem;
}

.login-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.66rem 0.72rem;
  background: #fffcf7;
  font-size: 0.95rem;
}

.feedback {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #655f56;
}

.feedback[data-type="error"] {
  color: #a74531;
}

.feedback[data-type="success"] {
  color: #2f7a4d;
}

.access-notice {
  border: 1px solid rgba(193, 95, 60, 0.34);
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(193, 95, 60, 0.13), rgba(193, 95, 60, 0.03));
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.access-notice strong {
  font-size: 1rem;
}

.login-footer {
  color: #69645c;
  font-size: 0.84rem;
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
}

.dashboard-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-menu {
  display: grid;
  gap: 0.36rem;
}

.sidebar-menu a {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.56rem 0.7rem;
  color: #5f5a52;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.dashboard-main {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.dashboard-topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.dashboard-topbar h1 {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.topbar-email {
  margin-top: 0.35rem;
  color: #5d594f;
}

.plan-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
  padding: 0.62rem;
  width: fit-content;
}

.plan-status p {
  color: #6c675f;
  font-size: 0.8rem;
}

.paywall {
  border: 1px solid rgba(193, 95, 60, 0.36);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(193, 95, 60, 0.14), rgba(193, 95, 60, 0.04));
  padding: 1rem;
}

.paywall h2 {
  font-family: var(--font-display);
  font-size: 2rem;
}

.paywall p {
  margin-top: 0.35rem;
  color: #4f4b43;
}

.paywall-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-content {
  display: grid;
  gap: 0.85rem;
}

.metrics-grid {
  display: grid;
  gap: 0.6rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0.9rem;
}

.panel h2 {
  font-size: 1.2rem;
}

.list {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  color: #4f4b43;
}

.list li + li {
  margin-top: 0.42rem;
}

.table-wrap {
  margin-top: 0.7rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.56rem;
  text-align: left;
}

.table th {
  color: #67635a;
  font-size: 0.85rem;
}

.table-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

.eco-bars {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.eco-bar-row {
  display: grid;
  gap: 0.24rem;
}

.eco-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #57534b;
}

.eco-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e6dfd2;
  overflow: hidden;
}

.eco-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d39f89, var(--accent));
}

@media (min-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 260px 1fr;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
