/* Whipeit landing — design tokens and layout.
   Expand later with .shots (screenshots), .faq, .store-badge.
   Do not change public paths /privacy and /terms. */

:root {
  --bg: #050505;
  --text: #f5f5f7;
  --dim: #a1a1aa;
  --keep: #30d158;
  --delete: #ff453a;
  --accent: #0a84ff;
  --surface: #111113;
  --surface-2: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --max: 70rem;
  --legal: 40rem;
  --radius: 1.125rem;
  --header-h: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #64abff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 0.5rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
}

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

.logo {
  width: 2rem;
  height: 2rem;
  border-radius: 22%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2a2a2e 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.wordmark {
  font-size: 1.05rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang a {
  color: var(--dim);
  text-decoration: none;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.lang a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Buttons / CTA */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn:hover {
  color: #fff;
  background: #3390ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header-cta {
  display: none;
}

@media (min-width: 720px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hero */

.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--dim);
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.fine {
  margin: 0.85rem 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

/* Phone schematic */

.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  width: min(100%, 17.5rem);
  aspect-ratio: 9 / 18.4;
  padding: 0.55rem;
  border-radius: 2.35rem;
  background: #1a1a1d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px #000,
    0 28px 60px rgba(0, 0, 0, 0.55);
}

.phone-screen {
  height: 100%;
  border-radius: 1.85rem;
  background: #0b0b0c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.9rem 1rem;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 0.35rem 0.7rem;
}

.month-chip {
  align-self: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
}

.card-stack {
  position: relative;
  flex: 1;
  min-height: 0;
}

.photo-card,
.photo-card-back {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
}

.photo-card-back {
  inset: 0.55rem -0.35rem auto;
  height: calc(100% - 1.4rem);
  background: #1c1c1f;
  transform: rotate(4deg);
}

.photo-card {
  background:
    radial-gradient(120% 80% at 20% 15%, rgba(10, 132, 255, 0.35), transparent 50%),
    radial-gradient(90% 70% at 80% 80%, rgba(48, 209, 88, 0.22), transparent 45%),
    linear-gradient(165deg, #2c3340 0%, #15181f 55%, #0e1014 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  animation: card-hint 4.8s ease-in-out infinite;
}

.photo-card span {
  font-size: 0.72rem;
  color: rgba(245, 245, 247, 0.72);
  font-weight: 500;
}

.gestures {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.g-delete {
  color: var(--delete);
}

.g-keep {
  color: var(--keep);
}

@keyframes card-hint {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  35% {
    transform: translateX(10px) rotate(2.2deg);
  }
  70% {
    transform: translateX(-10px) rotate(-2.2deg);
  }
}

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

  .photo-card {
    animation: none;
  }
}

/* Sections */

.section {
  padding: 1.25rem 0 3.25rem;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.tiles {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 760px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.tile {
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tile h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.tile p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.tile-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tile-icon.keep {
  background: rgba(48, 209, 88, 0.12);
  color: var(--keep);
}

.tile-icon.lock {
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent);
}

.tile-icon.warn {
  background: rgba(255, 69, 58, 0.12);
  color: var(--delete);
}

.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.limits {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 760px) {
  .limits {
    grid-template-columns: 1fr 1fr;
  }
}

.limit-card {
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.limit-card.featured {
  border-color: rgba(10, 132, 255, 0.35);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(10, 132, 255, 0.12), transparent 55%),
    var(--surface);
}

.limit-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.limit-card p {
  margin: 0 0 0.7rem;
  color: var(--dim);
  font-size: 0.95rem;
}

.limit-card p:last-child {
  margin-bottom: 0;
}

.notes {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 0.9rem;
}

.notes li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--dim);
}

.cta-band {
  margin: 0.5rem 0 3.5rem;
  padding: 1.6rem 1.3rem;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.cta-band p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

/* Future expansion hooks (unused until screenshots / FAQ / badge land) */

.shots,
.faq,
.store-badge {
  /* reserved */
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--dim);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
}

.site-footer a {
  color: var(--dim);
  text-decoration: none;
}

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

.dot {
  color: #3f3f46;
}

.site-footer .lang {
  margin-left: auto;
}

@media (max-width: 640px) {
  .site-footer .lang {
    margin-left: 0;
  }
}

/* Legal pages */

.page-legal .wrap-legal {
  width: min(100% - 2rem, var(--legal));
  margin-inline: auto;
  padding: 2rem 0 3.5rem;
}

.legal-article {
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

.legal-article + .legal-article {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.legal-article h1 {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.updated {
  margin: 0 0 1.75rem;
  color: var(--dim);
  font-size: 0.92rem;
}

.legal-article h2 {
  margin: 1.85rem 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.legal-article p,
.legal-article li {
  color: #d4d4d8;
}

.legal-article p {
  margin: 0 0 0.85rem;
}

.legal-article ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal-article li {
  margin: 0.25rem 0;
}

.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
}

.legal-switch a {
  color: var(--dim);
}

/* 404 */

.page-404 main {
  min-height: calc(100vh - var(--header-h) - 6rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.page-404 h1 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
}

.page-404 p {
  color: var(--dim);
}

/* Print (privacy / terms for Apple + users) */

@media print {
  :root {
    --bg: #fff;
    --text: #111;
    --dim: #333;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .skip,
  .legal-switch {
    display: none !important;
  }

  .legal-article h1,
  .legal-article h2,
  .legal-article p,
  .legal-article li {
    color: #111;
  }

  .legal-article + .legal-article {
    border-top: 1px solid #ccc;
    break-before: page;
  }

  a {
    color: #111;
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
}
