:root {
  --bg: #f6f3ee;
  --panel: #fffdf9;
  --ink: #24302f;
  --muted: #71807d;
  --line: #e1ddd4;
  --sage: #526f66;
  --mist: #dbe7e3;
  --clay: #c9876d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  margin: 0 auto;
  max-width: 1120px;
  min-height: 86vh;
  padding: 56px 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.brand img {
  border-radius: 10px;
  display: block;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.brand p {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.brand-link {
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
}

h1 {
  font-size: clamp(44px, 8vw, 84px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 820px;
}

.lede {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
  margin: 28px 0 0;
  max-width: 640px;
}

.brand-promise {
  background: var(--mist);
  border: 1px solid rgba(82, 111, 102, 0.16);
  border-radius: 8px;
  color: var(--sage);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  margin: 20px 0 0;
  padding: 11px 14px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-buttons a,
.merchant a {
  background: var(--sage);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  padding: 15px 22px;
  text-decoration: none;
}

.store-buttons a + a {
  background: var(--ink);
}

.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.phone-gallery {
  min-height: 680px;
  position: relative;
}

.phone {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(36, 48, 47, 0.16);
  overflow: hidden;
  position: absolute;
}

.phone img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.phone-primary {
  height: 610px;
  right: 0;
  top: 18px;
  width: 310px;
  z-index: 2;
}

.phone-secondary {
  height: 560px;
  left: 0;
  opacity: 0.68;
  top: 84px;
  transform: rotate(-4deg);
  width: 284px;
  z-index: 1;
}

.merchant {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 56px 24px;
  text-align: center;
}

.merchant-eyebrow {
  color: var(--sage);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.merchant h2 {
  color: #31403d;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(22px, 2.35vw, 30px);
  font-weight: 900;
  line-height: 1.12;
  margin: 0;
  white-space: nowrap;
}

.merchant p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 16px auto 24px;
  max-width: 680px;
}

.partner-page {
  padding: 40px 24px 72px;
}

.partner-hero,
.form-section {
  margin: 0 auto;
  max-width: 980px;
}

.partner-hero {
  padding: 18px 0 34px;
}

.partner-hero .brand {
  margin-bottom: 48px;
}

.partner-intro h1 {
  font-size: clamp(42px, 7vw, 78px);
  max-width: 880px;
}

.form-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(36, 48, 47, 0.08);
  padding: 28px;
}

.partner-form {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
}

.span-2 {
  grid-column: span 2;
}

input,
select,
textarea {
  appearance: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  padding: 14px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(82, 111, 102, 0.14);
  outline: none;
}

.partner-form button {
  background: var(--sage);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin-top: 24px;
  padding: 16px 22px;
}

.partner-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}

.admin-page .partner-intro h1 {
  max-width: 760px;
}

.admin-callout {
  align-items: center;
  background: var(--mist);
  border: 1px solid rgba(82, 111, 102, 0.18);
  border-radius: 10px;
  color: var(--sage);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1.45;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.admin-callout strong {
  color: var(--ink);
}

.admin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.check-option {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
}

.check-option input {
  accent-color: var(--sage);
  height: 18px;
  margin: 0;
  padding: 0;
  width: 18px;
}

.form-success {
  color: var(--sage);
  font-weight: 900;
}

.form-error {
  color: #9b4e3b;
  font-weight: 900;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  padding: 28px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 12px 0;
}

.site-footer a {
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer .legal-note {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 780px;
}

.legal-page {
  padding: 40px 24px 64px;
}

.legal-page .brand {
  margin: 0 auto 42px;
  max-width: 900px;
}

.legal-document {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(36, 48, 47, 0.08);
  margin: 0 auto;
  max-width: 900px;
  padding: 34px;
}

.legal-document h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.legal-document h2 {
  color: var(--ink);
  font-size: 22px;
  margin: 32px 0 10px;
}

.legal-document h3 {
  color: var(--sage);
  font-size: 16px;
  margin: 20px 0 8px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.legal-document ul {
  margin: 0;
  padding-left: 22px;
}

.effective-date {
  color: var(--sage);
  font-weight: 900;
  margin: 18px 0 26px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .phone-gallery {
    min-height: 560px;
    margin: 0 auto;
    max-width: 390px;
    width: 100%;
  }

  .phone-primary {
    height: 520px;
    right: 18px;
    width: 264px;
  }

  .phone-secondary {
    height: 470px;
    left: 0;
    top: 64px;
    width: 238px;
  }

  .merchant h2 {
    white-space: normal;
  }

  .brand-promise {
    display: flex;
  }

  .form-section {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .legal-document {
    padding: 22px;
  }
}
