/* ============================================================
   KIZUNA LANDING PAGE — STYLES
   ============================================================ */

:root {
  --ink: #2D3142;
  --ink-soft: #4A4A4A;
  --body-text: #3A3A3A;
  --muted: #6E6E6E;
  --muted-2: #5B5B5B;

  --indigo: #6B76A8;
  --indigo-dark: #545f8c;

  --mint-bg: #D9EEE3;
  --mint-accent: #3F8F72;

  --lavender-bg: #E3E6F5;
  --lavender-accent: #5A6BA8;

  --yellow-bg: #EDE9A6;
  --yellow-text: #5C5730;

  --purple-text: #7B5EA7;
  --green-text: #3F8F72;

  --bezel: #3F3F46;
  --screen: #FAFAF7;

  --border: #CFC9BA;
  --border-soft: #D8D2C4;

  --placeholder-fill: #E8E5DC;
  --placeholder-border: #B7B2A6;

  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 8px 30px rgba(45, 49, 66, 0.08);
  --shadow-card: 0 4px 16px rgba(45, 49, 66, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--body-text);
  background: #fbf9f4;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 90% -5%, var(--mint-bg) 0%, transparent 60%),
    radial-gradient(600px circle at -5% 40%, var(--lavender-bg) 0%, transparent 55%);
  opacity: .6;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Roboto', sans-serif;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}

h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }

p { margin: 0 0 16px; color: var(--body-text); }

a { color: var(--indigo-dark); }

strong { color: var(--ink); font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  text-align: center;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-mark { font-size: 30px; }

.logo-word {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
}

.tagline {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--muted);
}

.tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 12px 28px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.tab-btn.is-active {
  background: var(--indigo);
  color: var(--white);
}

.tab-btn:not(.is-active):hover {
  background: #f1f1f6;
}

/* ---------- Layout ---------- */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.form-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.lede { color: var(--muted-2); font-size: 15px; }

/* ---------- Form ---------- */

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

legend {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  padding: 0 0 14px;
  width: 100%;
}

.optional {
  text-transform: none;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: normal;
}

