@import url("/font-themes.css");

:root {
  color-scheme: light;
  --bg-start: #fff7ed;
  --bg-mid: #fffbeb;
  --bg-end: #e0f2fe;
  --panel: #ffffffcc;
  --text: #1e293b;
  --muted: #475569;
  --brand: #ea580c;
  --brand-2: #0284c7;
  --border: #fed7aa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-mid), var(--bg-end));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #0369a1;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

.page-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.top-nav nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav a {
  font-weight: 700;
  text-decoration: none;
}

.brand {
  color: #0f172a;
  font-size: 18px;
}

.nav-cta {
  border: 1px solid #7dd3fc;
  background: #ffffffd9;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  color: #0f172a;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.nav-cta:hover {
  background: #ffffff;
  border-color: #38bdf8;
}

.nav-cta-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-system-clean);
  -webkit-font-smoothing: antialiased;
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
}

.account-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.account-label {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-system-clean);
}

.account-email-inline {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-system-clean);
}

.account-caret {
  font-size: 11px;
  color: #64748b;
}

.header-pill {
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffffd9;
  color: #0f172a;
  font-size: 14px;
}

.header-auth {
  position: relative;
}

.font-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.font-switch-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.font-switch select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffffd9;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  min-height: 38px;
}

.auth-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px #0f172a29;
  padding: 14px;
  z-index: 20;
}

.auth-popover-account {
  width: 300px;
}

.auth-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.auth-email {
  margin: 4px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b !important;
  word-break: break-all;
  font-family: var(--font-system-clean);
}

.auth-plan {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.auth-plan-sub {
  margin: 2px 0 10px;
  font-size: 12px;
  color: #64748b;
}

.auth-link {
  width: 100%;
  display: block;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 10px;
  margin-top: 8px;
  text-align: left;
  cursor: pointer;
}

.auth-link-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.auth-link:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.hero {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 40px #fb923c22;
  padding: 30px 24px;
}

.hero.compact {
  padding: 24px 22px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #c2410c;
  font-family: var(--font-system-clean);
  -webkit-font-smoothing: antialiased;
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
}

.lede {
  color: var(--muted);
  max-width: 780px;
  font-size: 17px;
  line-height: 1.6;
}

.lede.compact {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 15px;
}

.trust-line {
  margin: 12px 0 0;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-row.centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 18px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px #0284c733;
}

.btn-secondary {
  color: #0f172a;
  border: 1px solid #bae6fd;
  background: #ffffffd9;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

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

.media-card {
  border-color: #7dd3fc;
  box-shadow: 0 10px 24px #0284c720;
}

.media-copy {
  margin-top: 6px;
}

.demo-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #713f12 !important;
  font-size: 13px;
}

.demo-note strong {
  font-weight: 900;
}

.demo-frame {
  margin-top: 12px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f8fdff;
  overflow: hidden;
}

.demo-toolbar {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
}

.demo-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #93c5fd;
}

.demo-body {
  padding: 12px;
}

.demo-drop {
  border: 1px dashed #7dd3fc;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.demo-progress-track {
  margin-top: 12px;
  width: 100%;
  border-radius: 999px;
  height: 10px;
  background: #dbeafe;
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  width: 58%;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.demo-files {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.demo-files li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  font-size: 13px;
  color: #334155;
}

.demo-files li strong {
  font-size: 12px;
  color: #0369a1;
}

.card-grid.single-column {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #ffffffeb;
  padding: 16px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

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

.auth-card,
.checkout-card {
  margin-top: 18px;
}

.checkout-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.checkout-card input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
  margin-top: 6px;
}

.inline-form {
  display: grid;
  gap: 10px;
}

.inline-form label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.inline-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}

.inline-form button {
  cursor: pointer;
}

.inline-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.plan {
  border-color: #fdba74;
}

.plan-highlight {
  border-color: #7dd3fc;
  box-shadow: 0 12px 26px #0284c71e;
}

.plan-subtle {
  border-color: #cbd5e1;
}

