/* PicOff site: one stylesheet for the landing page and the plain pages (privacy, terms, support). */

:root {
  --coral: #FF5B3D;
  --bubblegum: #FF7BD0;
  --violet: #6C3CF0;
  --aqua: #2EC9E0;
  --tangerine: #FF9A1F;
  --lime: #9BE03A;
  --sun: #FFD84A;
  --ink: #1B1030;
  --paper: #FBF8F3;
  --white: #fff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 40px rgba(27, 14, 36, .28);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- shared bits ---------- */

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.display {
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
}
.display em { font-style: italic; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1180px) / 2));
  transition: background .3s, box-shadow .3s, color .3s;
}
.nav.solid { background: rgba(251, 248, 243, .82); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 rgba(27, 16, 48, .08); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px rgba(27, 14, 36, .25); }
.nav-links { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px 14px 20px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 17px; line-height: 1.1;
  box-shadow: 0 10px 24px rgba(27, 14, 36, .3);
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.store-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px rgba(27, 14, 36, .35); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; font-weight: 600; opacity: .75; letter-spacing: .02em; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

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

.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--coral); color: var(--white);
  display: grid; align-items: center;
  padding: 110px 0 70px;
}
.hero .nav { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(54px, 9vw, 128px); }
.hero h1 .line { display: block; overflow: hidden; padding: .04em .06em .06em 0; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 em { color: var(--ink); }
.hero p.lede { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; margin: 26px 0 34px; max-width: 30ch; opacity: 0; animation: fade .8s .5s forwards; }
.hero .cta { opacity: 0; animation: fade .8s .65s forwards; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .cta .free { font-weight: 700; font-size: 15px; opacity: .9; }

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

.sticker {
  position: absolute; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 16px 22px rgba(27, 14, 36, .28));
  will-change: transform;
}
.sticker img { width: 100%; animation: bob 6s ease-in-out infinite; }
.sticker:nth-of-type(2n) img { animation-duration: 7.5s; animation-delay: -2s; }
.sticker:nth-of-type(3n) img { animation-duration: 5.2s; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 4deg)); }
}

.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 1320 / 2868; margin-inline: auto;
  border-radius: 54px; padding: 12px; background: #111;
  box-shadow: 0 0 0 2px #3a3a3a inset, 0 40px 80px rgba(27, 14, 36, .45);
  transform: rotate(4deg);
  animation: phone-in 1.1s .2s var(--ease-spring) both;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(120px) rotate(14deg); } }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #eee; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.phone .screen img.on { opacity: 1; }
.phone-label {
  position: absolute; top: 16%; left: -54px; rotate: -7deg; z-index: 3;
  background: var(--white); color: var(--ink); font-weight: 800; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
  transition: transform .35s var(--ease-spring);
}
.phone-label.pop { transform: scale(1.12); }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 3px solid rgba(255, 255, 255, .7); border-radius: 999px; }
.scroll-hint::after { content: ""; position: absolute; top: 7px; left: 50%; width: 5px; height: 9px; translate: -50% 0; border-radius: 9px; background: var(--white); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { opacity: 0; transform: translateY(12px); } 61% { opacity: 0; transform: none; } 100% { opacity: 1; } }

/* ---------- marquee ---------- */

.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 22px 0; transform: rotate(-2deg); margin: -26px -20px 0; position: relative; z-index: 5; box-shadow: var(--shadow); }
.marquee .track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee span { font-weight: 900; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.03em; padding: 0 22px; white-space: nowrap; }
.marquee span:nth-child(3n+2) { font-style: italic; color: var(--sun); }
.marquee span:nth-child(3n) { color: var(--bubblegum); }
.marquee span.dot { color: var(--coral); padding: 0 4px; }
@keyframes slide { to { transform: translateX(-50%); } }

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

section { position: relative; }
.section { padding: clamp(90px, 12vw, 150px) 0; }
.kicker { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--white); margin-bottom: 20px; }
.section h2 { font-size: clamp(44px, 7vw, 92px); }
.section h2 em { color: var(--coral); }
.section .sub { font-size: clamp(18px, 2vw, 22px); font-weight: 600; opacity: .75; max-width: 46ch; margin: 18px 0 0; }

/* the playground */
.play { background: var(--paper); }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 40px;
  background: radial-gradient(circle at 30% 20%, #fff 0, #F1ECE3 70%);
  box-shadow: inset 0 0 0 2px rgba(27, 16, 48, .06), 0 30px 60px rgba(27, 14, 36, .12);
  display: grid; place-items: center; overflow: hidden;
}
.polaroid {
  position: relative; width: 56%; padding: 4.5% 4.5% 15%; background: #fff; border-radius: 6px;
  box-shadow: 0 22px 40px rgba(27, 14, 36, .25); transform: rotate(-4deg);
  transition: transform .5s var(--ease-spring);
}
.polaroid:hover { transform: rotate(-1deg) scale(1.03); }
.polaroid .pic { aspect-ratio: 1 / 1; background: url(img/couple.webp) center / cover; }
.polaroid .date { position: absolute; left: 7%; bottom: 4%; font: 600 italic clamp(12px, 1.3vw, 16px) "Bradley Hand", "Segoe Print", cursive; color: #555; }
.polaroid.gone { visibility: hidden; }
.bits { position: absolute; inset: 0; pointer-events: none; }
.bit { position: absolute; background-image: url(img/couple.webp); background-size: cover; will-change: transform, opacity; }
.burn-glow { position: absolute; pointer-events: none; mix-blend-mode: multiply; }

.modes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mode {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 19px;
  padding: 14px 22px; border-radius: 999px; color: var(--ink); background: var(--white);
  box-shadow: 0 0 0 2px var(--ink) inset, 0 6px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.mode:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ink) inset, 0 8px 0 var(--ink); }
