:root {
  --navy: #10243f;
  --navy-deep: #07172b;
  --ink: #223047;
  --muted: #6f7782;
  --line: #e5dfd2;
  --soft: #f8f5ef;
  --paper: #ffffff;
  --accent: #c89a45;
  --accent-strong: #a97824;
  --gold-soft: #f4e5c4;
  --sage: #dfe7df;
  --blue-soft: #e8eef6;
  --danger: #c65353;
  --warning: #b9822d;
  --success: #52795b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbfaf7, var(--soft));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.loading-screen,
.auth-page,
.onboarding {
  min-height: 100vh;
}

.loading-screen {
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  color: var(--muted);
}

.loading-screen .brand-mark {
  width: 74px;
  height: 74px;
  justify-self: center;
  border-radius: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.16);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background:
    linear-gradient(120deg, rgba(16, 36, 63, 0.05), rgba(200, 154, 69, 0.1)),
    var(--soft);
}

.auth-hero h1,
.onboarding h1 {
  max-width: 760px;
  margin: 34px 0 18px;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-hero p,
.onboarding p,
.summary-band p,
.price-card p,
.settings-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-strip span,
.badge,
.profile-card span,
.price-card > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.auth-panel,
.panel,
.metric-card,
.profile-card,
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(16, 36, 63, 0.07);
}

.auth-panel {
  padding: 24px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 8px;
  background: var(--soft);
}

.tab,
.nav-item,
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.tab {
  min-height: 42px;
  border-radius: 7px;
}

.tab.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.09);
}

.stack-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  outline: 0;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 154, 69, 0.2);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--navy), #19385f);
  color: #fff;
  box-shadow: 0 12px 26px rgba(16, 36, 63, 0.16);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--navy-deep), #153151);
}

.secondary-button,
.ghost-button {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.secondary-button:hover,
.ghost-button:hover,
.quick-actions button:hover,
.card-actions button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.fine-print,
.eyebrow,
.item-list small {
  color: var(--muted);
  font-size: 13px;
}

.error {
  border: 1px solid rgba(198, 83, 83, 0.25);
  border-radius: 8px;
  padding: 12px;
  background: rgba(198, 83, 83, 0.08);
  color: var(--danger);
}

.hidden {
  display: none;
}

.landing-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f7f2e9 40%, #ffffff 100%);
  color: var(--ink);
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(229, 223, 210, 0.85);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.landing-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.landing-links a:hover,
.nav-cta:hover {
  color: var(--accent-strong);
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: linear-gradient(180deg, #fff, #fbf7ef);
  color: var(--navy);
  font-weight: 900;
}

.landing-hero,
.problem-section,
.explain-section,
.benefits-section,
.usecase-section,
.how-section,
.testimonial-section,
.pricing-preview,
.faq-section,
.final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 38px) 0 20px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  color: var(--navy);
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 118px;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ead19b);
}

.hero-lede {
  max-width: 680px;
  margin: 0;
  color: #435163;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.landing-page .primary-button,
.landing-page .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.landing-page .primary-button {
  color: #fff;
}

.landing-page .secondary-button {
  color: var(--navy);
}

.hero-product {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(200, 154, 69, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 239, 0.94));
  box-shadow: 0 28px 90px rgba(16, 36, 63, 0.16);
}

.product-topline,
.product-card,
.mini-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.product-topline span,
.product-card span,
.mini-board span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-topline strong {
  color: var(--success);
  font-size: 34px;
  line-height: 1;
}

.product-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fff;
}

.product-card.urgent {
  border-color: rgba(200, 154, 69, 0.5);
  background: #fff8f3;
}

.product-card strong {
  color: var(--navy);
  font-size: 18px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.mini-board div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  border-radius: 7px;
  background: #fff;
}

