:root {
  --primary: #1f108e;
  --primary-2: #4648d4;
  --primary-soft: #eef0ff;
  --amber: #f59e0b;
  --surface: #f8f9ff;
  --card: rgba(255, 255, 255, 0.94);
  --text: #0b1c30;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(70, 72, 212, 0.18), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(245, 158, 11, 0.16), transparent 27%),
    linear-gradient(180deg, #ffffff 0%, var(--surface) 48%, #eef2ff 100%);
}

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(18px);
}

.brand,
.topnav,
.hero-actions,
.hero-metrics,
.social-row,
.download-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-placeholder {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 10px;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(31, 16, 142, 0.28);
}

.topnav {
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.topnav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.topnav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 58px;
  align-items: center;
  padding: 78px 0 52px;
}

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

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-text,
.section-heading p,
.feature-card p,
.task-preview-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 17px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 18px 34px rgba(31, 16, 142, 0.24);
}

.button.secondary {
  color: var(--primary);
  background: white;
  border: 1px solid var(--border);
}

.button.full {
  width: 100%;
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.hero-metrics {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-metrics span,
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics span {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics strong {
  color: var(--text);
}

.app-card,
.auth-card,
.download-card,
.feature-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.app-card {
  min-height: 720px;
  padding: 24px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.12), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(70, 72, 212, 0.16), transparent 36%),
    var(--card);
}

.phone-shell {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  padding: 56px 18px 126px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 16, 142, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 249, 255, 0.88)),
    #f8f9ff;
  border: 11px solid #101827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone-top {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 90px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #111827;
}

.app-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.app-preview-header h2 {
  margin: 2px 0 0;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.preview-kicker,
.task-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-dot {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background:
    radial-gradient(circle, var(--primary) 3px, transparent 4px) center / 12px 12px,
    white;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.preview-tabs span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.preview-tabs span.active {
  color: var(--primary);
  background: white;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.08);
}

.task-section-title {
  margin: 14px 2px 8px;
}

.task-preview-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.task-preview-card.active {
  background: #eef0ff;
  border-color: rgba(31, 16, 142, 0.22);
}

.task-preview-card.reference-style {
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #33251a;
  border-color: rgba(100, 102, 241, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(100, 102, 241, 0.16),
    0 14px 34px rgba(15, 23, 42, 0.10);
}

.task-preview-card.reference-style.bottom {
  background: #143321;
}

.task-preview-card.peach {
  background: #fff4e4;
}

.task-preview-card.mint {
  background: #eefbe8;
}

.task-preview-card h2 {
  margin: 8px 0 4px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.task-preview-card.reference-style h2 {
  margin: 0 0 10px;
  color: #eef2ff;
  font-size: 19px;
  line-height: 1.05;
}

.chip {
  display: inline-flex;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.task-image-preview {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  border-radius: 22px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(15, 23, 42, 0.06));
}

.chip.urgent {
  color: var(--primary);
  background: #e8e7ff;
}

.chip.daily {
  color: #166534;
  background: #eaf8d9;
}

.task-check {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(31, 16, 142, 0.28);
  border-radius: 9px;
  background: white;
}

.task-check.large {
  width: 34px;
  height: 34px;
  border-width: 5px;
  border-color: #20365c;
  border-radius: 999px;
  background: #07111f;
}

.task-check.done {
  position: relative;
  background: var(--primary);
  border-color: var(--primary);
}

.task-check.done::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.task-check.large.done::after {
  left: 9px;
  top: 4px;
  width: 8px;
  height: 15px;
}

.reference-task-body {
  min-width: 0;
}

.task-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.task-pill,
.task-date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
}

.task-pill.priority,
.task-pill.medium {
  text-transform: uppercase;
}

.task-pill.priority {
  color: #fff7ed;
  background: #f97316;
}

.task-pill.medium {
  color: #6966ff;
  background: #0c1942;
}

.task-pill.repeat,
.task-date-pill {
  color: #eef2ff;
  background: #1d2d4f;
}

.task-date-pill {
  min-height: 34px;
  font-size: 12px;
}

.bottom-nav-image {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 8px;
  width: calc(100% - 12px);
  max-height: 126px;
  object-fit: contain;
  transform: translateX(-50%);
  border-radius: 24px;
  filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.16));
}

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

.pricing-section {
  padding: 70px 0 44px;
}

