/* =============================================================
   HERO: title, phone mockup, address card
   ============================================================= */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(160deg, #fef6ed 0%, #fef3e6 30%, #fefaf5 55%, #fcfcfb 80%, #f9fbfc 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg-shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,146,29,0.08) 0%, transparent 70%);
}
.hero-bg-shape-1 { top: -120px; left: -120px; width: 500px; height: 500px; }
.hero-bg-shape-2 {
  bottom: -80px; right: -80px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(13,124,138,0.04) 0%, transparent 70%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "text phone"
    "card phone";
  gap: 8px 48px;
  align-items: start;
}
.hero-content { grid-area: text; display: flex; flex-direction: column; align-items: flex-start; }
.hero-illustration { grid-area: phone; display: flex; justify-content: center; align-self: start; }

.hero-mobile-logo { display: none; }
.hero-bigtitle {
  max-width: 480px; margin: 0 0 18px;
  font-size: 54px; font-weight: 700; line-height: 1.1; letter-spacing: -0.5px;
  color: var(--ink-900);
}
.hero-bigsubtitle {
  max-width: 480px; margin: 0 0 12px;
  font-size: 18px; line-height: 1.6;
  color: var(--ink-500);
}

/* ---------- Phone mockup (sizes scale from --phone-w) ---------- */
.phone-mockup {
  --phone-w: 280px;
  position: relative;
  width: var(--phone-w);
  flex-shrink: 0;
}
.phone-frame {
  position: relative;
  padding: 7px 5px;
  border-radius: 44px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  /* box-shadow, not filter: drop-shadow, so the counting numbers don't repaint a filter every frame */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 24px 48px rgba(0,0,0,0.18), 0 8px 16px rgba(0,0,0,0.10);
}
.phone-notch {
  position: absolute; top: 15px; left: 50%; z-index: 2;
  width: 84px; height: 18px;
  transform: translateX(-50%);
  background: #000; border-radius: 14px;
}
.phone-screen {
  position: relative; overflow: hidden;
  padding: 42px 16px 40px;
  border-radius: 36px;
  background: linear-gradient(180deg, #fff 0%, #fff 65%, #f0f6fa 100%);
  text-align: center;
}
.phone-screen-logo { display: flex; justify-content: center; margin-bottom: calc(var(--phone-w) * 6 / 280); }
.phone-screen-logo svg { width: calc(var(--phone-w) * 44 / 280); height: auto; }
.phone-screen-address {
  /* Reserve 3 lines so the typewriter never resizes the phone */
  min-height: 3.9em;
  margin-bottom: calc(var(--phone-w) * 14 / 280);
  font-size: calc(var(--phone-w) * 15 / 280); font-weight: 800; line-height: 1.3; letter-spacing: 0.1px;
  color: var(--brand-secondary);
}
.phone-screen-address > div { min-height: 1.3em; }

.phone-screen-table {
  width: 100%;
  margin-bottom: calc(var(--phone-w) * 14 / 280);
  border-collapse: collapse; table-layout: fixed;
  font-size: calc(var(--phone-w) * 8.5 / 280); text-align: left;
}
.phone-screen-table col:nth-child(1) { width: 38%; }
.phone-screen-table col:nth-child(2),
.phone-screen-table col:nth-child(3) { width: 31%; }
.phone-screen-table th {
  padding: calc(var(--phone-w) * 4 / 280) calc(var(--phone-w) * 2 / 280) calc(var(--phone-w) * 5 / 280);
  border-bottom: 1px solid var(--ink-300);
  font-size: 0.95em; font-weight: 700; text-transform: uppercase;
  color: var(--ink-700);
}
.phone-screen-table td {
  overflow: hidden;
  padding: calc(var(--phone-w) * 3.2 / 280) calc(var(--phone-w) * 2 / 280);
  color: var(--ink-700);
}
.phone-screen-table th:not(:first-child),
.phone-screen-table td:not(:first-child) { text-align: center; }
.phone-screen-table td:first-child { font-weight: 500; }
.phone-screen-table .phone-row-spacer td {
  padding: calc(var(--phone-w) * 5 / 280) 0;
}
.phone-screen-table .phone-row-total td {
  padding-top: calc(var(--phone-w) * 7 / 280);
  padding-bottom: calc(var(--phone-w) * 7 / 280);
  font-size: 1.15em; font-weight: 800;
}
.phone-screen-table .phone-row-total td:not(:first-child) {
  white-space: nowrap; font-size: 1.05em; letter-spacing: 0.2px;
  color: var(--ink-900);
}
.phone-demo-label {
  margin: 10px 0 0;
  font-size: 9px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- Address card ---------- */
.hero-card {
  grid-area: card; align-self: start;
  width: 100%; max-width: 540px;
  margin-top: -20px;
  padding: 32px 30px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-card-heading { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--ink-900); }

.hero-input-wrapper {
  position: relative;
  display: flex; align-items: center;
  margin-bottom: 12px;
  padding: 4px 4px 4px 0;
  background: var(--white);
  border: 1px solid var(--ink-300); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-input-wrapper:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-20);
}
.hero-input-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--brand-primary); pointer-events: none;
}
.hero-input {
  flex: 1; min-width: 0;
  padding: 12px 12px 12px 44px;
  border: none; background: transparent;
  font-size: 16px; color: var(--ink-900);
}
.hero-input:focus { outline: none; }
.hero-input::placeholder { color: var(--ink-500); }
.hero-inline-btn {
  flex-shrink: 0;
  padding: 10px 20px; border-radius: 8px;
  background: var(--brand-primary); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap;
  transition: background 0.15s ease;
}
.hero-inline-btn:hover { background: var(--brand-primary-dark); }

.hero-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  max-height: 280px; overflow-y: auto;
  background: var(--white);
  border: 1px solid #e5e7eb; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 14px; color: var(--ink-700);
  cursor: pointer;
  transition: background 0.1s ease;
}
.hero-dropdown-item:last-child { border-bottom: none; }
.hero-dropdown-item:hover { background: var(--brand-primary-light); color: var(--ink-900); }
.hero-dropdown-item svg { flex-shrink: 0; color: var(--brand-primary); }

.hero-trust-bullets {
  display: flex; flex-direction: column; gap: 8px;
  margin: 18px 0 0; padding: 0; list-style: none;
}
.hero-trust-bullets li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-500);
}
.hero-trust-bullets svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--success); }

/* ---------- Mobile: text, then phone, then card ---------- */
@media (max-width: 880px) {
  .hero { padding: 24px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "phone" "card";
    gap: 16px;
  }
  .hero-content { align-items: center; text-align: center; }
  .hero-mobile-logo { display: block; height: 44px; width: auto; margin: 8px auto 18px; }
  .hero-bigtitle { margin-bottom: 12px; font-size: 44px; line-height: 1.05; }
  .hero-bigsubtitle { max-width: none; margin-bottom: 22px; font-size: 17px; }
  .hero-illustration { align-self: center; margin: 8px 0 18px; }
  .phone-mockup { --phone-w: 200px; }
  .hero-card { position: relative; z-index: 5; max-width: none; margin-top: 0; padding: 18px 16px; }
  .hero-trust-bullets { align-items: center; }
  /* Keep the input clear of the on-screen keyboard */
  .hero-input { scroll-margin-top: 24px; scroll-margin-bottom: 80px; }
}
@media (max-width: 880px) and (max-height: 800px) {
  .phone-mockup { --phone-w: 170px; }
}
@media (max-width: 880px) and (max-height: 700px) {
  .phone-mockup { --phone-w: 150px; }
}
