/* PhotoMate — site styles. No build step, no dependencies. */

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --accent: #4270d9;
  --accent-2: #8a5cf5;
  --accent-3: #22b8f0;
  --accent-soft: rgba(66, 112, 217, 0.1);
  --ink: #090b13;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #11131a;
  --muted: #5b6070;
  --line: rgba(17, 19, 26, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e15;
    --card: #151822;
    --text: #f1f2f7;
    --muted: #9da3b4;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #7d9bf0;
    --accent-soft: rgba(125, 155, 240, 0.13);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.wrap.wide { max-width: 1120px; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: background 0.35s, border-color 0.35s, padding 0.35s;
}

header.site .wrap { display: flex; align-items: center; gap: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #6f8cff, #3349c7);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px -4px rgba(66, 112, 217, 0.7);
}

.brand-mark svg { width: 17px; height: 17px; }

header.site nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent); }

header.site nav a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

header.site nav a.nav-cta { white-space: nowrap; }

/* A phone has room for the logo and one action; everything else lives in the footer. */
@media (max-width: 640px) {
  .sm-hide { display: none; }
  header.site nav { gap: 16px; }
}

/* Over the dark hero the header starts transparent and turns solid once you scroll. */
header.site.overlay {
  position: fixed;
  width: 100%;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

header.site.overlay .brand { color: #fff; }
header.site.overlay nav a { color: rgba(255, 255, 255, 0.72); }
header.site.overlay nav a:hover { color: #fff; }
header.site.overlay nav a.nav-cta { background: rgba(255, 255, 255, 0.14); color: #fff; }

header.site.overlay.scrolled {
  padding: 12px 0;
  background: rgba(9, 11, 19, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

/* ---------- Stage (home hero) ---------- */

.stage {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 150px 0 0;
  isolation: isolate;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  z-index: -2;
  animation: drift 20s ease-in-out infinite alternate;
}

.blob.a { width: 560px; height: 560px; background: #3a5ae8; top: -190px; left: -150px; opacity: 0.6; }
.blob.b { width: 480px; height: 480px; background: #8a4df0; top: 60px; right: -170px; opacity: 0.5; animation-delay: -7s; }
.blob.c { width: 620px; height: 420px; background: #1fa8f0; bottom: -220px; left: 30%; opacity: 0.28; animation-delay: -13s; }

.stage::after {
  /* dot grid, fading out towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.stage-copy { text-align: center; max-width: 820px; margin: 0 auto; padding: 0 22px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee6a4;
  box-shadow: 0 0 0 0 rgba(94, 230, 164, 0.7);
  animation: ping 2.2s ease-out infinite;
}

.stage h1 {
  font-size: clamp(40px, 7.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 26px 0 22px;
}

.grad {
  background: linear-gradient(100deg, #8fb0ff 0%, #c4a1ff 45%, #7fdcff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite alternate;
}

.stage-copy > p {
  font-size: clamp(17px, 2.1vw, 21px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
  margin: 0 auto;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn svg { width: 18px; height: 18px; }
.btn.primary { background: #fff; color: #0b0d14; box-shadow: 0 10px 30px -10px rgba(143, 176, 255, 0.8); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(143, 176, 255, 0.95); }
.btn.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent); }

/* ---------- Phones ---------- */

.phone {
  background: linear-gradient(165deg, #3a3e49, #15171e);
  padding: 9px;
  border-radius: 46px;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 70px auto 0;
  padding: 0 22px;
  max-width: 1000px;
  perspective: 1600px;
}

.phones::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: min(760px, 92vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 140, 255, 0.55), transparent);
  filter: blur(40px);
  z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}

.slot { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
.slot .phone { animation: float 7s ease-in-out infinite; }

.slot.center { width: min(320px, 62vw); z-index: 3; animation-delay: 0.25s; margin-bottom: -120px; }
.slot.left, .slot.right { width: min(262px, 46vw); z-index: 2; margin-bottom: -150px; }
.slot.left { margin-right: -46px; --tilt: -9deg; --shift: 0px; animation-delay: 0.45s; transform-origin: bottom right; }
.slot.right { margin-left: -46px; --tilt: 9deg; animation-delay: 0.6s; transform-origin: bottom left; }
.slot.left .phone { animation-delay: -2.4s; }
.slot.right .phone { animation-delay: -4.6s; }
.slot.left .phone, .slot.right .phone { filter: brightness(0.82); }

@media (max-width: 640px) {
  .slot.left, .slot.right { display: none; }
  .slot.center { margin-bottom: -90px; }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 19, 0.92) 40%);
  padding: 170px 0 30px;
  margin-top: -40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 36s linear infinite; }

.marquee span {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 64px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(30px, 4.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* A stat in words needs a smaller size to sit on one line beside the numerals. */
.stat b.words { font-size: clamp(24px, 3.1vw, 34px); line-height: 1.42; }

.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

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

main section { margin-top: 44px; }

.section-head { text-align: center; max-width: 640px; margin: 120px auto 0; }

h2 { font-size: 24px; letter-spacing: -0.015em; margin: 0 0 14px; }

.display {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}

.lede { color: var(--muted); font-size: 18px; margin: 0; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.feature {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 110px;
}

.feature .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.feature .num::after { content: ""; width: 44px; height: 1px; background: var(--accent); opacity: 0.5; }
.feature p { color: var(--muted); margin: 0; font-size: 17.5px; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 15.5px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234270d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.shot { position: relative; max-width: 330px; margin: 0 auto; width: 100%; }

.shot::before {
  content: "";
  position: absolute;
  inset: 8% -18% 4%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  filter: blur(36px);
  z-index: -1;
}

.tilt { transition: transform 0.5s var(--ease); transform-style: preserve-3d; will-change: transform; }

@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 360px; gap: 90px; }
  .feature.reverse { grid-template-columns: 360px 1fr; }
  .feature.reverse .feature-text { order: 2; }
  .feature.reverse .shot { order: 1; }
}

/* ---------- Bento ---------- */

.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); margin-top: 44px; }

.tile {
  grid-column: span 2;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.tile.wide { grid-column: span 3; }

.tile:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--accent) 70%, transparent);
}

.tile .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 16%, transparent));
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.tile:hover .icon { transform: scale(1.1) rotate(-6deg); }
.tile .icon svg { width: 23px; height: 23px; }
.tile h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 3px 9px;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
}

@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Privacy vault ---------- */

.vault {
  position: relative;
  margin-top: 120px;
  border-radius: 30px;
  padding: 2px;
  background: conic-gradient(from var(--spin), #3a5ae8, #8a4df0, #22b8f0, #3a5ae8);
  animation: spin 9s linear infinite;
}

.vault-inner {
  border-radius: 28px;
  background: radial-gradient(120% 140% at 50% 0%, #161b33 0%, #090b13 60%);
  color: #fff;
  text-align: center;
  padding: 64px 28px;
}

.vault .shield {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: float 6s ease-in-out infinite;
}

.vault .shield svg { width: 34px; height: 34px; }
.vault .display { color: #fff; }
.vault p { color: rgba(255, 255, 255, 0.7); max-width: 36em; margin: 0 auto; font-size: 17.5px; }

.vault-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.vault-points span {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 44px; }

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.plan:hover { transform: translateY(-4px); }

.plan.featured {
  border: 0;
  color: #fff;
  background: linear-gradient(150deg, #4b68ea, #6a3fd6);
  box-shadow: 0 30px 60px -30px rgba(90, 80, 230, 0.9);
}

.plan h3 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.015em; }
.plan .price { font-size: 15px; font-weight: 600; margin: 0 0 20px; color: var(--accent); }
.plan.featured .price { color: rgba(255, 255, 255, 0.78); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; color: var(--muted); }
.plan.featured ul { color: rgba(255, 255, 255, 0.92); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; font-weight: 800; color: var(--accent); }
.plan.featured li::before { color: #9fe8ff; }

/* ---------- Closing call ---------- */

.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 120px;
  border-radius: 34px;
  padding: 84px 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #3d59e6 0%, #7440e0 55%, #2a9fe8 120%);
  background-size: 180% 180%;
  animation: pan 14s ease-in-out infinite alternate;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}

.closing .display { color: #fff; }
.closing p { color: rgba(255, 255, 255, 0.8); margin: 0 auto 30px; max-width: 30em; font-size: 18px; }

/* ---------- Sub-pages (support, privacy) ---------- */

.hero { padding: 84px 0 34px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.06; margin: 0 0 16px; letter-spacing: -0.03em; font-weight: 800; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 30em; }
.updated { font-size: 14px; color: var(--muted); }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px 20px;
  margin-bottom: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

details:hover, details[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
details[open] { box-shadow: 0 16px 34px -24px color-mix(in srgb, var(--accent) 60%, transparent); }
details > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details > summary::-webkit-details-marker { display: none; }

details > summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  transition: transform 0.3s var(--ease);
}

details[open] > summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; animation: fade-down 0.35s var(--ease); }

.prose p, .prose li { color: var(--muted); }
.prose h2 { color: var(--text); margin-top: 38px; }
.prose strong { color: var(--text); }

main.sub { padding-bottom: 90px; }

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

footer { border-top: 1px solid var(--line); margin-top: 110px; padding: 30px 0 46px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 20px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--accent); }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.zoom { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; }

.enter { opacity: 0; animation: rise 0.95s var(--ease) forwards; animation-delay: var(--d, 0ms); }

@keyframes rise {
  from { opacity: 0; transform: translateY(44px) rotate(var(--tilt, 0deg)) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 50px) scale(1.18); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pan { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { --spin: 360deg; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94, 230, 164, 0.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(94, 230, 164, 0); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Motion is decoration here: anyone who asked for less gets a still page with nothing hidden. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .enter, .slot { opacity: 1 !important; transform: none !important; }
  .slot.left { transform: rotate(-9deg) !important; }
  .slot.right { transform: rotate(9deg) !important; }
}
