/* Denominator website. One idea: the app's own D-gradient light, seen through glass.
   Colors come from the app (ink black, candlelight, sea, lavender); type is the
   app's own pair: Literata for headings, Figtree for reading. */
:root {
  --ink: #000;
  --text: #F1EFF7;
  --soft: #C7C4D3;
  --muted: #9A97AB;
  --candle: #F2C47E;
  --sea: #8AD6C6;
  --lavender: #B9A8F0;
  --rose: #F0958A;
  --d1: #3D5CFF; --d2: #8C5CFF; --d3: #FF5FA8; --d4: #FFA046;
  --glass: linear-gradient(140deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 55%, rgba(255,255,255,.07));
  --edge: rgba(255,255,255,.17);
  --serif: "Literata", Georgia, serif;
  --sans: "Figtree", "Hind Siliguri", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; border-radius: 8px; }

/* ---------- the light behind the glass ---------- */
.aurora { position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; filter: blur(60px) saturate(130%); opacity: .55; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: screen; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--d1), transparent 65%); left: 8%; top: 4%; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--d2), transparent 65%); left: 48%; top: 18%; animation-delay: -12s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--d3), transparent 65%); left: 18%; top: 52%; animation-delay: -24s; }
.aurora i:nth-child(4) { background: radial-gradient(circle, var(--d4), transparent 62%); left: 58%; top: 60%; animation-delay: -6s; opacity: .8; }
@keyframes drift { to { transform: translate(9vmax, -7vmax) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); }

/* ---------- glass ---------- */
.glass {
  position: relative; background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--edge); border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(255,255,255,.04), 0 40px 80px -30px rgba(0,0,0,.7);
}
.glass::before { /* the curved highlight a real sheet of glass catches */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 10% 0%, rgba(255,255,255,.18), transparent 45%);
}

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.read { max-width: 60ch; }
section { padding: 96px 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); }
.soft { color: var(--soft); } .muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 12px; z-index: 10; margin: 12px auto 0; width: min(1120px, 100% - 24px); padding: 10px 12px 10px 16px; border-radius: 999px; display: flex; align-items: center; gap: 12px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.nav .brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; color: var(--soft); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav ul a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 14px 24px; border: 0; cursor: pointer; font-family: var(--sans); }
.btn-candle { background: var(--candle); color: #1A1408; box-shadow: 0 10px 30px -8px rgba(242,196,126,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-candle:hover { filter: brightness(1.06); }
.btn-glass { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--edge); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 860px) { .nav ul { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lens { padding: 44px 40px 40px; border-radius: 40px; }
@supports (backdrop-filter: url(#refract)) { .lens { backdrop-filter: blur(14px) saturate(180%) url(#refract); } }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.025em; }
.hero h1 .d { display: inline-block; width: .66em; height: .9em; margin-right: .02em; vertical-align: -.06em;
  background: linear-gradient(160deg, var(--d1), var(--d2) 38%, var(--d3) 68%, var(--d4));
  clip-path: path("M0 0 L0.28 0 A0.62 0.5 0 0 1 0.28 1 L0 1 Z"); }
.hero .lead { margin: 22px 0 28px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.stack { position: relative; height: 620px; }
.stack .phone { position: absolute; width: 250px; }
.stack .phone:nth-child(1) { left: 0; top: 70px; transform: rotate(-7deg); }
.stack .phone:nth-child(2) { left: 30%; top: 0; z-index: 2; width: 270px; }
.stack .phone:nth-child(3) { right: 0; top: 96px; transform: rotate(6deg); }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .stack { height: 480px; } .stack .phone { width: 190px !important; }
  .stack .phone:nth-child(2) { left: calc(50% - 95px); }
}
@media (max-width: 520px) { .lens { padding: 30px 22px 26px; border-radius: 30px; } .stack { height: 400px; } .stack .phone { width: 150px !important; } .stack .phone:nth-child(2) { left: calc(50% - 75px); } }

/* ---------- phone frame ---------- */
.phone { aspect-ratio: 392 / 852; padding: 9px; border-radius: 46px; background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 40%, rgba(255,255,255,.16));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 40px 70px -24px rgba(0,0,0,.85); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #000; }

/* ---------- film ---------- */
.film { padding: 18px; border-radius: 36px; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; background: #000; }
.film figcaption { margin: 12px 4px 2px; color: var(--muted); font-size: 15px; }

/* ---------- a day with Denominator ---------- */
.day-intro { margin-bottom: 56px; }
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid rgba(255,255,255,.08); }
.moment:nth-of-type(even) .shots { order: -1; }
.clock { font-family: var(--serif); font-size: 18px; color: var(--candle); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.moment h3 { margin-bottom: 14px; }
.moment ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.moment li { padding-left: 28px; position: relative; color: var(--soft); }
.moment li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--sea)); box-shadow: 0 0 12px var(--dot, var(--sea)); }
.shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; padding: 28px; border-radius: 36px; }
.shots .phone { width: min(270px, 100%); }
.shots.two .phone { width: min(230px, 48%); }
.shots.two .phone:last-child { margin-top: 48px; }
.shots.three .phone { width: min(190px, 32%); }
.shots.three .phone:nth-child(2) { margin-top: 36px; }
.shots.three .phone:nth-child(3) { margin-top: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--soft); }
@media (max-width: 900px) {
  .moment { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .moment:nth-of-type(even) .shots { order: 0; }
  .shots { padding: 18px; }
}

/* ---------- ideas fan ---------- */
.fan { position: relative; height: 470px; }
.fan img { position: absolute; width: 46%; max-width: 250px; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); top: 30px; left: 50%; transform-origin: 50% 120%; }
.fan img:nth-child(1) { transform: translateX(-50%) rotate(-16deg) translateX(-30%); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(-5deg) translateX(-8%); }
.fan img:nth-child(3) { transform: translateX(-50%) rotate(6deg) translateX(10%); }
.fan img:nth-child(4) { transform: translateX(-50%) rotate(16deg) translateX(30%); }
@media (max-width: 520px) { .fan { height: 360px; } }