.req { color: #b3543f; }

.field { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.field-row .field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.chip-label { margin-bottom: 8px; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder, textarea::placeholder { color: #b7b2a6; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(107, 118, 168, 0.15);
}

textarea { resize: vertical; min-height: 90px; }

.field.has-error input,
.field.has-error textarea {
  border-color: #c0503e;
}

.error-msg {
  display: none;
  color: #c0503e;
  font-size: 12px;
  margin-top: 6px;
}

.field.has-error .error-msg,
.consent-row.has-error .error-msg { display: block; }

/* pill / chip buttons */

.pill-group, .chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-btn, .chip-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 22px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.chip-btn {
  border-radius: 18px;
  padding: 8px 16px;
  border-color: var(--border);
  color: var(--muted-2);
}

.pill-btn.is-selected {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.chip-btn.is-selected {
  background: var(--lavender-bg);
  border-color: var(--lavender-accent);
  color: var(--ink);
}

/* repeatable dog / business groups */

.repeat-item {
  padding: 20px;
  border: 1.5px dashed var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  position: relative;
}

.repeat-item + .repeat-item { margin-top: 16px; }

.remove-repeat-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.remove-repeat-btn:hover { color: #c0503e; }

.add-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--indigo);
  background: transparent;
  color: var(--indigo);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}

.add-btn:hover { background: #f3f4fb; }

/* consent + CTA */

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 24px;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--indigo);
}

.consent-row label {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 0;
}

.consent-row .error-msg { grid-column: 2; }

.cta-btn {
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--indigo);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.cta-btn:hover { background: var(--indigo-dark); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn:disabled { opacity: .6; cursor: not-allowed; }

.disclaimer {
  font-size: 12px;
  color: #8a8a8a;
  margin: 14px 0 0;
}

.form-status {
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 0;
  min-height: 18px;
}

.form-status.success { color: var(--mint-accent); }
.form-status.error { color: #c0503e; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Highlights column ---------- */

.highlights-col {
  border-radius: var(--radius-lg);
  padding: 40px;
}

.highlights-mint { background: var(--mint-bg); }
.highlights-lavender { background: var(--lavender-bg); }

.highlights-mint h2 { color: var(--mint-accent); }
.highlights-lavender h2 { color: var(--lavender-accent); }

.hl-purple { color: var(--purple-text); }
.hl-green { color: var(--green-text); }

.feature {
  padding: 24px 0;
  border-top: 1px solid rgba(45,49,66,0.08);
}

.feature:first-of-type { border-top: none; padding-top: 4px; }

.feature p { font-size: 14px; color: var(--body-text); }

.phone-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Phone mockups ---------- */

.phone-mockup {
  width: 175px;
  flex-shrink: 0;
}

.phone-screen {
  background: var(--bezel);
  border-radius: 26px;
  padding: 7px;
  box-shadow: var(--shadow-card);
}

.phone-screen::before {
  content: "";
  display: block;
  width: 50px;
  height: 12px;
  background: var(--bezel);
  border-radius: 0 0 10px 10px;
  margin: 0 auto -12px;
  position: relative;
  z-index: 2;
}

/* Every phone mockup shares one fixed, true-to-device height so the
   frame always reads as a phone, no matter how much content sits
   inside it — a full-bleed photo (map) and a photo-plus-details card
   (dog/owner/venue) end up the same size and shape. */
.phone-inner {
  display: flex;
  flex-direction: column;
  height: 336px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--screen);
  position: relative;
}

.mock-photo {
  flex: 1 1 auto;
  min-height: 0;
  background-color: var(--placeholder-fill);
  background-size: cover;
  background-position: center;
  position: relative;
}

.mock-photo--dog { background-color: #e4d9c9; }
.mock-photo--owner { background-color: #d9e2e4; }
.mock-photo--map { background-color: #dfe6d4; }
.mock-photo--venue { background-color: #e6d9d4; }

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--indigo);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
}

.pin--selected {
  width: 18px;
  height: 18px;
  background: var(--yellow-bg);
  border-color: var(--yellow-text);
}

.phone-searchbar {
  font-size: 10px;
  color: var(--muted);
  background: var(--white);
  padding: 8px 10px;
  margin: 0;
  border-bottom: 1px solid var(--border-soft);
}

.mini-card {
  padding: 8px 10px;
  background: var(--white);
}

.mini-card-title { font-size: 11px; font-weight: 700; color: var(--ink); margin: 0; }
.mini-card-sub { font-size: 9px; color: var(--muted); margin: 2px 0 0; }

.phone-content { padding: 10px; }
.phone-content--tight { padding: 8px 10px; }

.phone-name { font-size: 11px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.phone-sub { font-size: 9px; color: var(--muted); margin: 0 0 6px; }
.phone-bio { font-size: 9px; color: var(--muted-2); margin: 6px 0 0; line-height: 1.4; }
.phone-fine { font-size: 8.5px; color: var(--muted-2); margin: 4px 0 0; line-height: 1.35; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.tiny-chip {
  font-size: 8px;
  padding: 3px 7px;
  border-radius: 10px;
  background: var(--lavender-bg);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.4);
}

.tiny-chip--accent { background: var(--mint-bg); }

.tiny-chip--badge {
  display: inline-block;
  background: var(--yellow-bg);
  color: var(--yellow-text);
  border: none;
  margin-bottom: 5px;
}

.phone-caption {
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  margin: 10px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 13px;
}

.footer-sub { margin-top: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-col, .highlights-col { padding: 28px; }
  h1 { font-size: 28px; }
}

@media (max-width: 560px) {
  .site-header { padding: 36px 16px 22px; }
  main { padding: 0 16px 60px; }
  .form-col, .highlights-col { padding: 22px; border-radius: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .tab-btn { padding: 10px 18px; font-size: 13px; }
  .phone-row { justify-content: center; }
  h1 { font-size: 24px; }
}
