/* PhotoDuel marketing site — bright, playful, confident */

:root {
  --cream: #FFF3DC;
  --cream-2: #FFE2A8;
  --ink: #14100E;
  --ink-2: #4A413B;
  --amber: #F59115;
  --coral: #EB4E2B;
  --magenta: #D63384;
  --pink: #F06292;
  --sky: #3DA5D9;
  --green: #4A9B5C;
  --paper: #FFFFFF;
  --rule: rgba(20, 16, 14, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(20, 16, 14, 0.28), 0 8px 20px -8px rgba(20, 16, 14, 0.16);
  --shadow-md: 0 12px 30px -10px rgba(20, 16, 14, 0.22), 0 4px 12px -4px rgba(20, 16, 14, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ───── nav ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  margin: 0 2px 4px;
  vertical-align: middle;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta::after { content: '→'; font-size: 15px; }

/* ───── hero ───── */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 24px 0 28px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(92deg, var(--amber) 10%, var(--coral) 60%, #D94C6E 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: 'ss01';
}
.hero h1 .scribble {
  position: relative;
  display: inline-block;
}
.hero h1 .scribble::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 4%;
  height: 14px;
  background: var(--amber);
  opacity: 0.35;
  border-radius: 20px;
  z-index: -1;
  transform: rotate(-1deg);
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.hero .kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.hero .lede {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 36px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(95deg, var(--amber) 0%, var(--coral) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary::after { content: '→'; font-size: 18px; transition: transform 0.2s; }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 16.5px 24px;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.hero-note {
  color: var(--ink-2);
  font-size: 14px;
}
.hero-note .pip {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* hero art side */
.hero-art {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-wrap {
  position: relative;
  z-index: 2;
}
.hero-blob {
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--amber) 0%, var(--coral) 70%);
  opacity: 0.85;
  filter: blur(2px);
  z-index: 1;
  top: 90px; right: -40px;
}
.hero-blob-2 {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.7;
  z-index: 1;
  bottom: 40px; left: 10px;
}

/* floating stickers around the phone */
.sticker {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sticker .emoji { font-size: 16px; }
.sticker-1 { top: 40px; right: -10px; transform: rotate(6deg); }
.sticker-2 { bottom: 90px; left: -20px; transform: rotate(-5deg); }
.sticker-3 { top: 220px; left: -40px; transform: rotate(-3deg); background: var(--ink); color: var(--cream); }

/* ───── section scaffolding ───── */
section { padding: 100px 0; }
section + section { border-top: 1px solid var(--rule); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--coral);
}
.section-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-head {
  max-width: 760px;
  margin: 0 0 64px;
}
.section-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--coral);
}
.section-head p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
}

/* ───── problem ───── */
.problem {
  background: var(--cream-2);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mess {
  position: relative;
  height: 520px;
}
.mess .m-photo {
  position: absolute;
  width: 210px;
  height: 260px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 8px solid var(--paper);
  transition: transform 0.3s ease;
}
.mess .m-photo:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 5; }
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.number {
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}
.number .big {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.number .lbl {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.3;
}
.problem-copy h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; }
.problem-copy p { font-size: 19px; color: var(--ink-2); max-width: 520px; }

/* ───── how it works ───── */
.how {
  position: relative;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.step {
  position: relative;
  padding-top: 40px;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 88px;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 20px;
  display: block;
}
.step-art {
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--rule);
}
.step h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.step p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* mini step art visuals */
.step-art.duel {
  display: flex;
  padding: 28px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FDEFD5 0%, #F9DFBC 100%);
}
.step-art.duel .mini-photo {
  width: 88px; height: 140px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.step-art.duel .mini-photo.left { transform: rotate(-6deg); }
.step-art.duel .mini-photo.right { transform: rotate(6deg); }
.step-art.duel .vs {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--coral);
}

.step-art.leaderboard {
  padding: 22px;
  background: linear-gradient(135deg, #F4A8C1 0%, #F2704A 100%);
}
.step-art.leaderboard .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--paper);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.step-art.leaderboard .row img {
  width: 44px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
}
.step-art.leaderboard .row .rank {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--coral);
  width: 24px;
}
.step-art.leaderboard .row .bar {
  flex: 1;
  height: 6px;
  background: #F5E1D3;
  border-radius: 999px;
  overflow: hidden;
}
.step-art.leaderboard .row .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--coral));
  border-radius: 999px;
}