.mini-board strong {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.problem-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problem-section h2,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.problem-section p,
.section-heading p,
.benefit-card p,
.explain-grid p,
.step-grid p,
.pricing-preview p,
.final-cta p,
.faq-grid p,
blockquote {
  color: var(--muted);
  line-height: 1.65;
}

.problem-section > p {
  margin: 0;
  font-size: 20px;
}

.explain-section,
.benefits-section,
.usecase-section,
.how-section,
.testimonial-section,
.pricing-preview,
.faq-section,
.final-cta {
  padding: 82px 0 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 790px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 690px;
  margin: 0;
}

.explain-grid,
.benefit-grid,
.step-grid,
.testimonial-grid,
.landing-pricing-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.explain-grid,
.step-grid,
.testimonial-grid,
.landing-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.explain-grid article,
.benefit-card,
.step-grid article,
blockquote,
.landing-pricing-grid article,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 36, 63, 0.06);
}

.explain-grid span,
.step-grid strong,
.landing-pricing-grid article > span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.explain-grid h3,
.benefit-card h3,
.step-grid h3,
.landing-pricing-grid h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.explain-grid p,
.benefit-card p,
.step-grid p,
.landing-pricing-grid p {
  margin: 0;
}

.benefit-card {
  min-height: 180px;
}

.usecase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.usecase-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: #fff;
  color: #435163;
  font-weight: 800;
}

blockquote {
  margin: 0;
  font-size: 18px;
}

blockquote span {
  display: block;
  margin-top: 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.landing-pricing-grid article.featured {
  border-color: rgba(200, 154, 69, 0.6);
  background: #fff9ed;
}

.landing-pricing-grid h3 {
  font-size: 42px;
}

.landing-pricing-grid h3 span {
  color: var(--muted);
  font-size: 18px;
}

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

.faq-grid details {
  box-shadow: none;
}

.faq-grid summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.faq-grid p {
  margin: 12px 0 0;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding-bottom: 70px;
}

.final-cta > div {
  display: grid;
  gap: 14px;
}

.final-cta > div p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.landing-page .auth-panel {
  box-shadow: 0 24px 70px rgba(16, 36, 63, 0.14);
}

.onboarding {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 46px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  max-width: 920px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.choice-card input {
  width: 18px;
  min-height: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.nav-backdrop,
.mobile-drawer-head {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 750;
}

.nav-item:hover,
.nav-item.active {
  background: var(--blue-soft);
  color: var(--navy);
}

.plan-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.plan-box span {
  font-weight: 850;
  color: var(--navy);
}

.plan-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mobile-menu {
  display: none;
}

.drawer-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.mobile-label {
  display: none;
}

.action-plus {
  display: none;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.mobile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-panel {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 34px;
  letter-spacing: 0;
}

.top-actions,
.toolbar,
.card-actions,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  display: block;
  width: min(320px, 34vw);
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input {
  min-height: 42px;
  padding-left: 40px;
  border-color: #ccd7e1;
  background:
    linear-gradient(transparent, transparent),
    #fff;
}

.search-box::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search-box::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 27px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.toolbar,
.panel-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.toolbar select {
  max-width: 240px;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 32px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 30%, rgba(82, 121, 91, 0.2), transparent 28%),
    linear-gradient(120deg, #fff, #fff9ed 62%, #eef7f0);
  border: 1px solid var(--line);
}

.summary-band h2,
.panel h2,
.profile-card h2,
.price-card h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: 0;
}

.status-ring {
  --score: 0;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--success) calc(var(--score) * 1%), #e5edf0 0);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.86),
    0 24px 60px rgba(82, 121, 91, 0.22);
  justify-self: end;
}

.status-ring strong {
  color: var(--navy);
  font-size: 44px;
  line-height: 1;
}

.status-ring span {
  margin-top: -58px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metric-grid,
.dashboard-grid,
.expiry-grid,
.profile-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.profile-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.birthday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.panel,
.metric-card,
.profile-card,
.price-card {
  padding: 18px;
}

.metric-card span,
.metric-card p {
  color: var(--muted);
}

.gauge-card {
  --gauge: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 138px;
}

.gauge-card .mini-gauge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--gauge-color) calc(var(--gauge) * 1%), #e7edf2 0);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.82);
}

.gauge-card strong {
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}

.gauge-card span {
  display: block;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.metric-card p {
  margin: 8px 0 0;
  font-size: 13px;
}

.gauge-card.amber {
  --gauge-color: #d99a45;
}

.gauge-card.red {
  --gauge-color: #c65353;
}

.gauge-card.blue {
  --gauge-color: #5e87b7;
}

.gauge-card.green {
  --gauge-color: #52795b;
}

.item-list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.task-item.completed {
  border-color: rgba(82, 121, 91, 0.35);
  background: linear-gradient(90deg, rgba(82, 121, 91, 0.08), #fff 42%);
}

.task-item.completed h3 {
  color: var(--success);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(82, 121, 91, 0.45);
}

.list-item h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
}

.list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.list-item a {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
}

.complete-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #d6e0e8;
  background: #fff;
  box-shadow: 0 10px 22px rgba(16, 36, 63, 0.09);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.complete-button:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(82, 121, 91, 0.55);
  box-shadow: 0 14px 28px rgba(82, 121, 91, 0.16);
}

.complete-button .tick-shape {
  width: 18px;
  height: 10px;
  border-left: 4px solid #aab7c3;
  border-bottom: 4px solid #aab7c3;
  transform: rotate(-45deg) translate(1px, -1px);
  transform-origin: center;
}

.complete-button.completed {
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 14px 34px rgba(82, 121, 91, 0.28);
}

.complete-button.completed .tick-shape {
  border-color: #fff;
}

.complete-button.due.soon {
  border-color: rgba(185, 130, 45, 0.45);
  background: rgba(185, 130, 45, 0.08);
}

.complete-button.overdue {
  border-color: rgba(198, 83, 83, 0.45);
  background: rgba(198, 83, 83, 0.08);
}

.badge.overdue {
  border-color: rgba(198, 83, 83, 0.45);
  background: rgba(198, 83, 83, 0.1);
  color: var(--danger);
}

.badge.due-soon {
  border-color: rgba(185, 130, 45, 0.45);
  background: rgba(185, 130, 45, 0.1);
  color: var(--warning);
}

.badge.completed {
  border-color: rgba(82, 121, 91, 0.45);
  background: rgba(82, 121, 91, 0.1);
  color: var(--success);
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 50px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.birthday-item {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.birthday-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff9ed);
  box-shadow: 0 20px 60px rgba(16, 36, 63, 0.07);
}

.birthday-card h2 {
  margin: 6px 0;
  color: var(--navy);
  letter-spacing: 0;
}

.birthday-card p,
.birthday-card small {
  color: var(--muted);
  line-height: 1.5;
}

.birthday-card p {
  margin: 0;
}

.birthday-card > .card-actions {
  grid-column: 1 / -1;
}

.birthday-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(200, 154, 69, 0.14);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.birthday-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.16);
}

