/*
 * Papr — marketing site.
 *
 * One committed dark palette rather than a light/dark pair: the app's own
 * screenshots are dark, and a page that swapped underneath them would fight
 * its own artwork. The teal and amber are lifted straight from the app's
 * Brand object so the site and the product look like one thing.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --ink: #060a0b;
  --ink-2: #0b1113;
  --surface: #111a1c;
  --surface-2: #162124;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --teal: #0e7c66;
  --teal-bright: #3fae94;
  --teal-glow: #6fd9bf;
  --amber: #f5a623;

  --text: #eef4f4;
  --muted: #9aabab;
  --faint: #6d8080;

  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1160px;
  --gutter: clamp(20px, 5vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------- baseline */

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

html {
  scroll-behavior: smooth;
  /* The sticky header would otherwise cover the top of any anchored section. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/*
 * The Play badge and its "coming soon" stand-in are toggled with the `hidden`
 * attribute, and every one of them carries a class that sets `display`. Without
 * this, that class quietly wins and both show at once.
 */
[hidden] {
  display: none !important;
}

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

a:hover {
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 640;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 18px;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
}

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

/* --------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 620;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 13px;
  font-size: 15.5px;
  font-weight: 580;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, border-color 0.25s, color 0.2s;
}

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

.btn--primary {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  color: #04211b;
  box-shadow: 0 10px 30px -12px rgba(63, 174, 148, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  color: #04211b;
  box-shadow: 0 16px 38px -12px rgba(63, 174, 148, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14.5px;
  border-radius: 11px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/*
 * Three stacked light sources rather than one flat gradient: a teal bloom
 * behind the copy, a cooler one behind the phone, and a faint grid that only
 * shows near the top. Cheap to paint and it gives the section real depth.
 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 780px;
  height: 780px;
  top: -420px;
  left: -180px;
  background: radial-gradient(
    circle,
    rgba(14, 124, 102, 0.45),
    transparent 62%
  );
  filter: blur(30px);
}

.hero::after {
  width: 700px;
  height: 700px;
  top: -180px;
  right: -260px;
  background: radial-gradient(
    circle,
    rgba(63, 174, 148, 0.24),
    transparent 64%
  );
  filter: blur(40px);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  /* Fades the grid out before it reaches the content, so it reads as texture. */
  -webkit-mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    #000 5%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    #000 5%,
    transparent 72%
  );
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(63, 174, 148, 0.28);
  background: rgba(14, 124, 102, 0.13);
  color: var(--teal-glow);
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-glow);
  box-shadow: 0 0 0 4px rgba(111, 217, 191, 0.16);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  letter-spacing: -0.038em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  /* Teal only. Running it into the amber turned the last word olive. */
  background: linear-gradient(100deg, #9df3dd, var(--teal-bright) 58%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(17px, 2.1vw, 19.5px);
  color: var(--muted);
  max-width: 33ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__note {
  font-size: 14px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__note svg {
  flex: none;
  color: var(--teal-bright);
}

/* ---------------------------------------------------------------- phone */

.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #2a3538, #0d1214 42%, #222c2f);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone::after {
  /* The pill cut-out. Purely cosmetic, so it is hidden from assistive tech. */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
  background: #0b0f10;
}

.phone--hero {
  max-width: 340px;
  transform: rotate(1.2deg);
}

.phone--hero::before {
  content: "";
  position: absolute;
  inset: -14% -22%;
  background: radial-gradient(
    ellipse at center,
    rgba(63, 174, 148, 0.28),
    transparent 66%
  );
  filter: blur(24px);
  z-index: -1;
}

/* --------------------------------------------------------------- strip */

.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.strip__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 26px 0;
}

.strip__item {
  text-align: center;
  padding: 6px 10px;
}

.strip__item b {
  display: block;
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--text);
}

.strip__item span {
  font-size: 13.5px;
  color: var(--faint);
}

/* ------------------------------------------------------------- sections */

.section {
  padding: clamp(64px, 9vw, 116px) 0;
  position: relative;
}

.section--tint {
  background: radial-gradient(
      ellipse 70% 60% at 50% 0%,
      rgba(14, 124, 102, 0.11),
      transparent 70%
    ),
    var(--ink-2);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head.is-centred {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(30px, 4.3vw, 44px);
  margin-bottom: 16px;
}

.section__lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* -------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.018)
  );
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.card::before {
  /* A light that follows nothing — it just warms the top-left corner on hover. */
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(63, 174, 148, 0.3), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 174, 148, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(
    160deg,
    rgba(63, 174, 148, 0.26),
    rgba(14, 124, 102, 0.1)
  );
  border: 1px solid rgba(63, 174, 148, 0.26);
  color: var(--teal-glow);
}

