/* Wolvy — wolvy.in
   Direction: driven, exact, a little gritty. A dim gym at night.
   Cool ink neutrals, the logo's lime as the only accent, numbers in mono.
   Design pass based on unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */

:root {
  /* Neutral ramp, tinted slightly cool */
  --deep: #08090c;
  --bg: #0c0e12;
  --card: #12151b;
  --raised: #1a1e26;
  --line: rgba(238, 240, 245, 0.08);
  --line-strong: rgba(238, 240, 245, 0.14);
  --text: #eef0f5;
  --text-2: #a3a9b8;
  --text-3: #7a8296;

  --lime: #b3ed4d;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;
  --gutter: 32px;
  --section: 128px;
  --nav-h: 64px;
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 80px; --nav-h: 56px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 760px) { body { font-size: 16px; } }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Large figures stay in the sans with tabular digits; mono is for small meta. */
.figure { font-family: var(--font); font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; font-weight: 500; }

/* ---------- Navigation ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
}

.nav.solid {
  position: sticky;
  top: 0;
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-2);
  transition: color 150ms var(--ease);
}

.nav-links a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
}

.menu-toggle span,
.menu-toggle span::before {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

.menu-toggle span { position: relative; transform: translateY(-4px); }
.menu-toggle span::before { content: ""; position: absolute; left: 0; top: 8px; }

.menu-open .menu-toggle span { transform: translateY(0) rotate(45deg); }
.menu-open .menu-toggle span::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }

  .nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 17px;
  }

  .nav-links a:not(.btn):hover { background: var(--raised); }

  .nav-links .btn { margin-top: 8px; height: 48px; justify-content: center; font-size: 16px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--text);
  color: #0c0e12 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:hover { background: #ffffff; }

.btn-secondary {
  background: var(--raised);
  border-color: var(--line-strong);
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover { background: #222732; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }

.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: min(100svh, 920px);
  background: var(--deep);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

/* Fades the photo into the page and leaves calm space on the left for the text. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.82) 40%, rgba(8, 9, 12, 0.3) 66%, rgba(8, 9, 12, 0.4) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.6) 0%, rgba(8, 9, 12, 0) 24%, rgba(8, 9, 12, 0) 72%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  min-height: min(100svh, 920px);
}

.hero-copy {
  align-self: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 em { font-style: normal; color: var(--lime); }

.hero-lede {
  margin: 24px 0 40px;
  max-width: 34rem;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The whole phone sits in the first screen, sized to the window height. */
.hero-device {
  align-self: center;
  justify-self: center;
  padding: calc(var(--nav-h) + 16px) 0 32px;
}

@media (max-width: 860px) {
  .hero, .hero-grid { min-height: 0; }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 9, 12, 0.75) 0%, rgba(8, 9, 12, 0.55) 40%, rgba(8, 9, 12, 0.8) 70%, var(--bg) 100%);
  }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero-copy { padding: calc(var(--nav-h) + 56px) 0 0; }

  .hero-lede { font-size: 18px; margin: 20px 0 32px; }

  .hero-device { padding: 0 0 64px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 38px; }
}

/* ---------- Phone (the one rich moment) ---------- */

.phone {
  position: relative;
  height: clamp(440px, calc(100svh - var(--nav-h) - 144px), 680px);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 52px;
  background: #050608;
  box-shadow:
    0 0 0 1px rgba(238, 240, 245, 0.14),
    0 40px 80px rgba(0, 0, 0, 0.55);
}

@media (max-width: 860px) { .phone { height: 560px; } }
@media (max-width: 360px) { .phone { height: 500px; } }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: #000;
  color: #fff;
}

.screen svg.feed { position: absolute; inset: 0; width: 100%; height: 100%; }

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 13px;
  z-index: 3;
}

.screen-top {
  position: absolute;
  top: 48px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  font-size: 13px;
}

