:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5f1;
  --orange: #f97316;
  --red: #be123c;
  --blue: #2563eb;
  --sky: #38bdf8;
  --green: #059669;
  --purple: #7c3aed;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(219, 229, 241, 0.86);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-login-button {
  cursor: pointer;
  color: var(--ink);
  font: inherit;
}

.header-login-panel[hidden],
.header-forgot-panel[hidden] {
  display: none;
}

.header-login-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  z-index: 30;
}

.header-login-form,
.header-forgot-panel {
  display: grid;
  gap: 12px;
}

.header-login-form.is-forgot-mode > label,
.header-login-form.is-forgot-mode > .header-login-link,
.header-login-form.is-forgot-mode > [data-header-login-status],
.header-login-form.is-forgot-mode > .header-login-buttons {
  display: none;
}

.header-login-form.is-forgot-mode > .header-forgot-panel {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
}

.header-login-form label,
.header-forgot-panel label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.header-login-form input,
.header-forgot-panel input {
  width: 100%;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f8fbff;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.header-login-form input:focus,
.header-forgot-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.header-login-link {
  justify-self: flex-start;
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.header-forgot-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.header-forgot-submit,
.header-login-submit {
  min-height: 46px;
}

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

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.header-action,
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 28px rgba(190, 18, 60, 0.22);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  min-height: min(760px, calc(100svh - 72px));
  padding: clamp(68px, 8vw, 108px) clamp(18px, 5vw, 78px) clamp(42px, 7vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(239, 246, 255, 0.96) 48%, rgba(248, 250, 252, 1)),
    var(--bg);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-text,
.feature-copy p,
.quick-card p,
.trust-grid p,
.clean-list {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 26px;
}

.store-section {
  max-width: 560px;
  margin-bottom: 28px;
}

.store-section-copy {
  margin-bottom: 14px;
}

.store-section-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.store-section-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #111827;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.store-badge-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.store-badge-copy {
  display: block;
  min-width: 0;
}

.store-badge-copy small,
.store-badge-copy strong {
  display: block;
  line-height: 1.05;
}

.store-badge-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.store-badge-copy strong {
  margin-top: 3px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.day-strip div,
.trust-grid article,
.quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.06);
}

.day-strip div {
  padding: 14px;
}

.day-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.day-strip strong {
  font-size: 16px;
}

.phone-stage {
  position: relative;
  min-height: 680px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.phone-stage.is-dragging {
  cursor: grabbing;
}

.phone-shot {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(56vw, 340px);
  border-radius: 8px;
  filter: drop-shadow(0 26px 34px rgba(15, 23, 42, 0.18));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.82);
  transition: transform 280ms ease, filter 280ms ease, opacity 280ms ease;
}

.phone-shot:hover {
  filter: drop-shadow(0 34px 42px rgba(15, 23, 42, 0.22));
}

.phone-shot.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(calc(-50% + var(--drag-x, 0px))) translateY(0) rotate(var(--drag-rotate, 0deg)) scale(1);
}

.phone-shot.is-prev {
  z-index: 2;
  opacity: 0.92;
  pointer-events: auto;
  width: min(44vw, 270px);
  transform: translateX(calc(-100% + var(--drag-side-left, 0px))) translateY(94px) rotate(-4deg) scale(0.96);
}

.phone-shot.is-next {
  z-index: 1;
  opacity: 0.94;
  pointer-events: auto;
  width: min(44vw, 270px);
  transform: translateX(calc(0% + var(--drag-side-right, 0px))) translateY(68px) rotate(4deg) scale(0.96);
}