.step-art.album {
  background: linear-gradient(135deg, #A8CFE8 0%, #7BA87A 100%);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}
.step-art.album img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* ───── features ───── */
.features {
  background: var(--ink);
  color: var(--cream);
}
.features .section-head h2 { color: var(--cream); }
.features .section-head p { color: rgba(232, 229, 222, 0.7); }
.features .section-kicker { color: var(--amber); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.feature-card {
  background: rgba(255, 248, 236, 0.04);
  border: 1px solid rgba(255, 248, 236, 0.08);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 248, 236, 0.06);
}
.feature-card.wide { grid-column: span 2; }
.feature-card .f-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--ink);
}
.feature-card.projects .f-icon { background: var(--amber); }
.feature-card.passes .f-icon { background: var(--pink); }
.feature-card.albums .f-icon { background: var(--sky); color: var(--cream); }
.feature-card.cleanup .f-icon { background: #E53935; color: var(--cream); }
.feature-card.privacy .f-icon { background: var(--green); color: var(--cream); }
.feature-card h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: rgba(232, 229, 222, 0.75);
  margin: 0;
  line-height: 1.55;
  font-size: 16px;
}
.feature-card .note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 248, 236, 0.1);
  font-size: 13px;
  color: rgba(232, 229, 222, 0.55);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-card.privacy {
  background: linear-gradient(135deg, rgba(123, 168, 122, 0.18), rgba(123, 168, 122, 0.06));
  border-color: rgba(123, 168, 122, 0.3);
}

/* ───── final CTA ───── */
.final-cta {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 55%, #D94C6E 110%);
  color: var(--ink);
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 em { font-style: italic; }
.final-cta p {
  font-size: 20px;
  max-width: 520px;
  margin: 0 auto 40px;
  color: rgba(26, 22, 20, 0.75);
}
.final-cta .btn-primary {
  background: var(--ink);
  color: var(--cream);
  font-size: 18px;
  padding: 20px 34px;
}
.final-cta .btn-primary:hover { background: var(--paper); color: var(--ink); }
.final-tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 40px auto 0;
  color: var(--ink);
  opacity: 0.82;
  letter-spacing: -0.01em;
}
.final-tagline em { font-style: italic; }

/* ───── footer ───── */
footer {
  padding: 48px 0;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--cream);
}
.foot-tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  opacity: 0.78;
  letter-spacing: -0.01em;
  line-height: 1;
}
.foot-tagline em { font-style: italic; color: var(--coral); }
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer a {
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid currentColor;
}
footer a:hover { color: var(--ink); }

/* ───── beta page ───── */
.beta-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.beta-aside {
  background: var(--ink);
  color: var(--cream);
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.beta-aside .wordmark { color: var(--cream); }
.beta-aside .wordmark .dot { background: var(--amber); }
.beta-aside .a-head {
  margin-top: auto;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.beta-aside .a-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.beta-aside .a-head h2 em {
  font-style: italic;
  background: linear-gradient(92deg, var(--amber), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.beta-aside .a-head p {
  color: rgba(232, 229, 222, 0.7);
  max-width: 420px;
  font-size: 16px;
}
.beta-aside .a-list {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 248, 236, 0.14);
  position: relative;
  z-index: 2;
}
.beta-aside .a-list .row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(232, 229, 222, 0.75);
}
.beta-aside .a-list .row .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--amber);
  font-size: 20px;
  line-height: 1;
  width: 22px;
}
.beta-aside .a-blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--amber), var(--coral) 70%);
  opacity: 0.25;
  filter: blur(4px);
  bottom: -180px; right: -180px;
  z-index: 1;
}

.beta-main {
  padding: 64px 72px;
  background: var(--cream);
  overflow-y: auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 32px;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--ink); }

.form-head h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.form-head h1 em {
  font-style: italic;
  color: var(--coral);
}
.form-head p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 48px;
}

form .field {
  margin-bottom: 28px;
}
form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
form label .optional {
  font-weight: 400;
  color: var(--ink-2);
  margin-left: 6px;
}
form input[type="text"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(242, 112, 74, 0.15);
}
form textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* device picker chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 10px 16px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  color: var(--ink);
  font-family: inherit;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* photo-count slider */
.slider-wrap { padding: 8px 0 4px; }
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.slider-label .v {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 36px;
  color: var(--coral);
  line-height: 1;
}
.slider-label .v .suf {
  font-size: 16px;
  color: var(--ink-2);
  font-style: normal;
  font-family: 'Inter', sans-serif;
  margin-left: 4px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--coral));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--cream);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--cream);
  cursor: pointer;
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-2);
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.submit-row .btn-primary { flex-shrink: 0; }
.submit-row .tos {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

.success-card {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}
.success-card h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  margin: 0 0 14px;
}
.success-card h2 em { font-style: italic; }
.success-card p { margin: 0 0 24px; font-size: 17px; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .problem-grid, .beta-page {
    grid-template-columns: 1fr;
  }
  .hero-art { height: 520px; margin-top: 24px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .row-2 { grid-template-columns: 1fr; }
  .beta-aside { padding: 36px; min-height: 320px; }
  .beta-aside .a-head { margin-top: 32px; }
  .beta-main { padding: 40px 28px; }
  section { padding: 72px 0; }
  .wrap { padding: 0 24px; }
}
