/* ==========================================================================
   zap — zapyourphone.com
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/fraunces-zap-latin.woff2") format("woff2");
}

:root {
  --cream: #EFE8DC;
  --cream-light: #F7F2EA;
  --cream-deep: #E5DCCC;
  --cocoa: #3B2016;
  --cocoa-soft: #5A3A2D;
  --cocoa-muted: #7A6155;
  --line: rgba(59, 32, 22, 0.12);
  --line-strong: rgba(59, 32, 22, 0.22);
  --caramel: #A86B45;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --radius: 28px;
  --radius-sm: 18px;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(59, 32, 22, 0.05), 0 12px 32px -12px rgba(59, 32, 22, 0.18);
  --shadow-lg: 0 2px 4px rgba(59, 32, 22, 0.06), 0 30px 60px -24px rgba(59, 32, 22, 0.35);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--cocoa); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--cocoa);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.serif {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.045em;
  line-height: 0.8;
  text-transform: lowercase;
  text-decoration: none;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cocoa-muted);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1.5px solid var(--cocoa);
  background: var(--cocoa);
  color: var(--cream);
  font: 600 17px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 1px rgba(59, 32, 22, 0.1), 0 8px 20px -10px rgba(59, 32, 22, 0.5);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn .arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--cocoa-soft);
  border-color: var(--cocoa-soft);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(59, 32, 22, 0.08), 0 16px 30px -12px rgba(59, 32, 22, 0.55);
}

.btn:hover .arrow { transform: translateX(3px); }

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn--ghost {
  background: transparent;
  color: var(--cocoa);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--cocoa);
  color: var(--cream);
  border-color: var(--cocoa);
}

.btn--block { width: 100%; }

/* ---------- Load + reveal animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(30px) rotate(-10deg) scale(0.96); }
  to { opacity: 1; transform: rotate(-6deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ripple {
  0% { opacity: 0; transform: scale(0.6); }
  30% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.5); }
}

.fade-in {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms + 60ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Zapper card illustration ---------- */

.zapper {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 1.586;
}

.zapper__float {
  width: 100%;
  height: 100%;
  animation: float 6s ease-in-out 1.4s infinite;
}

.zapper__card {
  width: 100%;
  height: 100%;
  border-radius: 7%/11%;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-lg);
  animation: card-in 1.2s var(--ease) 0.25s both;
}

.zapper__card svg { width: 100%; height: 100%; border-radius: inherit; }

.zapper__glow {
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 250, 242, 0.95), rgba(255, 250, 242, 0));
}

.zapper__ripple {
  position: absolute;
  right: -6%;
  top: -12%;
  width: 34%;
  aspect-ratio: 1;
  pointer-events: none;
}

.zapper__ripple span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cocoa);
  opacity: 0;
  animation: ripple 3.2s var(--ease) infinite;
}