/* ---------- sharing ---------- */
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 40px; }
.thread { display: grid; gap: 12px; }
.bubble { max-width: 340px; padding: 14px 16px; border-radius: 22px 22px 22px 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.bubble.me { justify-self: end; border-radius: 22px 22px 6px 22px; background: rgba(138,214,198,.16); border-color: rgba(138,214,198,.3); }
.bubble b { display: block; font-family: var(--serif); font-size: 18px; }
.bubble .link { display: block; margin-top: 6px; font-size: 14px; color: var(--sea); word-break: break-all; }
.bubble.saved { justify-self: end; background: rgba(242,196,126,.16); border-color: rgba(242,196,126,.35); }
@media (max-width: 860px) { .share { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- the small things ---------- */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 12px; border-radius: 36px; margin-top: 40px; }
.extras div { padding: 22px 22px 18px; }
.extras div + div { border-left: 1px solid rgba(255,255,255,.08); }
.extras div:nth-child(3n+1) { border-left: 0; }
.extras div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.08); }
.extras b { display: block; font-size: 18px; margin-bottom: 4px; }
.extras span { color: var(--soft); font-size: 15.5px; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } .extras div { border-left: 0 !important; } .extras div + div { border-top: 1px solid rgba(255,255,255,.08); } }

/* ---------- download ---------- */
.get { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 48px; border-radius: 40px; align-items: start; }
.get ol { margin: 0; padding-left: 22px; color: var(--soft); display: grid; gap: 8px; }
.get .small { font-size: 15px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .get { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- questions ---------- */
.faq { display: grid; gap: 10px; margin-top: 32px; max-width: 820px; }
.faq details { border-radius: 22px; padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); }

/* ---------- feedback ---------- */
.feedback { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form { padding: 32px; border-radius: 36px; display: grid; gap: 18px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.kinds legend { font-weight: 700; margin-bottom: 10px; }
.kinds label { cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.05); color: var(--soft); font-size: 15px; }
.kinds input:checked + span { background: var(--candle); color: #1A1408; border-color: var(--candle); font-weight: 700; }
.kinds input:focus-visible + span { outline: 2px solid var(--candle); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field small { color: var(--muted); font-size: 13.5px; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--candle); box-shadow: 0 0 0 3px rgba(242,196,126,.2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.5em; font-size: 15px; }
.status.ok { color: var(--sea); } .status.err { color: var(--rose); }
@media (max-width: 860px) { .feedback { grid-template-columns: 1fr; } .form { padding: 22px; } .row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { padding: 48px 0 64px; color: var(--muted); font-size: 15px; border-top: 1px solid rgba(255,255,255,.08); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: var(--soft); }

@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } html { scroll-behavior: auto; } }

/* ---------- inner pages (privacy, terms) ---------- */
.page { width: min(760px, 100% - 32px); margin: 48px auto; padding: 40px; border-radius: 36px; }
.page h1 { font-size: 40px; margin-bottom: 16px; } .page h2 { font-size: 26px; margin: 28px 0 10px; }
.page p, .page li { color: var(--soft); }
.small { font-size: 14px; color: var(--muted); }
