* {
  box-sizing: border-box;
}

:root {
  --anchor-offset: 72px;
  --site-background: linear-gradient(135deg, #e8f7fc 0%, #edf9f5 52%, #f3fae9 100%);
  --site-glow:
    radial-gradient(ellipse 90% 74% at -8% 4%, rgba(90, 230, 240, 0.18) 0%, rgba(90, 230, 240, 0.1) 38%, rgba(90, 230, 240, 0.035) 62%, rgba(90, 230, 240, 0) 82%),
    radial-gradient(ellipse 88% 76% at 108% 32%, rgba(155, 235, 165, 0.15) 0%, rgba(184, 238, 126, 0.085) 40%, rgba(220, 240, 90, 0.028) 65%, rgba(220, 240, 90, 0) 84%);
  /* Allow height/block-size to transition to and from `auto` (used by the
     FAQ open/close animation). Ignored by browsers that don't support it. */
  interpolate-size: allow-keywords;
}

html {
  color-scheme: light;
  background: var(--site-background);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset, 88px);
}

body {
  background: transparent;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  position: relative;
}

body::before {
  background: var(--site-glow);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body::after {
  background: linear-gradient(135deg, #d7fcfc 0%, #e5f9e4 58%, #f5f9cf 100%);
  content: "";
  inset: 0;
  mask-image: url("assets/grain-texture.png");
  mask-mode: luminance;
  mask-repeat: repeat;
  mask-size: 512px 512px;
  mix-blend-mode: screen;
  opacity: 0.36;
  pointer-events: none;
  position: fixed;
  -webkit-mask-image: url("assets/grain-texture.png");
  -webkit-mask-repeat: repeat;
  -webkit-mask-size: 512px 512px;
  z-index: 0;
}

body.nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  /* JS pins the body at its current scroll offset (top: -scrollY) so the page
     behind the menu can't drift, and reserves the now-fixed header's height
     (padding-top) so nothing shifts. Both are cleared on close. */
  padding-top: var(--nav-lock-pad, 0px);
}

/* While the full-screen menu overlay is open, pin the header (the scroll
   lock above otherwise drops its sticky positioning) and drop its glass so
   the logo and close button sit cleanly on the solid overlay. The glass is
   untouched on desktop/tablet, where the menu never opens. */
body.nav-open .site-header {
  position: fixed;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header,
main,
.footer,
.mobile-nav {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
label,
.faq-question,
.nav-links,
.header-cta,
.primary-button,
.footer {
  font-family: var(--ui-font, "Lexend", "Helvetica Neue", Arial, sans-serif);
}

.skip-link {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--navy);
  font-family: var(--ui-font);
  font-weight: 700;
  left: 16px;
  padding: 10px 16px;
  position: absolute;
  top: -100px;
  transition: top 160ms ease;
  z-index: 50;
}

.skip-link:focus {
  top: 14px;
}

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

.site-header {
  align-items: center;
  background: rgba(227, 244, 251, 0.32);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  transition:
    padding 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
  z-index: 40;
}

.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: none;
  padding-bottom: 11px;
  padding-top: 11px;
}

.brand {
  align-items: center;
  display: inline-flex;
  line-height: 0;
  min-width: max-content;
}

.brand-lockup {
  display: block;
  height: 32px;
  width: auto;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.6vw, 32px);
  justify-content: center;
}

/* Centre the nav in the header regardless of the brand on the left, so it stays
   visually centred now that there is no right-hand header button. */
