@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --canvas: #fbf6ef;
  --surface: #ffffff;
  --plum: #5a1f41;
  --plum-deep: #35152c;
  --coral: #e66f61;
  --ink: #35252e;
  --muted: #74676d;
  --rule: #e7ddd5;
  --display: Georgia, "Times New Roman", serif;
  --body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--plum-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--surface);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--plum-deep);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
.section-inner,
.legal-main {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  border-bottom: 1px solid var(--rule);
}

.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { width: 42px; height: 42px; object-fit: contain; }
.site-header .wordmark {
  color: #2b2320;
  font-family: "Caveat", cursive;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1;
}
.wordmark-dot { color: #ff6f5e; }

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a,
.footer-nav a { text-decoration: none; }
.site-nav a:hover,
.footer-nav a:hover { color: var(--plum); }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }

.eyebrow {
  margin-bottom: 17px;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  width: var(--page);
  min-height: min(730px, calc(100vh - 88px));
  margin-inline: auto;
  padding: clamp(68px, 9vw, 135px) 0 clamp(94px, 12vw, 164px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(54px, 10vw, 150px);
}

.hero-copy { max-width: 670px; }
h1 { margin-bottom: 25px; font-size: clamp(3.15rem, 6vw, 5.8rem); }
h2 { margin-bottom: 20px; font-size: clamp(2.7rem, 4.8vw, 4.8rem); }

.hero-device-stack {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  height: 505px;
}

.hero-device-stack .phone-frame {
  position: absolute;
  transform-origin: bottom center;
  margin: 0;
}

.hero-device-primary {
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(48%, 240px);
  transform: translateX(-50%);
}

.hero-device-left {
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: min(44%, 220px);
  transform: translateX(-50%) translateX(-70px) rotate(-5deg);
}

.hero-device-right {
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: min(44%, 220px);
  transform: translateX(-50%) translateX(70px) rotate(5deg);
}

.hero-copy > p:not(.eyebrow),
.tour-section p:not(.eyebrow),
.closing p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 29px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  background: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 4px;
  box-shadow: 0 8px 16px rgb(90 31 65 / 14%);
  color: var(--plum-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-link:hover { background: #df695b; box-shadow: 0 11px 20px rgb(90 31 65 / 19%); color: var(--plum-deep); transform: translateY(-2px); }

.phone-frame {
  --phone-frame-padding: 7px;
  --phone-frame-radius: 34px;
  --phone-screen-radius: 28px;
  width: min(100%, 306px);
  margin-inline: auto;
  padding: var(--phone-frame-padding);
  background: var(--plum-deep);
  border: 1px solid #24101f;
  border-radius: var(--phone-frame-radius);
  box-shadow: 0 26px 48px rgb(53 21 44 / 17%), inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.phone-frame--compact {
  --phone-frame-padding: 5px;
  --phone-frame-radius: 30px;
  --phone-screen-radius: 26px;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 603 / 1311;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fffdf9 0, #f2e8de 78%);
  border-radius: var(--phone-screen-radius);
}

.phone-screen img { width: 70px; height: 70px; object-fit: contain; }

.phone-screen .app-screenshot { width: 100%; height: 100%; object-fit: cover; }

.phone-screen--mask-island::after {
  position: absolute;
  top: 1.25%;
  left: 33%;
  width: 34%;
  height: 5.25%;
  border-radius: 999px;
  background: #fbf6ee;
  content: "";
}

.section { position: relative; padding: clamp(78px, 10vw, 140px) 0; }

.tour-section {
  z-index: 1;
  margin-top: -42px;
  padding-top: clamp(104px, 12vw, 166px);
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.tour-section:nth-of-type(3),
.tour-section:nth-of-type(5) { background: #f7eee7; }

.tour-section .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 10vw, 148px);
}

.tour-section:nth-of-type(odd) .screen-showcase { order: -1; }
.tour-section:nth-of-type(odd) .section-inner > div { padding-left: clamp(0px, 4vw, 48px); }

.screen-showcase {
  position: relative;
  justify-self: center;
  width: min(100%, 220px);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.screen-showcase .phone-frame { width: min(100%, 220px); }

.closing {
  z-index: 2;
  margin-top: -42px;
  padding-top: clamp(112px, 13vw, 176px);
  background: var(--plum);
  color: var(--surface);
}

.closing .section-inner { max-width: 720px; margin-left: max(24px, calc((100vw - 1180px) / 2)); }
.closing .eyebrow { color: #ffd6cd; }
.closing h2 { max-width: 570px; }
.closing p:not(.eyebrow) { color: #f0dfe6; }
.closing-link { background: var(--surface); border-color: var(--surface); color: var(--plum); box-shadow: none; }
.closing-link:hover { background: #f5e9e3; }

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  background: var(--plum);
  box-shadow: 0 0 0 100vmax var(--plum);
  clip-path: inset(0 -100vmax);
}

.site-footer .footer-nav { color: #ead8df; }
.site-footer .footer-nav a:hover { color: var(--surface); }

.legal-main {
  max-width: 800px;
  padding: clamp(66px, 10vw, 120px) 0;
}

.legal-main h1 { margin-bottom: 26px; font-size: clamp(3.4rem, 7vw, 5.6rem); color: var(--plum-deep); }
.legal-main h2 { margin: 52px 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--plum); }
.legal-main h3 { margin: 30px 0 8px; color: var(--plum-deep); font-family: var(--body); font-size: 1rem; }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main a { color: var(--plum); }
.effective-date { color: var(--muted); font-size: 0.85rem; }
.notice { margin: 30px 0; padding: 22px; border-left: 3px solid var(--coral); background: var(--surface); color: var(--muted); }
.notice strong { color: var(--ink); }
.faq { padding: 24px 0; border-top: 1px solid var(--rule); }
.faq p { margin-bottom: 0; }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 520ms ease, transform 520ms ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-reveal:nth-child(1) { transition-delay: 0ms; }
.hero-reveal:nth-child(2) { transition-delay: 90ms; }
.hero-reveal:nth-child(3) { transition-delay: 180ms; }
.hero-reveal:nth-child(4) { transition-delay: 270ms; }

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(54px, 8vw, 84px);
  }
  .hero-copy { justify-self: center; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-device-stack { justify-self: center; width: min(100%, 650px); height: 460px; }
  .hero-device-primary { left: 50%; bottom: 0; width: min(38%, 220px); transform: translateX(-50%); }
  .hero-device-left { left: 50%; bottom: 0; width: min(36%, 210px); transform: translateX(-50%) translateX(-90px) rotate(-6deg); }
  .hero-device-right { left: 50%; bottom: 0; width: min(36%, 210px); transform: translateX(-50%) translateX(90px) rotate(6deg); }
}

@media (max-width: 720px) {
  :root { --page: min(100% - 36px, 540px); }
  .site-header { min-height: 76px; }
  .wordmark img { width: 37px; height: 37px; }
  .site-header .wordmark { font-size: 2.15rem; }
  .site-nav, .footer-nav { gap: 16px; font-size: 0.71rem; }
  .hero { min-height: 0; padding: 64px 0 105px; grid-template-columns: 1fr; gap: 54px; }
  h1 { font-size: clamp(2.9rem, 12.5vw, 4.4rem); }
  h2 { font-size: clamp(2.55rem, 11vw, 3.7rem); }
  .hero-device-stack { width: min(100%, 520px); height: clamp(380px, 90vw, 440px); }
  .hero-device-primary { left: 50%; bottom: 0; width: min(44%, 200px); transform: translateX(-50%); }
  .hero-device-left { left: 50%; bottom: 0; width: min(41%, 190px); transform: translateX(-50%) translateX(-72px) rotate(-5deg); }
  .hero-device-right { left: 50%; bottom: 0; width: min(41%, 190px); transform: translateX(-50%) translateX(72px) rotate(5deg); }
  .tour-section { margin-top: -24px; padding-top: 92px; }
  .tour-section .section-inner { grid-template-columns: 1fr; gap: 37px; }
  .tour-section:nth-of-type(odd) .screen-showcase { order: initial; }
  .tour-section:nth-of-type(odd) .section-inner > div { padding-left: 0; }
  .closing { margin-top: -24px; padding-top: 94px; }
  .closing .section-inner { width: var(--page); margin-inline: auto; }
  .site-footer { min-height: 0; align-items: flex-start; flex-direction: column; padding: 28px 0 36px; }
  .legal-main { padding: 64px 0 84px; }
}

@media (max-width: 520px) {
  .hero-device-stack { width: 100%; height: clamp(360px, 95vw, 420px); }
  .hero-device-primary { width: min(48%, 190px); }
  .hero-device-left { width: min(45%, 180px); transform: translateX(-50%) translateX(-58px) rotate(-5deg); }
  .hero-device-right { width: min(45%, 180px); transform: translateX(-50%) translateX(58px) rotate(5deg); }
}

@media (max-width: 420px) {
  .hero-device-stack { width: 100%; height: clamp(330px, 100vw, 390px); }
  .hero-device-primary { width: min(52%, 180px); }
  .hero-device-left { width: min(49%, 170px); transform: translateX(-50%) translateX(-40px) rotate(-5deg); }
  .hero-device-right { width: min(49%, 170px); transform: translateX(-50%) translateX(40px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }
}
