:root {
  --ink: #1d4a61;
  --lime: #a6ec41;
  --bg: #ffffff;
  --border: #1d4a61;
  --muted: #5a7a8a;
  --radius: 10px;
  --font-display: "Bagel Fat One", system-ui, sans-serif;
  --font-body: "Urbanist", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2.5rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.nav-left a {
  text-decoration: none;
}

.nav-left a:hover {
  opacity: 0.75;
}

.account-wrap {
  position: relative;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.account-btn .chevron {
  opacity: 0.8;
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 9rem;
  background: #fff;
  border: 1px solid #111;
  border-radius: 4px;
  padding: 0.35rem 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.account-menu[hidden] {
  display: none;
}

.account-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.account-menu a:hover {
  background: #f4f8fa;
  text-decoration: none;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo:hover {
  text-decoration: none;
}

.nav-spacer {
  /* balances the grid so logo stays centered */
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  gap: 1.5rem 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem 3.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.headline {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.35rem;
  max-width: 24rem;
}

.selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.selector-fulfillment.is-hidden {
  display: none !important;
}

.selector-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.selector-label .icon {
  flex-shrink: 0;
}

.selector select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.65rem 2.1rem 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231D4A61' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.selector select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.selector select option:disabled {
  color: #9aabb5;
}

.subtext {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 32rem;
}

.signup-form {
  max-width: 32rem;
}

.phone-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.country {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  white-space: nowrap;
  user-select: none;
}

.phone-row input[type="tel"] {
  flex: 1 1 10rem;
  min-width: 9rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.phone-row input[type="tel"]::placeholder {
  color: #9aabb5;
}

.phone-row input[type="tel"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.signup-btn {
  flex: 0 0 auto;
  padding: 0.7rem 1.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--lime);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.signup-btn:hover {
  filter: brightness(0.97);
}

.signup-btn:active {
  transform: translateY(1px);
}

.signup-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-message {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.form-message.ok {
  color: #1a7a3c;
}

.form-message.err {
  color: #b42318;
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.hero-phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(100%, 420px);
}

.hero-phone-float {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: transform;
}

.hero-phone-float picture,
.hero-phone-shadow picture {
  display: block;
  width: 100%;
}

.hero-phone-float img,
.hero-phone-shadow img {
  filter: none;
  box-shadow: none;
  -webkit-filter: none;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Separate 3D contact shadow asset, same canvas as phone */
.hero-phone-shadow {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: 50% 92%;
}

/* About / Contact */
.about,
.contact {
  border-top: 1px solid rgba(29, 74, 97, 0.12);
  padding: 3.5rem 2.5rem;
}

.section-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.about-layout {
  max-width: 52rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
}

.about-copy p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.about-figure {
  margin: 0;
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  max-height: 320px;
}

.section-inner h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
}

.section-inner p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.section-inner p.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Unsubscribe page */
.unsubscribe-page {
  padding: 2.5rem 2.5rem 4rem;
}

.unsubscribe-headline {
  margin-bottom: 1rem;
}

.unsubscribe-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  max-width: 34rem;
}

.unsubscribe-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.field-hint {
  font-weight: 500;
  color: var(--muted);
}

.unsubscribe-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  resize: vertical;
  min-height: 6rem;
}

.unsubscribe-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.unsubscribe-form .phone-row {
  flex-wrap: nowrap;
}

.unsubscribe-submit {
  align-self: flex-start;
}

.unsubscribe-alt {
  margin-top: 2rem;
}

/* Floating donate control — bottom-right only */
.donate-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  top: auto;
  z-index: 2147483647;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0;
  transform: none;
  inset: auto 1.25rem 1.25rem auto;
}

.donate-fab-toggle {
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(29, 74, 97, 0.25);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(29, 74, 97, 0.14);
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.donate-fab-toggle:hover {
  filter: brightness(0.98);
  box-shadow: 0 10px 28px rgba(29, 74, 97, 0.18);
}

.donate-fab-toggle[aria-expanded="true"] {
  background: var(--lime);
  border-color: transparent;
}

.donate-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 8.5rem;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid rgba(29, 74, 97, 0.18);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(29, 74, 97, 0.14);
}

.donate-fab-menu[hidden] {
  display: none;
}

.donate-link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.donate-link:hover {
  background: #f4f8fa;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid rgba(29, 74, 97, 0.12);
  padding: 1.5rem 2.5rem 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-blessing {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-float,
  .hero-phone-shadow {
    will-change: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.25rem;
  }

  .nav-left {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .nav-spacer {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 2.5rem;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
    margin: 0 auto;
  }

  .selectors {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .signup-form {
    margin: 0 auto;
  }

  .phone-row {
    justify-content: center;
  }

  .hero-phone {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-phone-stage {
    width: min(100%, 340px);
  }

  .about,
  .contact {
    padding: 2.5rem 1.25rem;
    text-align: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-figure {
    order: -1;
  }

  .unsubscribe-page {
    padding: 2rem 1.25rem 3.5rem;
    text-align: center;
  }

  .unsubscribe-form {
    margin: 0 auto;
    text-align: left;
  }

  .unsubscribe-submit {
    width: 100%;
  }

  .donate-fab {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

@media (max-width: 520px) {
  .selectors {
    grid-template-columns: 1fr;
  }

  .phone-row {
    flex-direction: column;
  }

  .signup-btn {
    width: 100%;
  }

  .headline {
    font-size: 1.85rem;
  }
}

/* fulfillment fully removed from UI */
.selector-fulfillment, [data-fulfillment], #theme, #fulfillment { display: none !important; }

/* Nav Donate link */
.nav-donate {
  color: #007AFF !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.nav-donate:hover {
  text-decoration: underline !important;
}

/* Donate FAB: extreme bottom-right iMessage blue, never covered */
#donateFab.donate-fab,
.donate-fab {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
  right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
  inset: auto max(1.25rem, env(safe-area-inset-right, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px)) auto !important;
  z-index: 2147483647 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  margin: 0 !important;
  float: none !important;
}
#donateFab .donate-fab-toggle,
.donate-fab-toggle {
  background: rgba(0, 122, 255, 0.16) !important;
  color: #007AFF !important;
  border: 1.5px solid rgba(0, 122, 255, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.22) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
}
#donateFab .donate-fab-toggle:hover,
#donateFab .donate-fab-toggle[aria-expanded="true"],
.donate-fab-toggle:hover,
.donate-fab-toggle[aria-expanded="true"] {
  background: rgba(0, 122, 255, 0.25) !important;
  color: #007AFF !important;
}
#donateFab .donate-fab-menu,
.donate-fab-menu {
  background: #fff !important;
  border: 1px solid rgba(0, 122, 255, 0.25) !important;
}
#donateFab .donate-link,
.donate-link {
  color: #007AFF !important;
}
@media (max-width: 900px) {
  #donateFab.donate-fab,
  .donate-fab {
    left: auto !important;
    top: auto !important;
    right: max(0.85rem, env(safe-area-inset-right, 0px)) !important;
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px)) !important;
    inset: auto max(0.85rem, env(safe-area-inset-right, 0px)) max(0.85rem, env(safe-area-inset-bottom, 0px)) auto !important;
  }
}