.pricing-heading {
  max-width: 650px;
  margin: 0 auto 20px;
  text-align: center;
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(390px, 100%);
  gap: 6px;
  margin: 0 auto 12px;
  padding: 6px;
  border-radius: 18px;
  background: #f1f5f9;
}

.billing-toggle button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.billing-toggle button span {
  padding: 3px 6px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 10px;
}

.billing-toggle button.active {
  color: var(--primary);
  background: white;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.pricing-message {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.pricing-message.error,
.pricing-loading.error {
  color: #ba1a1a;
}

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

.pricing-card,
.pricing-loading {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
}

.popular-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 8px 0 2px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.pricing-card h3 span,
.pricing-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.pricing-card > p:not(.eyebrow) {
  min-height: 52px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card ul {
  min-height: 128px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  margin-bottom: 9px;
  padding-left: 22px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.seat-selector {
  margin-top: 14px;
}

.seat-selector select {
  min-height: 44px;
}

.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
}

.feature-card,
.auth-card,
.download-card {
  border-radius: 30px;
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h2 {
  font-size: 20px;
}

.auth-download-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #f1f5f9;
}

.mode-toggle button {
  border: 0;
  padding: 12px;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.mode-toggle button.active {
  color: var(--primary);
  background: white;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: white;
  outline: 0;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 16, 142, 0.1);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--border);
}

.social-row {
  gap: 8px;
  flex-wrap: wrap;
}

.social-row button,
.demo-button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.social-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 92px;
}

.sso-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.sso-logo.google {
  color: #4285f4;
  background:
    conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  -webkit-background-clip: text;
  background-clip: text;
}

.sso-logo.facebook {
  color: white;
  background: #1877f2;
  font-family: Georgia, serif;
  font-size: 19px;
}

.sso-logo.x-logo {
  color: white;
  background: #111827;
  font-size: 12px;
}

.sso-logo.apple-logo {
  color: white;
  background: #111827;
  font-size: 12px;
}

.demo-button {
  width: 100%;
  margin-top: 10px;
  color: var(--primary);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message.error {
  color: #ba1a1a;
}

.invite-summary,
.success-card {
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  border: 1px solid rgba(31, 16, 142, 0.16);
}

.invite-actions {
  display: grid;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

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

.download-grid {
  gap: 14px;
  align-items: stretch;
}

.store-card {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  text-align: center;
}

.qr-placeholder {
  width: 124px;
  height: 124px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #111827 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(#111827 12px, transparent 12px) 0 0 / 24px 24px,
    #ffffff;
  border: 10px solid white;
  box-shadow: inset 0 0 0 2px var(--border);
}

.qr-placeholder.alt {
  background:
    radial-gradient(circle, #111827 5px, transparent 6px) 0 0 / 22px 22px,
    #ffffff;
}

.store-card small {
  color: var(--muted);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #07111f;
    --card: rgba(16, 26, 43, 0.94);
    --text: #e5edff;
    --muted: #9aa8bd;
    --border: #27354a;
    --primary: #6466f1;
    --primary-2: #b8b5ff;
    --primary-soft: #1b2740;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }

  body {
    background:
      radial-gradient(circle at 14% 12%, rgba(100, 102, 241, 0.16), transparent 30%),
      radial-gradient(circle at 86% 4%, rgba(245, 158, 11, 0.11), transparent 27%),
      linear-gradient(180deg, #07111f 0%, #101a2b 52%, #07111f 100%);
  }

  .topbar,
  .task-preview-card,
  .button.secondary,
  input,
  select,
  .mode-toggle button.active,
  .settings-dot,
  .preview-tabs span.active,
  .social-row button,
  .demo-button,
  .store-card {
    background: #101a2b;
  }

  .phone-shell,
  .preview-tabs,
  .mode-toggle,
  .billing-toggle {
    background: #172235;
  }

  .task-preview-card.active {
    background: #1b2740;
  }

  .task-preview-card.peach {
    background: #342818;
  }

  .task-preview-card.mint {
    background: #172b20;
  }

  .task-check {
    background: #101a2b;
  }
}

@media (max-width: 920px) {
  .hero,
  .auth-download-grid {
    grid-template-columns: 1fr;
  }

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

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

  .app-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .topnav,
  .download-grid {
    align-items: stretch;
  }

  .topbar {
    position: static;
    flex-direction: column;
  }

  .topnav,
  .download-grid {
    width: 100%;
  }

  .topnav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding-top: 42px;
  }

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

  .download-grid {
    flex-direction: column;
  }
}