.quick-panel,
.trust-section,
.plans-section,
.contact-section {
  padding: clamp(54px, 7vw, 90px) clamp(18px, 5vw, 78px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.quick-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.quick-card {
  min-height: 230px;
  padding: 22px;
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}

.quick-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.quick-icon {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.quick-blue {
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

.quick-purple {
  background: linear-gradient(135deg, #a78bfa, var(--purple));
}

.quick-green {
  background: linear-gradient(135deg, #34d399, var(--green));
}

.quick-red {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.feature-band,
.finance-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(54px, 7vw, 90px) clamp(18px, 5vw, 78px);
  background: #fff;
}

.feature-copy {
  max-width: 620px;
}

.clean-list {
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 8px;
}

.screen-frame {
  justify-self: center;
  width: min(100%, 430px);
}

.screen-frame img {
  margin: 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 22px 34px rgba(15, 23, 42, 0.16));
}

.finance-band {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.trust-section .section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.client-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.trust-grid article {
  padding: 22px;
  min-height: 190px;
}

.trust-grid strong {
  display: block;
  margin-bottom: 28px;
  color: var(--orange);
  font-size: 13px;
}

.plans-section {
  background: #fff;
}

.plans-section .section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 58, 138, 0.07);
}

.plan-card-featured {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: var(--shadow);
}

.plan-tag {
  align-self: flex-start;
  margin-bottom: 28px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}

.plan-card-featured .plan-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.plan-card h3 {
  font-size: 24px;
  line-height: 1.12;
}

.plan-card h3 small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.plan-card-featured h3 small {
  color: rgba(255, 255, 255, 0.76);
}

.plan-loading {
  grid-column: 1 / -1;
  min-height: 220px;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.6;
}

.plan-card-featured p {
  color: rgba(255, 255, 255, 0.86);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 28px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.5;
}

.plan-card-featured ul {
  color: rgba(255, 255, 255, 0.9);
}

.plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: #0f172a;
  font-weight: 900;
}

.plan-card-featured .plan-action {
  color: var(--ink);
  background: #fff;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.contact-copy {
  max-width: 620px;
}

.contact-channels {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-channels a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.06);
}

.contact-channels span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-channels strong {
  text-align: right;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f8fbff;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid,
.contact-form .is-invalid {
  border-color: #dc2626;
  background: #fff7f7;
}

.field-error {
  display: none;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.contact-form input:user-invalid + .field-error,
.contact-form textarea:user-invalid + .field-error,
.contact-form .is-invalid + .field-error {
  display: block;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.form-status.is-visible {
  display: block;
  color: #334155;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.form-status.is-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.form-status.is-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  color: #475569;
  background: #fff;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.site-version {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1060px) {
  .hero,
  .feature-band,
  .finance-band {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 620px;
  }

  .phone-shot.is-prev {
    transform: translateX(calc(-92% + var(--drag-side-left, 0px))) translateY(104px) rotate(-4deg) scale(0.94);
  }

  .phone-shot.is-next {
    transform: translateX(calc(-8% + var(--drag-side-right, 0px))) translateY(86px) rotate(4deg) scale(0.94);
  }

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

  .client-layout,
  .client-layout .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .header-login-panel {
    top: calc(100% + 10px);
    right: 0;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

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

  .header-login-buttons {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .day-strip,
  .quick-grid,
  .trust-grid,
  .client-layout .trust-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-channels a {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-channels strong {
    text-align: left;
  }

  .phone-stage {
    min-height: 560px;
  }

  .phone-shot {
    width: min(70vw, 280px);
  }

  .phone-shot.is-prev,
  .phone-shot.is-next {
    width: min(46vw, 190px);
  }

  .phone-shot.is-prev {
    transform: translateX(calc(-92% + var(--drag-side-left, 0px))) translateY(124px) rotate(-4deg) scale(0.94);
  }

  .phone-shot.is-next {
    transform: translateX(calc(-8% + var(--drag-side-right, 0px))) translateY(102px) rotate(4deg) scale(0.94);
  }

  .quick-card {
    min-height: 188px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 18px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .phone-stage {
    min-height: 520px;
  }

  .phone-shot {
    width: min(76vw, 250px);
  }

  .phone-shot.is-prev,
  .phone-shot.is-next {
    width: min(44vw, 160px);
  }

  .site-version {
    width: 100%;
    margin-left: 0;
  }
}