.mode:active, .mode[disabled] { transform: translateY(5px); box-shadow: 0 0 0 2px var(--ink) inset, 0 1px 0 var(--ink); }
.mode[disabled] { cursor: default; opacity: .6; }
.mode.c1 { background: var(--coral); color: #fff; }
.mode.c2 { background: var(--sun); }
.mode.c3 { background: var(--aqua); }
.again { margin-top: 18px; font-weight: 700; opacity: .6; min-height: 1.5em; }

/* nine ways */
.ways { background: var(--ink); color: var(--white); overflow: hidden; }
.ways h2 em { color: var(--sun); }
.ways .sub { opacity: .8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; perspective: 1200px; }
.card {
  position: relative; border-radius: 32px; padding: 28px 28px 30px; min-height: 300px; overflow: hidden;
  color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d; transition: transform .4s var(--ease-out);
}
.card h3 { font-size: 34px; font-weight: 900; letter-spacing: -.03em; margin: 0 0 6px; line-height: 1; }
.card p { margin: 0; font-weight: 600; font-size: 16px; max-width: 26ch; }
.card img { position: absolute; top: 6px; right: 4px; width: 62%; filter: drop-shadow(0 14px 18px rgba(27, 14, 36, .28)); transition: transform .5s var(--ease-spring); }
.card:hover img { transform: scale(1.08) rotate(-6deg) translateY(-6px); }
.card .num { position: absolute; top: 22px; left: 26px; font-weight: 900; font-size: 15px; opacity: .55; }
.card.white-text { color: var(--white); }

/* screens */
.screens { background: var(--bubblegum); overflow: hidden; }
.screens h2 em { color: var(--white); }
.rail { display: flex; gap: 26px; width: max-content; margin-top: 60px; animation: slide 60s linear infinite; }
.rail:hover { animation-play-state: paused; }
.rail img { width: clamp(200px, 22vw, 280px); border-radius: 26px; box-shadow: var(--shadow); transition: transform .4s var(--ease-spring); }
.rail img:nth-child(odd) { transform: rotate(-2deg); }
.rail img:nth-child(even) { transform: rotate(2deg) translateY(26px); }
.rail img:hover { transform: scale(1.05) rotate(0); }

/* motion */
.motion { background: var(--paper); }
.motion video { width: 100%; border-radius: 34px; box-shadow: 0 40px 80px rgba(27, 14, 36, .22); margin-top: 50px; aspect-ratio: 3840 / 1646; object-fit: cover; background: var(--coral); }

/* promise */
.promise { background: var(--aqua); }
.promise h2 em { color: var(--white); }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.pill { background: var(--white); border-radius: 28px; padding: 28px; box-shadow: 0 16px 30px rgba(27, 14, 36, .12); }
.pill b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.pill span { font-weight: 600; opacity: .75; }
.pill .ico { font-size: 34px; margin-bottom: 12px; display: block; }

/* final call */
.final { background: var(--violet); color: var(--white); text-align: center; overflow: hidden; }
.final h2 { font-size: clamp(56px, 10vw, 140px); }
.final h2 em { color: var(--sun); }
.final .sub { margin: 22px auto 40px; }
.final .store-btn { background: var(--white); color: var(--ink); }
.final .sticker { opacity: .95; }

/* footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 48px 0 56px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot .brand { color: var(--white); }

/* ---------- plain pages ---------- */

.page { min-height: 100svh; display: flex; flex-direction: column; }
.page .nav { position: sticky; background: rgba(251, 248, 243, .85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(27, 16, 48, .08); }
.page main { flex: 1; padding: 50px 0 100px; }
.doc { width: min(720px, 100% - 32px); margin-inline: auto; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); font-weight: 900; letter-spacing: -.035em; line-height: 1; margin: 20px 0 14px; }
.doc h1 em { color: var(--coral); }
.doc .meta { font-weight: 600; opacity: .6; margin: 0 0 40px; }
.doc h2 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 44px 0 10px; }
.doc p, .doc li { font-size: 18px; }
.doc .lead { font-size: 21px; font-weight: 600; }
.doc .box { background: var(--white); border-radius: 24px; padding: 26px 28px; box-shadow: 0 12px 30px rgba(27, 14, 36, .08); margin: 30px 0; }
.doc .mail { display: inline-block; font-size: clamp(22px, 4vw, 32px); font-weight: 900; letter-spacing: -.02em; color: var(--coral); text-decoration: none; word-break: break-all; }
.doc .mail:hover { text-decoration: underline; }
.doc details { background: var(--white); border-radius: 20px; padding: 18px 22px; margin: 12px 0; box-shadow: 0 8px 20px rgba(27, 14, 36, .06); }
.doc summary { font-weight: 800; font-size: 18px; cursor: pointer; }
.doc details p { margin: 10px 0 0; }

@media (prefers-color-scheme: dark) {
  .page { background: #120A20; color: #F4EFFA; }
  .page .nav { background: rgba(18, 10, 32, .8); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
  .page .nav .brand, .page .nav-links { color: #F4EFFA; }
  .doc .box, .doc details { background: #1E1430; box-shadow: none; }
  .page .kicker { background: var(--coral); }
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-grid, .play-grid { grid-template-columns: 1fr; }
  .hero-grid { text-align: left; gap: 70px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pills { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero .sticker.hide-sm, .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 240px; }
  .card img { width: 48%; }
  .stage { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .rail, .marquee .track { animation: none; }
}
