:root {
  --blue: #2563eb;
  --blue-dark: #0b2a59;
  --blue-muted: #49698f;
  --blue-soft: #edf4ff;
  --orange: #ff8a1f;
  --orange-dark: #c45100;
  --orange-soft: #fff3e8;
  --white: #ffffff;
  --line: #cbdcff;
  --shadow: 0 26px 64px rgba(11, 42, 89, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0;
  color: var(--blue-dark);
  background: var(--white);
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
  text-decoration: none;
  font: 800 21px Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.03em;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--orange);
  transform: rotate(-4deg);
}
.install-button {
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  padding: 9px 16px;
  font-weight: 800;
}
.install-button:hover { background: var(--blue); color: var(--white); }

.install-dialog {
  position: relative;
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--blue-dark);
  padding: 34px;
  box-shadow: 0 28px 80px rgba(11, 42, 89, .24);
}
.install-dialog::backdrop { background: rgba(11, 42, 89, .48); backdrop-filter: blur(3px); }
.install-dialog .dialog-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 13px;
  background: var(--blue);
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--orange);
  transform: rotate(-4deg);
}
.install-dialog h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font: 800 30px/1.1 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.04em;
}
.install-dialog > p:not(.micro-label) { margin: 0 0 24px; color: var(--blue-muted); line-height: 1.65; }
.install-dialog .primary-button { width: 100%; }
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1;
}
.dialog-close:hover { background: var(--orange-soft); color: var(--orange-dark); }

main { max-width: 1180px; margin: 0 auto; padding: 0 28px 54px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr);
  gap: 70px;
  align-items: start;
  padding: 92px 0 76px;
}
.hero-copy { position: sticky; top: 40px; padding-top: 70px; }
.eyebrow, .micro-label {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: var(--blue-dark);
  font: 800 clamp(54px, 6.2vw, 82px)/.92 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.07em;
}
.hero h1 .hero-line { display: inline-block; white-space: nowrap; }
.hero h1 .hero-accent { position: relative; z-index: 0; display: inline-block; white-space: nowrap; }
.hero h1 .hero-accent::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -8px;
  bottom: 3px;
  height: 18px;
  background: var(--orange);
  opacity: .88;
  z-index: -1;
  transform: rotate(-1.4deg);
}
.hero-subtitle {
  max-width: 510px;
  margin: 28px 0 25px;
  color: var(--blue-muted);
  font-size: 18px;
  line-height: 1.65;
}
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-row span {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  padding: 8px 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.app-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.app-shell::before { content: ""; display: block; height: 8px; background: var(--orange); }
.app-state { padding: 32px; }
.composer-state { background: var(--white); }
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.panel-heading h2, .list-heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font: 800 25px/1.2 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
}
.status-dot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  background: var(--blue-soft);
  padding: 7px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.status-dot.full, .status-dot.expired { background: var(--orange-soft); color: var(--orange-dark); }
.status-dot.full i, .status-dot.expired i {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, .16);
}
.status-dot.active { background: var(--blue-soft); color: var(--blue); }

.field { display: grid; gap: 8px; }
.field-wide { margin-bottom: 16px; }
.field > span { color: var(--blue-dark); font-size: 13px; font-weight: 850; }
.field small { color: var(--blue-muted); font-weight: 500; }
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue-dark);
  padding: 0 14px;
  outline: none;
  transition: .18s ease;
}
input::placeholder { color: #7891b4; }
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}
input:disabled { background: var(--blue-soft); cursor: not-allowed; opacity: .72; }
.price-input { position: relative; }
.price-input b {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--blue);
}
.price-input input { padding-left: 30px; }
.form-error {
  min-height: 18px;
  margin: -4px 0 10px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}
.capacity-message {
  margin: 12px 0 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.primary-button, .secondary-button {
  min-height: 50px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--blue-dark); border-color: var(--blue-dark); }