@media (min-width: 901px) {
  .nav-links {
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a::after {
  background: var(--navy);
  border-radius: 999px;
  bottom: 2px;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.38);
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.header-cta,
.primary-button {
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 0;
  border-radius: var(--radius-button, 14px);
  background-clip: padding-box;
  box-shadow: none;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 0 24px;
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.header-cta:hover,
.primary-button:hover {
  background: var(--navy);
  box-shadow: 0 10px 20px rgba(8, 30, 43, 0.12);
  color: var(--white);
  transform: translateY(-2px);
}

.header-cta {
  background: var(--navy);
  border: 1.5px solid var(--navy);
  color: var(--white);
  min-height: 44px;
}

.header-cta:hover {
  background: var(--ink);
}

.primary-button {
  min-height: 52px;
  padding: 0 26px;
}

.header-cta:focus-visible,
.primary-button:focus-visible,
.nav-links a:focus-visible,
.social-link:focus-visible,
.skip-link:focus-visible,
.nav-toggle:focus-visible,
.faq-question:focus-visible {
  box-shadow: 0 0 0 4px rgba(8, 126, 139, 0.2);
  outline: 2px solid rgba(8, 126, 139, 0.6);
  outline-offset: 3px;
}

/* Hamburger + mobile nav -------------------------------------------------- */

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 42px;
  justify-content: center;
  transition:
    background-color 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 42px;
}

.nav-toggle:hover {
  background: transparent;
  transform: translateY(-1px);
}

.nav-toggle-bar {
  background: var(--navy);
  border-radius: 999px;
  height: 2.5px;
  transition:
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 22px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav {
  background:
    linear-gradient(180deg, #e8f7fc 0%, #eefafd 55%, var(--page-background) 100%);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 82px) clamp(22px, 6vw, 44px) 40px;
  position: fixed;
  right: 0;
  top: 0;
  transition: visibility 0s linear 300ms;
  visibility: hidden;
  z-index: 30;
}

.mobile-nav.is-open {
  transition-delay: 0s;
  visibility: visible;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-18px);
  transition:
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.is-open nav {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  border-radius: 12px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 18px 4px;
}

.mobile-nav nav > a {
  border-bottom: 1px solid rgba(8, 30, 43, 0.08);
  border-radius: 0;
}

.mobile-nav a:hover {
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Shared layout ----------------------------------------------------------- */

.hero,
.section,
.footer,
.cta-band {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.section {
  padding-bottom: clamp(56px, 8vw, 104px);
  padding-top: clamp(8px, 1.6vw, 18px);
}

.product-steps {
  padding-bottom: clamp(72px, 9vw, 116px);
  padding-top: clamp(30px, 4vw, 56px);
  position: relative;
}

.product-steps .section-heading {
  margin-bottom: clamp(38px, 5vw, 58px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  color: var(--aqua);
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.pill-eyebrow {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: saturate(1.25) blur(10px);
  -webkit-backdrop-filter: saturate(1.25) blur(10px);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: none;
  color: var(--navy);
  display: inline-block;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  padding: 9px 16px;
  text-transform: uppercase;
}

h1 {
  color: var(--navy);
  font-family: var(--display-font);
  font-size: var(--type-display);
  font-weight: var(--type-display-weight);
  letter-spacing: 0;
  line-height: var(--type-display-line-height);
  margin-bottom: 22px;
  text-wrap: balance;
}

#hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  max-width: 650px;
}

.rotating-slogan {
  display: grid;
  grid-template-rows: repeat(3, 1em);
  min-height: 3em;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slogan-line {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.rotating-slogan.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

h2 {
  color: var(--navy);
  font-family: var(--display-font);
  font-size: var(--type-heading-2);
  font-weight: var(--type-display-weight);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}

h3 {
  color: var(--navy);
  font-family: var(--display-font);
  font-size: var(--type-heading-3);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 8px;
}

.steps h3 {
  font-size: clamp(1.1rem, 2.1vw, 1.2rem);
}

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

.hero {
  align-items: start;
  display: grid;
  column-gap: clamp(40px, 4vw, 72px);
  row-gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.92fr);
  isolation: isolate;
  padding-bottom: clamp(48px, 7vw, 92px);
  padding-top: clamp(96px, 12vh, 140px);
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: var(--type-body-large);
  margin-bottom: 0;
  max-width: 540px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}

.coming-soon-badge {
  align-items: center;
  background: var(--navy);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 20px rgba(8, 30, 43, 0.12);
  color: var(--white);
  display: inline-flex;
  font-family: var(--ui-font);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 750;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  min-height: 64px;
  padding: 0 38px;
}

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

.hero-stage {
  align-self: start;
  display: flex;
  justify-content: center;
  min-width: 0;
  position: relative;
  padding-top: clamp(18px, 3vh, 44px);
  z-index: 1;
}

.hero-wash {
  background: radial-gradient(58% 50% at 50% 48%, rgba(90, 230, 240, 0.16), transparent 72%);
  inset: -8% -10%;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.chat-thread {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: min(420px, 100%);
  z-index: 1;
}

.msg {
  animation: chatBubbleIn 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  display: flex;
  position: relative;
}

.msg:nth-child(2) {
  animation-delay: 90ms;
}

.msg:nth-child(3) {
  animation-delay: 180ms;
}

.msg:nth-child(4) {
  animation-delay: 270ms;
}

.msg:nth-child(5) {
  animation-delay: 360ms;
}

.msg-out {
  justify-content: flex-end;
}

.message-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.msg-out .message-content {
  align-items: flex-end;
}

.sender-name {
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin: 0 10px 3px;
}

.bubble {
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  border-radius: 17px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 7px 18px rgba(8, 30, 43, 0.07);
  color: var(--navy);
  font-family: var(--ui-font);
  font-size: clamp(0.92rem, 1.35vw, 0.99rem);
  font-weight: 400;
  line-height: 1.36;
  max-width: 100%;
  padding: 10px 14px;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition:
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg-in .bubble {
  border-bottom-left-radius: 7px;
}

.msg-out .bubble {
  border-top-right-radius: 6px;
}

.bubble-cyan {
  background: rgba(235, 250, 253, 0.76);
}

.bubble-mint {
  background: #d7fcfc;
}

.bubble-lime {
  background: rgba(229, 246, 210, 0.8);
}

/* Section heading --------------------------------------------------------- */

.section-heading {
  margin: 0 auto clamp(30px, 4vw, 46px);
  max-width: 720px;
  text-align: center;
}


.section-heading h2 {
  font-size: var(--type-heading-2);
  margin-bottom: 12px;
}

.balanced-heading span {
  display: inline-block;
}

.section-heading > p {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: var(--type-body-large);
  margin: 0 auto;
  max-width: 620px;
}

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

.product-steps .section-heading {
  max-width: 960px;
}

.product-steps .section-heading > p {
  max-width: 720px;
}

.steps {
  display: grid;
  gap: clamp(38px, 6vw, 66px);
  list-style: none;
  margin: 0 auto;
  max-width: 920px;
  padding: 0;
  position: relative;
}

.steps::before {
  border-left: 2px dashed rgba(15, 156, 175, 0.28);
  bottom: 40px;
  content: "";
  left: 50%;
  position: absolute;
  top: 40px;
}

.step-row {
  align-items: center;
  display: grid;
  gap: clamp(26px, 6vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
}

.step-row:nth-child(even) .step-visual {
  order: 2;
}

.step-visual {
  min-width: 0;
}

.step-copy {
  min-width: 0;
}

.step-number {
  color: rgba(15, 156, 175, 0.55);
  display: block;
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.step-preview {
  background: var(--step-card);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(8, 30, 43, 0.035);
  color: var(--navy);
  display: flex;
  overflow: hidden;
  padding: 22px 24px;
  position: relative;
}

.step-preview strong {
  display: block;
  font-family: var(--ui-font);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.step-preview-idea {
  align-items: center;
  gap: 15px;
}

.preview-icon-tile {
  align-items: center;
  background: transparent;
  border-radius: 14px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.preview-body {
  min-width: 0;
}

.step-preview-icon {
  flex: 0 0 auto;
  height: 38px;
  object-fit: contain;
  position: relative;
  width: 38px;
  z-index: 1;
}

.preview-label {
  color: var(--muted);
  display: block;
  font-family: var(--ui-font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.preview-meta {
  align-items: center;
  color: rgba(105, 126, 139, 0.9);
  display: flex;
  font-family: var(--ui-font);
  font-size: 0.74rem;
  font-weight: 550;
  gap: 6px;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.step-preview-dates {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
}

.step-preview-dates .preview-label {
  position: relative;
  z-index: 1;
}

.date-options {
  display: flex;
  gap: 9px;
  margin: 0;
  width: 100%;
  z-index: 1;
}

.date-options > span {
  align-items: center;
  background: var(--date-unselected);
  border: 0;
  border-radius: 14px;
  color: var(--navy);
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  min-width: 0;
  min-height: 64px;
  padding: 9px 5px 8px;
}

.date-options small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.date-options > span > span {
  font-size: 0.86rem;
  white-space: nowrap;
}

.date-options .date-best {
  background: linear-gradient(145deg, rgba(203, 247, 212, 0.72), rgba(229, 244, 173, 0.66));
  box-shadow: 0 6px 14px rgba(8, 30, 43, 0.055);
  color: var(--navy);
  transform: translateY(-2px);
}

.date-options .date-best small {
  color: var(--navy);
}

.date-options em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  margin-top: 4px;
  white-space: nowrap;
}

.date-options .date-best em {
  color: var(--navy);
}

.step-preview-confirmed {
  align-items: center;
  gap: 15px;
}

.confirmation-copy .preview-label {
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.confirmation-copy .preview-time {
  color: var(--muted);
  display: block;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.preview-people {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.preview-people .preview-meta {
  margin-top: 0;
}

.preview-avatars {
  display: inline-flex;
}

.avatar {
  align-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  font-family: var(--ui-font);
  font-size: 0.6rem;
  font-weight: 700;
  height: 23px;
  justify-content: center;
  line-height: 1;
  width: 23px;
}

.avatar + .avatar {
  margin-left: -7px;
}

.avatar-cyan {
  background: var(--wash-cyan-strong);
}

.avatar-mint {
  background: var(--wash-mint);
}

.avatar-lime {
  background: var(--avatar-lime);
}

.confirmation-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 34px;
}

.steps h3 {
  margin-bottom: 6px;
  margin-top: 0;
}

.steps p {
  color: var(--muted);
  font-family: var(--body-font);
  margin-bottom: 0;
}

/* Moments - polaroid strip ------------------------------------------------ */

.moments {
  overflow: visible;
  padding-top: clamp(28px, 5vw, 62px);
}

.moments .section-heading {
  max-width: 780px;
}

.faq {
  padding-top: clamp(42px, 5.5vw, 78px);
}

.film-strip {
  display: flex;
  gap: clamp(14px, 1.8vw, 20px);
  list-style: none;
  margin: 0;
  margin-inline: calc(50% - 50vw);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 18px clamp(16px, 3.5vw, 48px) 34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 30, 43, 0.22) transparent;
  -webkit-overflow-scrolling: touch;
}

.strip-hint {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-family: var(--ui-font);
  font-size: 0.8rem;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
}

.strip-hint::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  display: inline-block;
  height: 7px;
  transform: rotate(-45deg);
  width: 7px;
}

.polaroid {
  --tilt: -1.05deg;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(8, 30, 43, 0.06);
  flex: 0 0 auto;
  padding: 13px 13px 16px;
  transform: rotate(var(--tilt));
  transform-origin: center bottom;
  transition:
    box-shadow 360ms ease,
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
  width: min(268px, 72vw);
}

.polaroid:nth-child(even) {
  --tilt: 0.95deg;
}

.polaroid-photo {
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  display: block;
  overflow: hidden;
}

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

.polaroid-caption {
  color: var(--navy);
  font-family: var(--ui-font);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.24;
  margin: 14px 4px 0;
  text-align: center;
}

.polaroid-placeholder {
  background: #f9fcff;
  border: 0;
}

.polaroid-placeholder .polaroid-photo {
  align-items: center;
  background:
    linear-gradient(150deg, rgba(90, 230, 240, 0.14), rgba(155, 235, 165, 0.12) 55%, rgba(220, 240, 90, 0.16));
  display: flex;
  justify-content: center;
  padding: 18px;
}

.polaroid-empty {
  color: var(--navy);
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.78;
  text-align: center;
  text-wrap: balance;
}

.polaroid-placeholder .polaroid-caption {
  color: var(--muted);
}

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

.faq .section-heading,
.faq-list {
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
}

.faq .section-heading > p a {
  color: var(--aqua);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(244, 253, 255, 0.34)),
    rgba(255, 255, 255, 0.34);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border: 0;
  border-radius: var(--radius);
  padding: 0 22px;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.faq-item:hover,
.faq-item.is-open {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(244, 253, 255, 0.42)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 12px rgba(8, 30, 43, 0.045);
}

.faq-question {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #3f687a;
  cursor: pointer;
  display: flex;
  font-size: 1.08rem;
  font-weight: 500;
  gap: 16px;
  justify-content: space-between;
  padding: 20px 0;
  text-align: left;
  width: 100%;
}

.faq-question::after {
  border-bottom: 2px solid #78909b;
  border-right: 2px solid #78909b;
  content: "";
  flex: none;
  height: 8px;
  margin-right: 3px;
  transform: rotate(45deg);
  transition: transform 200ms ease;
  width: 8px;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

/* Grid-row interpolation gives the accordion a reliable auto-height
   transition across desktop, tablet and mobile browsers. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  color: #3f687a;
  font-family: var(--body-font);
  margin-bottom: 0;
  padding-bottom: 20px;
}

.faq-answer a {
  color: var(--aqua);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA band ---------------------------------------------------------------- */

.cta-band {
  margin-bottom: clamp(44px, 6vw, 78px);
}

.cta-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: clamp(34px, 6vw, 64px) 0;
  position: relative;
  text-align: center;
}

.cta-inner .eyebrow {
  color: var(--aqua);
  opacity: 1;
}

.cta-inner h2 {
  color: var(--navy);
  margin-bottom: 14px;
}

.cta-inner > p {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: var(--type-body-large);
  margin: 0 auto 26px;
  max-width: 560px;
}

.cta-button {
  background: var(--navy);
  border: 0;
  box-shadow: none;
  color: var(--white);
  font-size: clamp(1rem, calc(0.97rem + 0.1vw), 1.05rem);
  min-height: clamp(52px, calc(49px + 0.7vw), 58px);
  padding-left: clamp(26px, calc(21px + 1vw), 34px);
  padding-right: clamp(26px, calc(21px + 1vw), 34px);
}

.cta-button:hover,
.cta-button:visited,
.cta-button:focus,
.cta-button:active {
  background: var(--navy);
  border: 0;
  box-shadow: 0 10px 20px rgba(8, 30, 43, 0.12);
  color: var(--white);
}

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

.footer {
  align-items: end;
  border-top: 0;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  margin-top: 8px;
  padding-bottom: 18px;
  padding-top: 36px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand a {
  display: inline-block;
}

.footer p {
  color: var(--muted);
  font-family: var(--body-font);
  margin-bottom: 0;
}

.footer-lockup {
  display: block;
  height: 30px;
  margin-bottom: 8px;
  width: auto;
}

.footer-links {
  align-items: end;
  column-gap: clamp(14px, 2vw, 18px);
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  justify-content: flex-end;
  row-gap: 12px;
}

.footer-nav,
.footer-socials {
  align-items: center;
  display: inline-flex;
}

.footer-nav {
  column-gap: clamp(14px, 2vw, 18px);
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 400;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--aqua);
}

.footer-socials {
  gap: 12px;
  white-space: nowrap;
}

.social-link {
  align-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  width: 40px;
}

.social-link svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.social-link:hover {
  background: rgba(90, 230, 240, 0.18);
  transform: translateY(-1px);
}

/* Blog ------------------------------------------------------------------- */

.blog-index,
.blog-post-page {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.blog-index {
  padding-bottom: clamp(72px, 9vw, 116px);
}

.blog-hero {
  margin: 0 auto;
  max-width: 820px;
  padding: clamp(64px, 10vw, 118px) 0 clamp(48px, 7vw, 78px);
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.blog-hero > p:last-child {
  color: var(--muted);
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  margin: 0 auto;
  max-width: 640px;
}

.blog-feed {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  margin: 0 auto;
  max-width: 960px;
}

.blog-feed > h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  margin-bottom: -4px;
}

.blog-card {
  margin: 0;
}

.blog-card-link {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(16, 39, 50, 0.06);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  transition:
    box-shadow 240ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card-link:hover {
  box-shadow: 0 18px 38px rgba(16, 39, 50, 0.1);
  transform: translateY(-4px);
}

.blog-card-link:focus-visible,
.blog-back-link:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 5px;
}

.blog-card-art {
  min-height: 350px;
  overflow: hidden;
  position: relative;
}

.blog-card-art img,
.blog-post-hero img {
  animation: blog-image-reveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@keyframes blog-image-reveal {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.blog-card-copy {
  align-self: center;
  padding: clamp(32px, 5vw, 58px);
}

.blog-date {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.blog-card-copy .blog-date {
  margin-bottom: 14px;
}

.blog-card-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.blog-card-copy > p {
  color: var(--muted);
  font-size: clamp(0.94rem, 1vw, 1rem);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-read-link {
  color: var(--navy);
  font-weight: 600;
}

.blog-read-link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.blog-card-link:hover .blog-read-link span {
  transform: translateX(4px);
}

.blog-post-page {
  padding-bottom: clamp(72px, 9vw, 116px);
  padding-top: clamp(42px, 7vw, 82px);
}

.blog-post {
  margin: 0 auto;
  max-width: 820px;
}

.blog-post-header {
  margin-bottom: clamp(42px, 6vw, 64px);
}

.blog-back-link {
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 8px;
  margin-bottom: clamp(44px, 7vw, 72px);
  transition: color 160ms ease;
}

.blog-back-link:hover {
  color: var(--navy);
}

.blog-post-header h1 {
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.08;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  text-align: center;
  text-wrap: balance;
}

.blog-post-hero {
  aspect-ratio: 16 / 7;
  margin: 0 auto clamp(46px, 7vw, 72px);
  max-width: 820px;
  overflow: hidden;
}

.blog-post-hero img {
  object-position: center 42%;
}

.blog-post-body {
  margin: 0 auto;
  max-width: 700px;
}

.blog-post-body p {
  color: var(--text);
  font-size: clamp(0.94rem, 1vw, 1.06rem);
  line-height: 1.68;
  margin-bottom: 24px;
}

.blog-post-body a {
  color: var(--navy);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--aqua);
  margin: 8px 0 28px;
  padding: 2px 0 2px clamp(18px, 3vw, 28px);
}

.blog-post-body blockquote p {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 560;
  margin: 0;
}

.blog-post-body ul {
  display: grid;
  gap: 14px;
  margin: 6px 0 28px;
  padding-left: 24px;
}

.blog-post-body li {
  color: var(--text);
  font-size: clamp(0.94rem, 1vw, 1.06rem);
  line-height: 1.62;
  padding-left: 4px;
}

.blog-post-body section {
  padding-top: clamp(34px, 5vw, 52px);
}

.blog-post-body h2 {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 20px;
}

.blog-post-footer {
  border-top: 1px solid rgba(16, 39, 50, 0.16);
  margin-top: clamp(42px, 6vw, 64px);
  padding-top: 22px;
}

/* Legal pages ------------------------------------------------------------- */

.legal-page {
  margin: clamp(24px, 4vw, 46px) auto clamp(34px, 6vw, 72px);
  max-width: 820px;
  padding: clamp(30px, 6vw, 58px) clamp(20px, 5vw, 58px) clamp(38px, 6vw, 72px);
}

.legal-page a {
  color: var(--aqua);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page h1 {
  margin-bottom: 18px;
}

.legal-page h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 10px;
}

.legal-page h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  margin-top: 18px;
}

.legal-page section {
  border-top: 0;
  padding: 30px 0 0;
}

.legal-page p,
.legal-page li {
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.02rem;
  line-height: 1.62;
}

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

.legal-page li {
  margin-bottom: 8px;
}

.legal-intro {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  margin-bottom: 8px;
}

.legal-updated {
  border-top: 0;
  color: var(--muted);
  margin-top: 30px;
  padding-top: 20px;
}

/* Scroll reveal ----------------------------------------------------------- */

html.js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-stagger {
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .polaroid.polaroid-reveal {
    opacity: 0;
    transform: translateX(24px) rotate(var(--tilt));
    transition:
      box-shadow 360ms ease,
      opacity 420ms ease,
      transform 560ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  html.js .polaroid.polaroid-reveal.is-visible {
    opacity: 1;
    transform: translateX(0) rotate(var(--tilt));
  }

  html.js .polaroid.polaroid-reveal .polaroid-photo img {
    opacity: 0;
    transform: scale(1.025);
    transition:
      opacity 360ms ease,
      transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  html.js .polaroid.polaroid-reveal.is-image-ready .polaroid-photo img {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html.js .product-steps .section-heading.reveal,
  html.js .steps .step-row.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 560ms ease,
      transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js .product-steps .section-heading.reveal.is-visible,
  html.js .steps .step-row.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .bubble:hover {
    box-shadow: 0 8px 16px rgba(8, 30, 43, 0.08);
    transform: translate3d(0, -2px, 0) scale(1.01);
  }

  .polaroid:hover,
  html.js .polaroid.polaroid-reveal.is-visible:hover {
    box-shadow: 0 8px 16px rgba(8, 30, 43, 0.08);
    transform: rotate(calc(var(--tilt) * 0.55)) translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    transition: none;
  }

  .bubble:hover {
    transform: none;
  }
}

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

@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    padding-bottom: clamp(40px, 6vh, 64px);
    padding-top: clamp(84px, 12vh, 120px);
  }

  .moments {
    padding-top: 36px;
  }

  .moments .section-heading {
    margin-bottom: 20px;
  }

  .moments .section-heading h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  }

  .moments .section-heading > p {
    font-size: 1.05rem;
  }

  .film-strip {
    padding-top: 14px;
  }

  .polaroid {
    padding: 10px 10px 13px;
    width: min(224px, 72vw);
  }

  .polaroid-caption {
    font-size: 0.86rem;
    margin-top: 10px;
  }
}

@media (min-width: 1101px) and (max-width: 1200px) {
  #hero-title {
    font-size: clamp(2.9rem, 4.3vw, 3.2rem);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero {
    column-gap: clamp(32px, 4vw, 48px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  }

  #hero-title {
    font-size: clamp(2.7rem, 4.3vw, 3.08rem);
  }

  .hero-stage {
    padding-top: clamp(10px, 1.5vh, 18px);
  }
}

@media (min-width: 901px) and (max-width: 980px) {
  .hero {
    gap: 40px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: clamp(44px, 7vw, 72px);
    padding-top: clamp(48px, 7vw, 72px);
    text-align: center;
  }

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

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stage {
    padding-top: 0;
    text-align: left;
  }
}

@media (max-width: 900px) {
  :root {
    --anchor-offset: 80px;
    --site-background: linear-gradient(180deg, #e8f7fc 0%, #eefafd 56%, #edf9f5 80%, #f3fae9 100%);
    --site-glow:
      radial-gradient(160% 105svh at -28% 10svh, rgba(90, 230, 240, 0.15) 0%, rgba(90, 230, 240, 0.09) 48%, rgba(90, 230, 240, 0.03) 72%, rgba(90, 230, 240, 0) 90%),
      radial-gradient(150% 105svh at 128% 54svh, rgba(155, 235, 165, 0.13) 0%, rgba(190, 238, 125, 0.075) 50%, rgba(220, 240, 90, 0.025) 74%, rgba(220, 240, 90, 0) 90%);
  }

  html {
    background: var(--site-background);
    scroll-padding-top: var(--anchor-offset);
  }

  body::before {
    background: var(--site-glow);
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    gap: 40px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: clamp(44px, 7vw, 72px);
    padding-top: clamp(28px, 5vw, 44px);
    text-align: center;
  }

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

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stage {
    padding-top: 0;
    text-align: left;
  }

  .steps {
    gap: 30px;
    margin: 0 auto;
    max-width: 560px;
    padding: 0 18px;
  }

  .steps::before {
    display: none;
  }

  .step-row {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .step-copy {
    order: 1;
  }

  .step-visual,
  .step-row:nth-child(even) .step-visual {
    order: 2;
  }

  .step-number {
    font-size: 1.72rem;
    margin-bottom: 6px;
  }

  .product-steps {
    padding-bottom: 60px;
    padding-top: 24px;
  }

  .product-steps .section-heading {
    margin-bottom: 28px;
  }

  main > .section,
  main > .cta-band {
    position: relative;
  }

  main > .section::before,
  main > .cta-band::before {
    background: rgba(8, 30, 43, 0.13);
    content: "";
    height: 1px;
    left: clamp(30px, 8vw, 44px);
    position: absolute;
    right: clamp(30px, 8vw, 44px);
    top: 0;
  }

  .step-preview {
    background: var(--step-card);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(8, 30, 43, 0.035);
    overflow: hidden;
    padding: 16px 18px;
  }

  .step-preview-dates {
    gap: 8px;
    padding: 14px 16px;
  }

  .date-options {
    max-width: none;
    width: 100%;
  }

  .date-options > span {
    min-height: 54px;
    padding-bottom: 7px;
    padding-top: 7px;
  }

  .steps p {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .strip-hint {
    display: inline-flex;
  }

}

@media (max-width: 620px) {
  .blog-card-link {
    grid-template-columns: 1fr;
  }

  .blog-card-art {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .primary-button {
    width: auto;
  }

  .film-strip {
    gap: 14px;
    padding-bottom: 28px;
  }

  .polaroid {
    padding: 9px 9px 12px;
    width: min(238px, 62vw);
  }

  .polaroid-caption {
    font-size: 0.82rem;
    margin-top: 9px;
  }

}

@media (max-width: 560px) {
  :root {
    --anchor-offset: 70px;
  }

  .site-header {
    gap: 12px;
    padding: 12px 18px;
  }

  .brand-lockup {
    height: 30px;
  }

  #hero-title {
    font-size: clamp(1.68rem, 8.5vw, 2.55rem);
    max-width: 100%;
  }

  .chat-thread {
    width: min(360px, 100%);
  }

  .bubble {
    font-size: 0.93rem;
    padding: 9px 13px;
  }

  .step-preview-dates {
    padding: 14px 16px;
  }

  .date-options {
    gap: 7px;
  }

  .date-options > span {
    min-height: 54px;
  }

  .footer {
    align-items: flex-start;
    gap: 18px;
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-links {
    align-items: flex-start;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    justify-items: start;
  }

  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .blog-hero {
    padding-bottom: 42px;
    padding-top: 52px;
  }

  .blog-card-copy {
    padding: 28px 22px 32px;
  }

  .blog-post-page {
    padding-top: 32px;
  }

  .blog-back-link {
    margin-bottom: 38px;
  }

  .blog-post-body p {
    line-height: 1.65;
  }

}

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

  html.js .reveal,
  html.js .reveal-stagger:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* App Store and contact calls to action ---------------------------------- */

.app-store-badge {
  border-radius: 9px;
  display: inline-flex;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.app-store-badge::after {
  background: linear-gradient(
    105deg,
    transparent 14%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.34) 43%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0.34) 57%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 86%
  );
  content: "";
  inset: 0 auto 0 -55%;
  pointer-events: none;
  position: absolute;
  transform: translate3d(0, 0, 0) skewX(-16deg);
  width: 58%;
  will-change: transform;
  z-index: 1;
}

.app-store-badge:hover::after {
  animation: app-store-shine 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.app-store-badge:focus-visible {
  border-radius: 10px;
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.app-store-badge img {
  display: block;
  height: auto;
  width: clamp(180px, calc(166px + 3.4vw), 210px);
}

@keyframes app-store-shine {
  0% {
    transform: translate3d(0, 0, 0) skewX(-16deg);
  }

  100% {
    transform: translate3d(360%, 0, 0) skewX(-16deg);
  }
}

.cta-email-address {
  font-family: var(--ui-font);
  font-size: 0.95rem !important;
  margin-top: 18px !important;
}

.cta-email-address a {
  color: var(--aqua);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Unsubscribe page -------------------------------------------------------- */

.unsubscribe-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 60vh;
  padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 48px);
}

.unsubscribe-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  max-width: 480px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  width: 100%;
}

.unsubscribe-state h1 {
  color: var(--navy);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 12px;
}

.unsubscribe-state p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.unsubscribe-state a {
  color: var(--aqua);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.unsubscribe-mark {
  align-items: center;
  background: var(--brand-gradient);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(8, 30, 43, 0.14);
  color: var(--navy);
  display: inline-flex;
  font-size: 1.9rem;
  font-weight: 900;
  height: 76px;
  justify-content: center;
  margin-bottom: 20px;
  width: 76px;
}

.unsubscribe-spinner {
  animation: unsubscribe-spin 720ms linear infinite;
  border: 3px solid rgba(15, 156, 175, 0.28);
  border-radius: 50%;
  border-top-color: var(--aqua);
  display: inline-block;
  height: 34px;
  margin-bottom: 20px;
  width: 34px;
}

@keyframes unsubscribe-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .unsubscribe-spinner {
    animation: none;
  }
}

/* Privacy preferences page ---------------------------------------------- */

.privacy-preferences-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 68vh;
  padding: clamp(48px, 9vw, 112px) clamp(20px, 5vw, 48px);
}

.privacy-preferences-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  max-width: 560px;
  padding: clamp(32px, 5vw, 50px);
  width: 100%;
}

.privacy-preferences-eyebrow {
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.privacy-preferences-state h1 {
  color: var(--navy);
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.privacy-preferences-copy,
.privacy-preferences-centred > p {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}

.privacy-preferences-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.privacy-preferences-form .waitlist-submit {
  margin-top: 2px;
}

.privacy-preferences-form .is-invalid {
  border-color: #c14953;
  box-shadow: 0 0 0 4px rgba(193, 73, 83, 0.14);
}

.privacy-preferences-status {
  color: #a63d47;
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0;
  min-height: 1.2em;
}

.privacy-preferences-status:empty {
  display: none;
}

.marketing-unsubscribe-link {
  -webkit-appearance: none;
  appearance: none;
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--aqua);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: center;
  padding: 2px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

.marketing-unsubscribe-link:hover {
  color: var(--navy);
}

.marketing-unsubscribe-link:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(8, 126, 139, 0.6);
  outline-offset: 3px;
}

.privacy-preferences-note {
  border-top: 1px solid rgba(16, 39, 50, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
  margin: 24px 0 0;
  padding-top: 20px;
}

.privacy-preferences-note a,
.privacy-preferences-centred a {
  color: var(--aqua);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-preferences-centred {
  text-align: center;
}

.privacy-preferences-centred .unsubscribe-mark,
.privacy-preferences-centred .unsubscribe-spinner {
  margin-bottom: 22px;
}

@media (max-width: 560px) {
  .privacy-preferences-page {
    align-items: flex-start;
    padding-top: 42px;
  }

  .privacy-preferences-card {
    border-radius: var(--radius-lg);
    padding: 30px 24px;
  }
}

/* Invite / join fallback page -------------------------------------------- */

.invite-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 62vh;
  padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 48px);
}

.invite-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 500px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  width: 100%;
}

.invite-card [hidden] {
  display: none;
}

.invite-card .eyebrow {
  color: var(--aqua);
  margin-bottom: 10px;
}

.invite-card h1 {
  color: var(--navy);
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
  margin: 0 0 14px;
}

.invite-lead {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 auto 24px;
  max-width: 400px;
}

.invite-code-block {
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(8, 30, 43, 0.05);
  margin: 0 0 24px;
  padding: 20px;
}

.invite-code-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.invite-code-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.invite-code {
  color: var(--navy);
  font-family: var(--ui-font);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.invite-copy {
  background: var(--navy);
  border: 0;
  border-radius: var(--radius-button);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 750;
  min-height: 40px;
  padding: 0 18px;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.invite-copy:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.invite-copy.is-copied {
  background: var(--aqua);
  color: var(--navy);
}

.invite-copy:focus-visible {
  box-shadow: 0 0 0 4px rgba(8, 126, 139, 0.2);
  outline: 2px solid rgba(8, 126, 139, 0.6);
  outline-offset: 3px;
}

.invite-cta {
  background: var(--navy);
  color: var(--white);
  font-size: 1.1rem;
  min-height: 60px;
  width: 100%;
}

.invite-cta:hover {
  background: var(--ink);
}

.invite-secondary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 18px 0 0;
}

.invite-retry {
  color: var(--aqua);
  display: flex;
  font-weight: 800;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  margin: 20px auto 0;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.invite-retry:focus-visible {
  box-shadow: 0 0 0 4px rgba(8, 126, 139, 0.2);
  outline: 2px solid rgba(8, 126, 139, 0.6);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .invite-card .eyebrow,
  .invite-code-label,
  .invite-copy,
  .invite-retry {
    font-weight: 550;
  }

  .invite-card h1 {
    font-weight: 600;
  }

  .invite-cta {
    font-weight: 600;
  }

  .invite-code-row {
    flex-direction: column;
    gap: 14px;
  }

  .invite-code {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    font-weight: 650;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .invite-copy {
    min-width: 120px;
  }
}