.plan-badge {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan .btn {
  margin-top: 12px;
  width: 100%;
}

.pricing-checkout-card {
  margin-top: 18px;
}

.pricing-overview {
  margin-top: 16px;
  border-color: #bae6fd;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.pricing-picker-label {
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.pricing-plan-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pricing-plan-option {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.pricing-plan-option:hover {
  border-color: #94a3b8;
}

.pricing-plan-option.is-selected {
  border-color: #0284c7;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 10px 20px #0284c733;
  transform: translateY(-1px);
}

.pricing-selected-plan {
  margin-top: 12px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
  padding: 12px;
  transition: box-shadow 170ms ease, border-color 170ms ease;
}

.pricing-selected-plan:hover {
  border-color: #7dd3fc;
  box-shadow: 0 10px 24px #0284c71a;
}

.pricing-selected-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
}

.pricing-selected-name {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a !important;
}

.pricing-selected-price {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 900;
  color: #0369a1 !important;
}

.pricing-selected-detail {
  margin: 3px 0 0;
  font-size: 13px;
  color: #475569 !important;
}

.pricing-checkout-button {
  margin-top: 12px;
  width: 100%;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.pricing-page .hero,
.pricing-page .pricing-checkout-card,
.pricing-page .pricing-plan-grid .card {
  opacity: 0;
  transform: translateY(8px);
  animation: pricing-slide-fade 280ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.pricing-page .pricing-checkout-card {
  animation-delay: 170ms;
}

.pricing-page .pricing-plan-grid .card:nth-child(1) {
  animation-delay: 50ms;
}

.pricing-page .pricing-plan-grid .card:nth-child(2) {
  animation-delay: 90ms;
}

.pricing-page .pricing-plan-grid .card:nth-child(3) {
  animation-delay: 130ms;
}

@keyframes pricing-slide-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.price {
  color: #0f172a !important;
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 10px;
}

.sub-note {
  margin-top: 12px;
  color: #334155;
  font-size: 14px;
}

.sub-note.is-error {
  color: #b91c1c;
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: #0f172a66;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(100%, 560px);
  border-radius: 20px;
  border: 1px solid #fdba74;
  background: #fffdf8;
  box-shadow: 0 20px 50px #0f172a2e;
  padding: 20px;
  position: relative;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  color: #9a3412;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

ol,
ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

footer {
  margin-top: 18px;
  text-align: center;
  color: #475569;
  font-size: 13px;
}

.marketing-footer-cta {
  margin-top: 22px;
  padding-top: 10px;
}

.marketing-footer-note {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .page-shell {
    padding: 18px 14px 32px;
  }

  .top-nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .header-auth {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }

  .hero {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .hero.compact {
    padding: 18px 15px;
  }

  .lede {
    font-size: 15px;
  }

  .card-grid,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 16px;
    padding: 14px;
  }

  .card h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .cta-row {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 44px;
  }

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

  .pricing-selected-price {
    font-size: 18px;
  }

  .auth-popover {
    width: min(100vw - 28px, 360px);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 38px;
  }

  .top-nav {
    align-items: center;
  }

  .auth-popover {
    position: absolute;
    right: 0;
    width: min(100vw - 28px, 320px);
    margin-top: 8px;
  }

  .header-pill,
  .nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  .account-email-inline {
    max-width: 120px;
  }

  .font-switch-label {
    display: none;
  }

  .font-switch select {
    max-width: 160px;
  }

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

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

  .demo-body {
    padding: 10px;
  }

  .demo-drop {
    padding: 10px;
    font-size: 13px;
  }

  .modal-panel {
    width: min(100%, 96vw);
    border-radius: 16px;
    padding: 16px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .nav-cta-account {
    min-height: 42px;
    padding: 8px 10px;
    gap: 8px;
  }

  .account-label-wrap,
  .account-caret {
    display: none;
  }

  .account-avatar {
    width: 24px;
    height: 24px;
    margin: 0;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding: 14px 10px 28px;
  }

  .brand {
    font-size: 16px;
  }

  .header-pill,
  .nav-cta {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(24px, 7.2vw, 32px);
  }

  .lede {
    font-size: 14px;
  }

  .card {
    padding: 12px;
  }

  .card h2 {
    font-size: 17px;
  }

  .price {
    font-size: 22px;
  }

  .auth-popover {
    width: min(100vw - 20px, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-page .hero,
  .pricing-page .pricing-checkout-card,
  .pricing-page .pricing-plan-grid .card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .pricing-plan-option,
  .pricing-selected-plan {
    transition: none;
  }
}