.zapper__ripple span:nth-child(2) { animation-delay: 1.07s; }
.zapper__ripple span:nth-child(3) { animation-delay: 2.13s; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__wordmark {
  display: block;
  font-size: clamp(112px, 34vw, 196px);
  margin: 0 0 0.34em -0.04em;
}

.hero__tagline {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(30px, 7.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero__tagline span { display: block; }
.hero__tagline span:last-child { color: var(--caramel); }

.hero__lede {
  font-size: 18px;
  color: var(--cocoa-soft);
  max-width: 30ch;
  margin: 0 0 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero__note {
  font-size: 14px;
  color: var(--cocoa-muted);
}

.hero__visual { padding: 10px 6% 0; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 120px; min-height: min(100vh, 860px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero__visual { padding: 0; }
  .zapper { width: min(100%, 440px); }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

@media (min-width: 900px) {
  .section { padding: 128px 0; }
}

.section__head { margin-bottom: 48px; max-width: 640px; }

.section__head p {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--cocoa-soft);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.step__num {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
}

.step__icon { width: 56px; height: 56px; color: var(--cocoa); }

.step h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.step p { margin: 0; color: var(--cocoa-soft); }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.app-store-badge {
  display: inline-block;
  margin-top: 22px;
  border-radius: 9px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.app-store-badge img { display: block; height: 44px; width: auto; }

.app-store-badge:hover { transform: translateY(-2px); }

/* ---------- Products ---------- */

.products-section { background: var(--cream-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.products {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .products { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

@media (hover: hover) {
  .product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}

.product__visual {
  display: grid;
  place-items: center;
  padding: 44px 18% 40px;
  background: radial-gradient(120% 90% at 50% 20%, #FBF7F0 0%, var(--cream-deep) 100%);
  border-bottom: 1px solid var(--line);
}

.product__visual svg {
  width: 100%;
  border-radius: 6.5%/10.5%;
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
  transition: transform 0.7s var(--ease);
}

@media (hover: hover) {
  .product:hover .product__visual svg { transform: rotate(-1deg) translateY(-4px); }
}

.product__visual--pvc svg { box-shadow: var(--shadow); }

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 26px 28px;
}

@media (min-width: 900px) {
  .product__body { padding: 34px 34px 34px; }
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--cream);
}

.badge--soft {
  background: transparent;
  color: var(--cocoa);
  border: 1px solid var(--line-strong);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.product h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.product__desc { margin: 0 0 22px; color: var(--cocoa-soft); }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 6px;
}

.price__now {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price__was {
  font-size: 18px;
  color: var(--cocoa-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.price__meta {
  font-size: 14px;
  color: var(--cocoa-muted);
  margin: 0 0 22px;
}

.note {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cocoa-soft);
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 22px;
}

.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.product__features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--cocoa-soft);
}

.product__features li { display: flex; gap: 10px; align-items: flex-start; }

.product__features svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

.product__buy { margin-top: auto; }

.product__fine {
  font-size: 13px;
  color: var(--cocoa-muted);
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- FAQ ---------- */

.faq-layout { display: grid; gap: 40px; }

@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .faq-layout .section__head { position: sticky; top: 40px; align-self: start; }
}

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 2px;
  background: var(--cocoa);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}

.faq__icon::after { transform: rotate(90deg); }

.faq summary:hover .faq__icon { border-color: var(--cocoa); }

.faq details[open] .faq__icon { background: var(--cocoa); border-color: var(--cocoa); }
.faq details[open] .faq__icon::before,
.faq details[open] .faq__icon::after { background: var(--cream); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }

.faq__answer {
  padding: 0 52px 26px 0;
  color: var(--cocoa-soft);
}

.faq__answer p { margin: 0; }

.faq details[open] .faq__answer { animation: rise 0.5s var(--ease) both; }

/* ---------- Closing CTA ---------- */

.closer {
  text-align: center;
  padding: 96px 0 104px;
}

.closer .section-title { margin: 0 auto 16px; max-width: 12ch; }

.closer p { margin: 0 auto 34px; color: var(--cocoa-soft); font-size: 18px; max-width: 32ch; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  font-size: 15px;
  color: var(--cocoa-soft);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer .wordmark { font-size: 40px; color: var(--cocoa); }

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
  padding-bottom: 2px;
}

.footer nav a:hover { color: var(--cocoa); background-size: 100% 1px; }

.footer small { font-size: 14px; color: var(--cocoa-muted); }

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Simple page header (tap, privacy) ---------- */

.topbar { padding: 26px 0; }

.topbar .wordmark { font-size: 44px; display: inline-block; }

/* ---------- Tap page ---------- */

.tap {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.tap__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0 64px;
}

.tap__inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.tap .zapper { width: min(78%, 320px); margin-bottom: 56px; }

.tap h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(44px, 12vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}

.tap__lede {
  font-size: 18px;
  color: var(--cocoa-soft);
  margin: 0 auto 36px;
  max-width: 34ch;
}

.tap__actions {
  display: grid;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

/* ---------- Privacy / prose ---------- */

.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px;
  margin: 0 0 40px;
}

.draft-banner strong { font-weight: 700; }

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 0 96px;
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(44px, 11vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.prose .meta { color: var(--cocoa-muted); font-size: 15px; margin: 0 0 32px; }

.prose .summary {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 10px;
  margin: 0 0 48px;
}

.prose .summary h2 { margin-top: 0; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
}

.prose h3 { font-size: 18px; margin: 28px 0 8px; }

.prose p, .prose li { color: var(--cocoa-soft); }

.prose ul { padding-left: 1.2em; }

.prose li { margin-bottom: 8px; }

.prose li::marker { color: var(--caramel); }

.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

.prose a:hover { color: var(--caramel); }

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

.btn--disabled,
.btn--disabled:hover {
  background: transparent;
  color: var(--cocoa-muted);
  border: 1.5px dashed var(--line-strong);
  box-shadow: none;
  transform: none;
  cursor: default;
}

/* ---------- Support page ---------- */

.support { text-align: center; padding-top: 48px; padding-bottom: 112px; }

.support h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(48px, 13vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.support__lede { font-size: 18px; color: var(--cocoa-soft); margin: 0 auto 40px; max-width: 32ch; }

.support__card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.support__email {
  display: inline-block;
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  word-break: break-word;
  margin-bottom: 14px;
}

.support__email:hover { color: var(--caramel); }

.support__time { margin: 0 0 26px; color: var(--cocoa-muted); font-size: 15px; }

.support__links { margin: 40px 0 0; font-size: 15px; color: var(--cocoa-soft); }

.support__links a { text-underline-offset: 3px; }

.product__compat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cocoa);
}

.product__compat svg { flex: none; width: 18px; height: 18px; }

.tap__hint {
  margin: 2px 0 6px;
  font-size: 14px;
  color: var(--cocoa-muted);
}
