/* Styling for find.html and es/find.html recommendation tool */
.find-section {
  margin-bottom: 1.5rem;
}
/* One row of equal buttons on wide screens; two columns on a phone (see the 720px block). */
.btn-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.choice-btn {
  box-shadow: none;
  min-height: 48px;
  min-width: 0;
  line-height: 1.2;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: center;
}
.choice-btn:hover {
  border-color: var(--ink);
  background: #fff;
}
.choice-btn.active, .choice-btn[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(35, 70, 255, 0.25);
}

.results-heading {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.1rem;
  box-shadow: 0 30px 60px -44px rgba(12, 14, 18, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #c9cdd5;
}
.device-art {
  height: 110px;
  width: auto;
  margin-bottom: 0.75rem;
  object-fit: contain;
}
.recommend-card h3 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.35rem;
  line-height: 1.25;
}
.price-range {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.price-range small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stock-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}
.stock-tag.common {
  background: var(--save-bg);
  color: var(--save);
}
.stock-tag.sporadic {
  background: var(--warn-bg);
  color: var(--warn);
}
.why-line {
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--tint);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  margin: 0 0 1rem;
  text-align: left;
  line-height: 1.4;
  width: 100%;
}
.choose-btn {
  margin-top: auto;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
}

.see-all-wrap {
  text-align: center;
  font-size: 1.1rem;
  margin: 1.75rem 0;
}
.see-all-wrap a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
}

.describe-card {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.describe-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.describe-row input[type="text"] {
  flex: 1 1 240px;
}
.describe-row button {
  flex: none;
}

@media (max-width: 720px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  /* Two columns instead of one tall stack: the four questions took three screens at 375px. */
  .btn-group {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .find-section fieldset.card {
    padding: 1rem;
  }
  .plan-intro h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    line-height: 1.02;
  }
  .plan-intro .lead {
    font-size: 1rem;
  }
  .describe-row button {
    flex: 1 1 100%;
  }
}

/* The results row needs more room than the 780px reading column; find pages only. */
@media (min-width: 900px) {
  .top .wrap, main.wrap, .foot.wrap {
    max-width: 980px;
  }
  .plan-intro .lead {
    max-width: 60ch;
  }
}

/* High-converting e-commerce purchase flow & buy colors */
.recommend-card .paid-setup {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  background: var(--signal);
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin: 0.85rem 0 0.25rem;
  box-shadow: 0 3px 10px rgba(35, 70, 255, 0.28);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  min-height: 48px;
}
.recommend-card .paid-setup:hover {
  background: var(--signal-hover);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35, 70, 255, 0.35);
  transform: translateY(-1px);
}
.recommend-card .paid-setup:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(35, 70, 255, 0.25);
}
.recommend-card .prep-sub {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.recommend-card .prep-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.77rem;
  font-weight: 600;
  background: var(--save-bg);
  color: var(--save);
  border: 1px solid #bfe5d2;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  margin: 0 0 0.75rem;
  line-height: 1.35;
  text-align: left;
}
.recommend-card .buy-plan {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.recommend-card .buy-plan:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--tint);
}
.recommend-card .buy-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.82rem;
  background: none;
  border: none;
  color: var(--sub);
  text-decoration: underline;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}
.recommend-card .buy-phone:hover {
  color: var(--ink);
}

.plain-disclosure {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin: 1rem 0 1.25rem;
  color: #166534;
  font-size: 0.9rem;
  line-height: 1.45;
}
.plain-disclosure p { margin: 0; }
.plain-disclosure strong { color: #14532d; font-weight: 750; }
.recommend-card .plan-line {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.phone-line {
  font-weight: 700;
  font-size: 0.88rem;
  color: #15803d;
  margin: 0.25rem 0 0.5rem;
}



/* keep the question title inside the card instead of riding on its border */
.find-section fieldset.card > legend {
  float: left;
  width: 100%;
  margin: 0 0 .75rem;
}
.find-section fieldset.card > legend + * {
  clear: both;
}

/* Ordering is not live yet (checkout is in test mode): say so before any order or deposit wording. */
.preview-notice {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--warn);
  border-left-width: 5px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.4;
}