.card h3 {
  font-size: 19.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

/* --------------------------------------------------------------- gallery */

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px calc(50vw - min(var(--shell), 100vw) / 2 + var(--gutter)) 30px;
  /*
   * Matches the inline padding. Without it the snap point for the first shot
   * sits one padding-width in from the scroll origin, and the row opens
   * already nudged off the first card.
   */
  scroll-padding-inline-start: calc(
    50vw - min(var(--shell), 100vw) / 2 + var(--gutter)
  );
  margin-inline: calc(50% - 50vw);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

.shot {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

.shot .phone {
  max-width: 250px;
  border-radius: 34px;
  padding: 7px;
}

.shot .phone img {
  border-radius: 28px;
}

.shot .phone::after {
  width: 50px;
  height: 6px;
  top: 16px;
}

.shot__caption {
  margin-top: 16px;
  text-align: center;
}

.shot__caption b {
  display: block;
  font-size: 15.5px;
  font-weight: 590;
}

.shot__caption span {
  font-size: 14px;
  color: var(--faint);
}

/* --------------------------------------------------------------- privacy */

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.pledges {
  display: grid;
  gap: 12px;
}

.pledge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}

.pledge svg {
  flex: none;
  margin-top: 2px;
  color: var(--teal-bright);
}

.pledge b {
  display: block;
  font-weight: 590;
  font-size: 16px;
  margin-bottom: 3px;
}

.pledge span {
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------- faq */

.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.faq details[open] {
  border-color: rgba(63, 174, 148, 0.28);
  background: rgba(63, 174, 148, 0.06);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 56px 19px 22px;
  font-weight: 570;
  font-size: 16.5px;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--teal-bright);
  border-bottom: 2px solid var(--teal-bright);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15.6px;
}

/* --------------------------------------------------------------- support */

.support-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63, 174, 148, 0.24);
  background: radial-gradient(
      ellipse 80% 100% at 15% 0%,
      rgba(14, 124, 102, 0.32),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}

.support-card h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.support-card p {
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 28px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mail__address {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--teal-glow);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(63, 174, 148, 0.4);
  background: rgba(0, 0, 0, 0.25);
}

.copy {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 11px;
  padding: 11px 15px;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.copy:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.copy.is-done {
  color: var(--teal-glow);
  border-color: rgba(63, 174, 148, 0.5);
}

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--ink-2);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__links a {
  color: var(--muted);
  font-size: 15px;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* ------------------------------------------------------------- documents */

/* Long-form pages: privacy policy, support. Narrow measure, generous rhythm. */

.doc {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
  position: relative;
}

.doc__head {
  max-width: 760px;
  margin-bottom: 44px;
}

.doc__head h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 16px;
}

.doc__meta {
  color: var(--faint);
  font-size: 14.5px;
}

.doc__body {
  max-width: 760px;
}

.doc__body h2 {
  font-size: clamp(21px, 2.8vw, 26px);
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc__body h3 {
  font-size: 18px;
  margin: 26px 0 8px;
  font-weight: 600;
}

.doc__body p,
.doc__body li {
  color: var(--muted);
  font-size: 16.4px;
  line-height: 1.72;
}

.doc__body p + p {
  margin-top: 14px;
}

.doc__body ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.doc__body li {
  margin-bottom: 9px;
}

.doc__body li::marker {
  color: var(--teal-bright);
}

.doc__body strong {
  color: var(--text);
  font-weight: 590;
}

.callout {
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(63, 174, 148, 0.26);
  background: rgba(14, 124, 102, 0.1);
}

.callout p {
  color: #cfe6df;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 62px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  margin: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 17px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 640;
  color: #04211b;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
}

/* --------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 940px) {
  .hero__inner,
  .privacy-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__inner {
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__note {
    justify-content: center;
  }

  .phone--hero {
    transform: none;
    max-width: 268px;
    margin-top: 8px;
  }

  .section__head {
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: #0b1113;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav .btn {
    margin-top: 6px;
  }

  .nav__toggle {
    display: inline-flex;
  }

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

  .footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}