.primary-button span { color: var(--orange); font-size: 20px; }
.primary-button:disabled { background: #93b1eb; border-color: #93b1eb; cursor: not-allowed; }
.secondary-button {
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
}
.secondary-button:hover { background: var(--blue-soft); }
.decision-buy { justify-content: center; }

.decision-section {
  border-top: 1px solid var(--line);
  background: var(--blue-soft);
  padding: 28px 32px 32px;
}
.list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.list-heading .micro-label { margin-bottom: 7px; }
.list-heading > span {
  color: var(--blue-muted);
  font-size: 12px;
  font-weight: 800;
}
.no-decisions {
  display: grid;
  gap: 5px;
  border: 1px dashed #8fb2f4;
  border-radius: 15px;
  background: var(--white);
  padding: 22px;
  color: var(--blue);
}
.no-decisions span { color: var(--blue-muted); font-size: 13px; line-height: 1.5; }
.decision-list { display: grid; gap: 14px; }
.decision-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 17px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(11, 42, 89, .07);
}
.decision-card.is-expired { border-left-color: var(--orange); }
.decision-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.decision-card-heading .micro-label { margin-bottom: 7px; }
.decision-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font: 800 20px/1.2 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.mini-countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 6px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 16px 14px;
}
.mini-countdown div { display: grid; justify-items: center; }
.mini-countdown strong {
  font: 750 31px/1 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.mini-countdown span {
  margin-top: 6px;
  color: #bcd0f2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.mini-countdown em { color: var(--orange); font: normal 800 27px/1 Inter, Aptos, "Segoe UI", sans-serif; }
.expired-message { padding: 20px 0 4px; }
.expired-message p {
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.expired-message h4 { margin: 0; color: var(--blue-dark); font-size: 20px; }
.decision-meta {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--blue-muted);
  font-size: 12px;
}
.decision-price { color: var(--blue-dark); font-weight: 900; }
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 14px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principles article { padding: 34px 28px 36px 0; }
.principles article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.principles article > span { color: var(--orange-dark); font: 800 12px Inter, Aptos, "Segoe UI", sans-serif; }
.principles h3 {
  margin: 18px 0 9px;
  color: var(--blue-dark);
  font: 800 20px Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.03em;
}
.principles p { margin: 0; color: var(--blue-muted); font-size: 14px; line-height: 1.6; }
.privacy-strip {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 70px;
  align-items: end;
  margin-top: 72px;
  padding: 48px;
  border-radius: 22px;
  background: var(--blue-dark);
  color: var(--white);
}
.privacy-strip .micro-label { color: var(--orange); }
.privacy-strip h2 {
  max-width: 620px;
  margin: 0;
  color: var(--white);
  font: 700 clamp(30px, 4vw, 48px)/1.05 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.05em;
}
.privacy-strip > p { margin: 0; color: #d8e5fb; line-height: 1.7; }

.support-card {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  border-radius: 22px;
  background: var(--white);
  padding: 34px clamp(22px, 5vw, 54px);
  text-align: center;
  box-shadow: 0 16px 44px rgba(11, 42, 89, .09);
}
.support-icon { color: var(--orange-dark); font-size: 26px; line-height: 1; }
.support-card h2 {
  margin: 13px 0 10px;
  color: var(--blue-dark);
  font: 800 25px/1.2 Inter, Aptos, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
}
.support-card > p {
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--blue-muted);
  line-height: 1.7;
}
.support-link {
  display: block;
  max-width: 360px;
  margin: 20px auto 12px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
}
.support-link:hover { background: var(--blue-dark); }
.support-card .support-note { margin-bottom: 22px; font-size: 12px; }
.support-rule { height: 1px; margin: 0 0 18px; background: var(--line); }
.support-card .support-secure { margin: 0; color: var(--blue-muted); font-size: 12px; }

.site-footer {
  margin-top: 26px;
  border-radius: 22px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 32px clamp(22px, 5vw, 46px);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--orange);
  font-weight: 900;
  transform: rotate(-4deg);
}
.footer-tagline { margin: 12px 0 0; color: #d8e5fb; font-size: 13px; }
.footer-rule { height: 1px; margin: 22px 0; background: rgba(255,255,255,.2); }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.site-footer h2 { margin: 0 0 9px; color: var(--orange); font-size: 13px; }
.site-footer a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-owner { margin: 0 0 6px; color: #d8e5fb; font-size: 12px; }
.footer-copyright { margin: 0; color: #a9bfdf; font-size: 11px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 800;
  transition: .25s ease;
  box-shadow: 0 10px 32px rgba(11, 42, 89, .2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }

@media (display-mode: standalone), (display-mode: fullscreen) {
  .install-button { display: none !important; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 66px; }
  .hero-copy { position: static; max-width: 650px; padding-top: 0; }
  .privacy-strip { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .site-header { padding: 20px 18px 0; }
  main { padding: 0 16px 30px; }
  .hero { padding: 52px 0; gap: 36px; }
  .hero h1 { font-size: clamp(52px, 17vw, 72px); }
  .hero-subtitle { font-size: 16px; }
  .app-state, .decision-section { padding: 25px 20px; }
  .panel-heading { display: grid; }
  .status-dot { width: fit-content; grid-row: 1; }
  .list-heading { align-items: flex-start; }
  .decision-card { padding: 18px 16px; }
  .decision-card-heading { display: grid; }
  .decision-card-heading .status-dot { grid-row: 1; }
  .mini-countdown { gap: 3px; padding: 15px 9px; }
  .mini-countdown strong { font-size: 28px; }
  .mini-countdown em { font-size: 23px; }
  .decision-meta { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 0; gap: 3px; }
  .card-actions { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles article { padding: 26px 4px; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 4px; }
  .privacy-strip { margin-top: 52px; padding: 30px 24px; }
  .install-dialog { padding: 30px 24px 24px; }
  .support-card { padding: 28px 20px; }
  .site-footer { padding: 28px 22px; }
  .footer-columns { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