.chip {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(8, 9, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
}

.counter {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.counter .reps { font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.counter .of { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-top: 4px; }

.screen-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 16px;
  border-radius: 30px;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
  font-size: 13px;
}

.form-row { display: flex; justify-content: space-between; align-items: baseline; }
.form-row strong { font-size: 22px; font-weight: 500; }
.form-row .label { color: rgba(255, 255, 255, 0.65); }
.cue { margin-top: 4px; color: rgba(255, 255, 255, 0.85); }

.bar { margin-top: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.bar i { display: block; height: 100%; width: 70%; background: var(--lime); border-radius: 2px; transition: width 400ms var(--ease); }

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

section { padding: var(--section) 0; }

.section-head { max-width: 640px; margin-bottom: 64px; }

.section-head h2,
.split h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-head p,
.split .lede { margin: 20px 0 0; font-size: 19px; color: var(--text-2); }

@media (max-width: 760px) {
  .section-head { margin-bottom: 40px; }
  .section-head p, .split .lede { font-size: 17px; }
}

/* Features: a ruled list, no icon tiles */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature {
  padding: 32px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}

.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature:nth-child(3n + 1) { padding-left: 0; border-left: 0; }

.feature h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n + 1) { padding-left: 32px; border-left: 1px solid var(--line); }
  .feature:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .feature:nth-child(3n + 1) { padding: 24px 0 28px; border-left: 0; }
}

/* Wake-up: copy next to a quiet alarm card */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.ticks { list-style: none; padding: 0; margin: 32px 0 0; }

.ticks li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.ticks li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.alarm {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.alarm-time { font-size: clamp(56px, 7vw, 80px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.alarm-sub { margin-top: 8px; color: var(--text-2); }

.alarm-task {
  margin: 28px 0 8px;
  padding: 16px;
  border-radius: 12px;
  background: var(--raised);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.alarm-task span:last-child { color: var(--lime); }

.locked { list-style: none; padding: 0; margin: 0; }

.locked li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.locked li:last-child { border-bottom: 0; }

.locked .state { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.locked svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .alarm { padding: 24px; border-radius: 16px; }
  .alarm-task { border-radius: 8px; }
}

/* Focus modes: a schedule, not photo cards */
.schedule { border-top: 1px solid var(--line); }

.slot {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.slot h3 { font-size: 22px; }
.slot p { margin: 0; color: var(--text-2); }
.slot .time { color: var(--text); font-size: 15px; text-align: right; }

@media (max-width: 700px) {
  .slot { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
  .slot h3 { font-size: 19px; }
  .slot p { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .slot .time { font-size: 14px; }
}

/* Steps, marked with the joint-dot signature */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step { position: relative; padding-top: 40px; }

.step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: -32px;
  height: 1px;
  background: var(--line-strong);
}

.step:last-child::before { right: 0; }

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--lime);
}

.step .n { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 32px 40px; }
  .step::before { top: 16px; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.plan.featured { background: var(--raised); border-color: rgba(179, 237, 77, 0.45); }

.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h3 { font-size: 18px; }
.plan .tag { font-size: 13px; color: var(--lime); }

.price { margin: 20px 0 4px; font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.price small { font-family: var(--font); font-size: 15px; letter-spacing: 0; color: var(--text-2); font-weight: 400; }
.billing { margin: 8px 0 24px; font-size: 14px; color: var(--text-3); }

.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.plan .btn { width: 100%; }

.fine { margin: 24px 0 0; font-size: 14px; color: var(--text-3); max-width: 640px; }
.fine a { color: var(--text-2); }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan.featured { order: -1; }
}

@media (max-width: 480px) {
  .plan { padding: 24px; }
  .price { font-size: 40px; }
}

/* FAQ */
.faq { max-width: 800px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 500;
}

.faq summary::-webkit-details-marker { display: none; }

/* A thin plus that turns into a minus */
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--text-3), var(--text-3)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--text-3), var(--text-3)) center / 1.5px 14px no-repeat;
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after { transform: rotate(90deg); background-size: 14px 1.5px, 0 0; }

.faq details p { margin: 0 0 24px; max-width: 640px; color: var(--text-2); }
.faq details a { color: var(--text); }

@media (max-width: 760px) {
  .faq summary { font-size: 17px; min-height: 64px; }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.contact h3 { font-size: 14px; font-weight: 400; color: var(--text-3); margin-bottom: 8px; }
.contact p { margin: 0; font-size: 18px; line-height: 1.5; }
.contact a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.contact a:hover { text-decoration-color: var(--lime); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .contact p { font-size: 17px; }
}

/* Closing band */
.cta { padding: var(--section) 0; border-top: 1px solid var(--line); }

.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

@media (max-width: 480px) { .cta .btn { width: 100%; } }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(48px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--text-3);
}

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; color: var(--text-2); transition: color 150ms var(--ease); }
.foot-links a:hover { color: var(--text); }

@media (max-width: 600px) {
  .foot { flex-direction: column-reverse; }
  .foot-links { flex-direction: column; gap: 12px; }
}

/* ---------- Entrance: one short fade and rise ---------- */

.rise { animation: rise 500ms var(--ease) both; }
.rise:nth-child(2) { animation-delay: 60ms; }
.rise:nth-child(3) { animation-delay: 120ms; }
.hero-device.rise { animation-delay: 180ms; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* ---------- Legal pages ---------- */

.legal { padding: 80px 0 128px; }
.legal .wrap { max-width: calc(760px + var(--gutter) * 2); }

.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.legal .updated { margin: 16px 0 48px; color: var(--text-3); font-size: 15px; }
.legal h2 { font-size: 22px; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); font-weight: 500; }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal a { color: var(--text); text-underline-offset: 4px; }

.legal .table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal th { color: var(--text-3); font-weight: 400; }

@media (max-width: 760px) {
  .legal { padding: 48px 0 80px; }
  .legal h2 { font-size: 20px; margin-top: 40px; }
}
