/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(0.95rem, 0.7rem + 0.5vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-block: 0.65em;
  padding-inline: 1.4em;
  min-block-size: 2.75rem;
  border-radius: 99rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: 100ms ease-out;
  transition-property: background-color, border-color, color, filter, scale;
}

.btn:hover { filter: brightness(0.93); text-decoration: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--large {
  font-size: clamp(1.05rem, 0.7rem + 0.8vw, 1.5rem);
  padding-block: 0.7em;
  padding-inline: 2em;
}

/* ── Cards ── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-inline-size: var(--content-width);
  margin-inline: auto;
}

.card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card--featured {
  --glow: var(--accent);
  border-color: var(--glow);
  border-width: 3px;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3),
    0 0 1.5em 0.5em rgba(59, 130, 246, 0.12);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow) 30%, transparent),
    0 0 1.5em 0.5em color-mix(in srgb, var(--glow) 12%, transparent);
  background-image: linear-gradient(160deg,
    rgba(59, 130, 246, 0.06) 0%,
    var(--bg) 50%,
    rgba(59, 130, 246, 0.06) 100%
  );
  background-image: linear-gradient(160deg,
    color-mix(in srgb, var(--glow) 6%, var(--bg)) 0%,
    var(--bg) 50%,
    color-mix(in srgb, var(--glow) 6%, var(--bg)) 100%
  );
}

.card__label {
  font-size: clamp(0.8rem, 0.7rem + 0.3vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-block-end: 0.15rem;
}

.card h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card h3 mark {
  background: var(--highlight);
  color: var(--text);
  padding-inline: 0.3em;
  border-radius: 3px;
  font-weight: 900;
  text-transform: none;
}

.card__tagline {
  font-size: clamp(0.9rem, 0.75rem + 0.3vw, 1rem);
  font-weight: 500;
  color: var(--text-light);
  margin-block: 0.25rem 0.75rem;
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-block-end: 1rem;
}

.card__price {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-block: 0.25rem 1rem;
}

.card__price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.card__list {
  inline-size: 100%;
  text-align: start;
  margin-block-end: 1.5rem;
}

.card__list--horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}

.card__list--horizontal li {
  border-block-end: none;
  padding-block: 0.3rem;
}

.card__list li {
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--border);
  font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.2rem);
  font-weight: 600;
}

.card__list li:last-child { border-block-end: none; }

.card__list .txt-negative {
  font-size: 1.12em;
  font-weight: 900;
}

.card__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.card__note {
  font-size: clamp(0.85rem, 0.7rem + 0.3vw, 0.95rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
}

.card__fine {
  font-size: clamp(0.7rem, 0.6rem + 0.2vw, 0.8rem);
  font-weight: 500;
  color: var(--text-light);
  margin-block-start: 0.5rem;
}

.card__limits {
  font-size: clamp(1rem, 0.8rem + 0.4vw, 1.15rem);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
  margin-block-end: 1rem;
}

/* ── Card list highlights ── */
.card__list .highlight {
  font-weight: 900;
  color: var(--text);
}

.card__list .highlight::before {
  content: var(--highlight-icon, "★ ");
  color: var(--highlight);
}

.card:hover .highlight {
  color: #5a5a2a;
  color: color-mix(in srgb, var(--highlight) 70%, var(--text));
}

/* ── RADAR list ── */
.radar-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radar-list li {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.4;
}

.radar-list strong {
  display: inline-block;
  width: 1.6em;
  font-weight: 900;
  color: var(--accent);
}

/* ── Callout ── */
.callout {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-block-end: 1.5rem;
  text-decoration: underline;
  text-decoration-color: var(--highlight);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.15em;
}

@media (min-width: 640px) {
  .callout { transform: rotate(-1.5deg); }
}

/* ── FAQ (details/summary) ── */
.faq {
  max-inline-size: 48rem;
  margin-inline: auto;
}

.faq__item {
  border-block-end: 1px solid var(--border);
}

.faq__item:last-child { border-block-end: none; }

.faq__item summary {
  padding-block: 0.85rem;
  font-weight: 900;
  font-size: clamp(1.1rem, 0.85rem + 0.6vw, 1.35rem);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 200ms ease-out;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  color: var(--text-light);
  font-size: clamp(1rem, 0.8rem + 0.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  padding-block-end: 1rem;
}

/* ── Checklist ── */
.checklist {
  max-inline-size: 48rem;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding-block: 0.6rem;
  border-block-end: 1px solid var(--border);
  font-size: clamp(1.05rem, 0.85rem + 0.5vw, 1.25rem);
  font-weight: 500;
}

.checklist li:last-child { border-block-end: none; }

.checklist strong {
  font-weight: 800;
  color: var(--text);
}

.checklist li::after {
  content: var(--checklist-badge, "YES!");
  display: inline-block;
  background: var(--highlight);
  color: var(--text);
  font-size: 0.65em;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-inline-start: 0.4em;
  padding: 0.25em 0.45em 0.3em;
  vertical-align: middle;
  border-radius: 3px;
  pointer-events: none;
}


/* ── Toast (scroll-triggered closing) ── */
.toast {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline: 1rem;
  margin-inline: auto;
  max-inline-size: max-content;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: clamp(0.8rem, 0.68rem + 0.25vw, 0.95rem);
  font-weight: 700;
  text-align: center;
  z-index: 150;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 400ms, transform 400ms;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__text::before {
  content: "★ ";
  color: var(--highlight);
}

/* ── Home reviews ── */
.home-reviews {
  columns: 1;
  gap: 0;
}

@media (min-width: 640px) { .home-reviews { columns: 2; } }
@media (min-width: 960px) { .home-reviews { columns: 3; } }

.home-reviews .review {
  break-inside: avoid;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
}

.home-reviews .review__text {
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.home-reviews .review__text mark {
  background: var(--highlight);
  color: var(--text);
  padding-inline: 0.15em;
  border-radius: 2px;
  font-weight: 800;
}

.home-reviews .review__author {
  margin-block-start: 0.5rem;
  font-size: clamp(0.85rem, 0.72rem + 0.25vw, 0.95rem);
  font-weight: 600;
  color: var(--text-light);
}

.home-reviews .review__author strong {
  color: var(--text);
  font-weight: 900;
}

/* ── Calculator ── */
.calculator {
  max-inline-size: var(--content-width);
  margin-inline: auto;
  text-align: center;
}

.calculator__form {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  align-items: center;
  margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.calculator__field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  inline-size: min(100%, 28rem);
  align-items: center;
}

.calculator__field label {
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.35rem);
  font-weight: 800;
  color: var(--text);
  text-align: end;
}

.calculator__field input {
  font-family: inherit;
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem);
  font-weight: 900;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding-block: 0.35em;
  padding-inline: 0.4em;
  inline-size: 4.5em;
  text-align: center;
  transition: border-color 150ms ease-out;
  /* Prevent iOS zoom on focus */
  font-size: max(1rem, clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem));
}

.calculator__field input::-webkit-inner-spin-button,
.calculator__field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculator__field input[type="number"] {
  -moz-appearance: textfield;
}

.calculator__field input:focus {
  outline: none;
  border-color: var(--accent);
}

.calculator__result {
  text-align: center;
}

.calculator__money {
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.calculator__money span {
  background: linear-gradient(135deg, #d4a017, #f5c842, #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator__money-label {
  font-size: clamp(0.85rem, 0.7rem + 0.3vw, 1.05rem);
  font-weight: 600;
  color: var(--text-light);
  margin-block-start: 0.25rem;
}

.calculator__hours {
  font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.2rem);
  font-weight: 700;
  color: var(--text-light);
  margin-block-start: 0.75rem;
}

.calculator__hours span {
  color: var(--text);
  font-weight: 900;
}

.calculator__suggestion {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-block-start: 1rem;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.calculator__suggestion--out {
  opacity: 0;
  transform: translateY(-0.5rem);
}

/* ── Inbox items (shared) ── */

.inbox__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-block-end: 1px solid var(--border);
}

.inbox__tier {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
}

.inbox__tier--r { background: #22C55E; }
.inbox__tier--a { background: var(--accent); }
.inbox__tier--d { background: #F59E0B; }

.inbox__info {
  min-inline-size: 0;
}

.inbox__info strong {
  display: block;
  font-size: clamp(0.9rem, 0.75rem + 0.3vw, 1rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.inbox__info span {
  display: block;
  font-size: clamp(0.78rem, 0.65rem + 0.25vw, 0.88rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}


/* ── Steps (horizontal flow) ── */
.steps {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-block: 0.5rem;
  max-inline-size: var(--content-width);
  margin-inline: auto;
}

.steps__item {
  flex: 1 0 0;
  min-inline-size: 8rem;
  text-align: center;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  scroll-snap-align: center;
  position: relative;
}

.steps__item:not(:last-child)::after {
  content: "→";
  position: absolute;
  inset-inline-end: -0.85rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  z-index: 1;
}

.steps__item--final {
  border-color: var(--accent);
}

.steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.2rem;
  block-size: 2.2rem;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  margin-inline: auto;
  margin-block-end: 0.4rem;
}

.steps__item--final .steps__icon {
  background: var(--accent);
  color: #fff;
}

.steps__item strong {
  display: block;
  font-size: clamp(0.82rem, 0.7rem + 0.25vw, 0.95rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-block-end: 0.15rem;
}

.steps__item > span {
  display: block;
  font-size: clamp(0.72rem, 0.6rem + 0.2vw, 0.82rem);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.3;
}



/* ── Demo (two-panel contact view) ── */
.demo {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block-start: 1rem;
  background: var(--bg);
}

@media (min-width: 640px) {
  .demo {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* List panel */
.demo__list {
  block-size: 16rem;
  overflow: hidden;
  position: relative;
  border-block-end: 2px solid var(--border);
}

@media (min-width: 640px) {
  .demo__list {
    block-size: 34rem;
    border-block-end: none;
    border-inline-end: 2px solid var(--border);
  }
}

.demo__list::before,
.demo__list::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 2rem;
  z-index: 2;
  pointer-events: none;
}

.demo__list::before {
  inset-block-start: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.demo__list::after {
  inset-block-end: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}

.demo__list-scroll {
  animation: demo-scroll 20s linear infinite;
}

@keyframes demo-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.demo__list .inbox__item--active {
  background: rgba(59, 130, 246, 0.08);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-inline-start: 3px solid var(--accent);
}

/* Detail panel */
.demo__detail {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: demo-detail-in 600ms ease-out both;
  animation-delay: 1s;
  overflow-y: auto;
}

@keyframes demo-detail-in {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}

/* Profile (centered, like the app) */
.demo__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--border);
}

.demo__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  margin-block-end: 0.2rem;
}

.demo__name {
  display: block;
  font-size: clamp(1.1rem, 0.9rem + 0.4vw, 1.35rem);
  font-weight: 900;
  color: var(--text);
}

.demo__meta {
  font-size: clamp(0.75rem, 0.62rem + 0.25vw, 0.85rem);
  font-weight: 500;
  color: var(--text-light);
}

.demo__tiers {
  display: flex;
  gap: 0.35rem;
  margin-block-start: 0.25rem;
}

.demo__tier-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.8rem;
  block-size: 1.8rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-light);
  background: var(--bg);
}

.demo__tier-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.demo__suggested {
  margin-block-start: 0.3rem;
}

.demo__suggested strong {
  display: block;
  font-size: clamp(0.9rem, 0.75rem + 0.3vw, 1.05rem);
  font-weight: 800;
  color: var(--text);
}

.demo__suggested span {
  font-size: clamp(0.72rem, 0.6rem + 0.2vw, 0.8rem);
  font-weight: 600;
  color: var(--text-light);
}

/* Touch history */
.demo__touches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-block-size: 0;
}

.demo__touch {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-bg);
  animation: touch-appear 400ms ease-out both;
}

.demo__touch:nth-child(1) { animation-delay: 1.4s; }
.demo__touch:nth-child(2) { animation-delay: 1.7s; }
.demo__touch:nth-child(3) { animation-delay: 2s; }
.demo__touch:nth-child(4) { animation-delay: 2.3s; }

.demo__touch--fade {
  opacity: 0.5;
}

@keyframes touch-appear {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.demo__touch-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.demo__touch-header strong {
  font-size: clamp(0.8rem, 0.68rem + 0.25vw, 0.9rem);
  font-weight: 800;
  color: var(--text);
}

.demo__touch-header span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
}

.demo__touch p {
  font-size: clamp(0.78rem, 0.65rem + 0.25vw, 0.88rem);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.35;
  margin-block-start: 0.15rem;
}


/* ── Lightbox ── */
.lightbox {
  display: contents;
}

.lightbox > summary {
  list-style: none;
}

.lightbox > summary::-webkit-details-marker { display: none; }

.lightbox__overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vmin;
  cursor: zoom-out;
  animation: lightbox-fade-in 300ms ease-out;
}

.lightbox__overlay img {
  max-inline-size: 90vw;
  max-block-size: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  animation: lightbox-slide-up 300ms ease-out;
}

.lightbox__overlay::after {
  content: "✕";
  position: absolute;
  inset-block-start: 1.5rem;
  inset-inline-end: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease-out;
}

.lightbox__overlay:hover::after {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-slide-up {
  from { transform: translateY(2rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

html:has(.lightbox[open]) {
  overflow: clip;
}

/* ── Logos (founders' previous experience) ── */
.logos {
  max-inline-size: var(--content-width);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
  text-align: center;
}

.logos__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.logos__list img {
  block-size: clamp(1.25rem, 2.5vw, 1.5rem);
  inline-size: auto;
  max-inline-size: 5rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}