.birthday-initial {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.card-actions {
  justify-content: end;
}

.card-actions button,
.quick-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--ink);
}

.empty-state p {
  margin-bottom: 0;
  line-height: 1.5;
}

.profile-card,
.price-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.profile-card p {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 380px));
}

.price-card.featured {
  border-color: rgba(200, 154, 69, 0.52);
  background: #fff9ed;
}

.price-card h2 {
  font-size: 44px;
}

.price-card h2 span {
  color: var(--muted);
  font-size: 18px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
}

.settings-panel {
  max-width: 620px;
}

.settings-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-heading h2 {
  margin: 0;
  color: var(--navy);
}

.settings-status {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.settings-status.on {
  background: rgba(82, 121, 91, 0.12);
  color: var(--success);
}

.settings-status.off {
  background: rgba(106, 117, 131, 0.12);
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toggle-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--success);
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
}

.settings-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-checks legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 850;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 36, 63, 0.38);
}

.modal-card {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 100px rgba(16, 36, 63, 0.24);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-heading h2 {
  margin: 0;
  color: var(--navy);
}

.modal-heading button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.modal-error {
  border: 1px solid rgba(198, 83, 83, 0.25);
  border-radius: 8px;
  padding: 12px;
  background: rgba(198, 83, 83, 0.08);
  color: var(--danger);
  font-weight: 750;
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 40px rgba(16, 36, 63, 0.25);
}

.diagnostics-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.diagnostics-page .panel {
  width: min(820px, 100%);
}

.diagnostics-page h1 {
  color: var(--navy);
  letter-spacing: 0;
}

.diagnostics-result {
  overflow: auto;
  min-height: 220px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .auth-page,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .landing-nav {
    grid-template-columns: auto auto;
  }

  .landing-links {
    display: none;
  }

  .landing-hero,
  .problem-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-product {
    max-width: 620px;
  }

  .explain-grid,
  .step-grid,
  .testimonial-grid,
  .landing-pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding: 28px;
  }

  .app-shell {
    position: relative;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(86vw, 330px);
    height: 100dvh;
    grid-template-rows: auto 1fr auto;
    transform: translateX(-102%);
    transition: transform 220ms ease;
    box-shadow: 28px 0 80px rgba(16, 36, 63, 0.18);
    overflow: auto;
  }

  .app-shell.nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    background: rgba(16, 36, 63, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .app-shell.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar > .brand-row {
    display: none;
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .plan-box {
    display: grid;
  }

  .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: var(--navy);
    font-weight: 850;
  }

  .main-panel {
    padding: 22px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -22px -22px 20px;
    padding: 16px 22px;
    background: rgba(246, 248, 250, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221, 228, 234, 0.86);
  }

  .metric-grid,
  .dashboard-grid,
  .expiry-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .main-panel,
  .onboarding,
  .auth-page {
    padding: 16px;
  }

  .landing-nav {
    padding: 12px 16px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 8px 10px;
  }

  .landing-hero,
  .problem-section,
  .explain-section,
  .benefits-section,
  .usecase-section,
  .how-section,
  .testimonial-section,
  .pricing-preview,
  .faq-section,
  .final-cta {
    width: min(100% - 28px, 1180px);
  }

  .landing-hero {
    gap: 28px;
    padding: 38px 0 34px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-lede,
  .problem-section > p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-product {
    padding: 12px;
  }

  .mini-board {
    grid-template-columns: 1fr;
  }

  .problem-section {
    padding: 34px 0;
  }

  .problem-section h2,
  .section-heading h2,
  .final-cta h2 {
    font-size: 36px;
  }

  .explain-section,
  .benefits-section,
  .usecase-section,
  .how-section,
  .testimonial-section,
  .pricing-preview,
  .faq-section,
  .final-cta {
    padding-top: 56px;
  }

  .final-cta {
    padding-bottom: 42px;
  }

  .main-panel {
    padding-top: 18px;
  }

  .auth-hero h1,
  .onboarding h1 {
    font-size: 42px;
  }

  .topbar,
  .summary-band,
  .toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    margin: -18px -16px 18px;
    padding: 10px 14px 12px;
    gap: 10px;
  }

  .topbar .eyebrow {
    display: none;
  }

  .mobile-title-row {
    justify-content: flex-start;
  }

  .topbar h1 {
    font-size: 26px;
    line-height: 1.1;
  }

  .summary-band {
    padding: 22px;
    gap: 18px;
  }

  .top-actions,
  .toolbar {
    display: grid;
  }

  .top-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .search-box {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-box input {
    min-height: 40px;
    font-size: 15px;
  }

  .mobile-menu {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
  }

  .top-actions .primary-button,
  .top-actions .secondary-button {
    min-height: 40px;
    padding: 8px 10px;
    justify-content: center;
    gap: 6px;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label,
  .action-plus {
    display: inline;
  }

  .gauge-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 118px;
  }

  .gauge-card .mini-gauge {
    width: 78px;
    height: 78px;
  }

  .gauge-card strong {
    font-size: 26px;
  }

  .toolbar select {
    max-width: none;
  }

  .status-ring {
    justify-self: start;
    width: 152px;
    height: 152px;
  }

  .status-ring strong {
    font-size: 36px;
  }

  .status-ring span {
    margin-top: -48px;
  }

  .list-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .list-item .badge,
  .list-item .card-actions {
    grid-column: 2;
    justify-content: start;
  }

  .form-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }
}
