/* ==========================================================================
   OneTick website
   Dark, green-tinted brand look from the OneTick Figma design.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #050807;
  --bg-elev: #0a110f;
  --surface: #0f1714;
  --surface-2: #16201c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* The app's own (iOS dark) surfaces, used for the recreated UI */
  --app-bg: #1c1c1e;
  --app-card: #2c2c2e;
  --app-card-2: #3a3a3c;

  /* Text */
  --text: #f2f5f3;
  --text-2: #b0bbb5;
  --text-3: #7d8a84;

  /* Brand */
  --brand: #1faf5f;
  --brand-light: #42b76e;
  --brand-bright: #3ccf86;
  --brand-deep: #008763;
  --brand-tint: rgba(31, 175, 95, 0.12);

  /* App priority + category colours */
  --p-urgent: #ff453a;
  --p-high: #ff9f0a;
  --p-medium: #00a67e;
  --p-low: #40b4d0;
  --p-none: #8e8e93;
  --c-today: #4fc3dc;
  --c-all: #5e5ce6;
  --c-starred: #ff453a;
  --c-planned: #ff9f0a;

  /* Shape + rhythm */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* Added by main.js after load: smooth scrolling set in CSS from the start
   stops Chrome jumping to a #fragment when arriving from another page. */
html.smooth {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 650px at 12% -8%, rgba(22, 110, 74, 0.42), transparent 62%),
    radial-gradient(900px 600px at 100% 4%, rgba(12, 80, 58, 0.3), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: rgba(60, 207, 134, 0.3);
}

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2 * var(--gutter), 760px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
  position: relative;
}

.section-tight {
  padding-block: calc(var(--section) * 0.6);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 16px;
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.7;
}

.muted {
  color: var(--text-2);
}

.accent {
  color: var(--brand-bright);
}

.gradient-text {
  background: linear-gradient(120deg, #c9f0dc 0%, var(--brand-bright) 45%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid rgba(60, 207, 134, 0.22);
  color: var(--brand-bright);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
}

.eyebrow img {
  width: 20px;
  height: 20px;
}

.eyebrow.plain {
  padding-left: 14px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

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

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}

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

.btn-sm {
  --h: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #008763, #00704f);
  box-shadow: 0 12px 32px -12px rgba(31, 175, 95, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(31, 175, 95, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-store {
  --h: 58px;
  gap: 12px;
  padding: 0 24px 0 20px;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: left;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
}

.btn-store:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-store .icon {
  width: 26px;
  height: 26px;
  margin-top: -3px;
}

.btn-store span {
  display: grid;
  gap: 3px;
}

.btn-store small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.btn-store strong {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-bright);
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile menu and collapse it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 7, 0.78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  opacity: 0;
  transition: opacity 0.3s;
}

.site-header.is-scrolled::before,
.site-header[data-open]::before {
  opacity: 1;
}

.nav {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  transition: transform 0.5s var(--ease);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--brand-bright);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 12px;
  place-items: center;
  color: var(--text);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close,
.site-header[data-open] .nav-toggle .icon-menu {
  display: none;
}

.site-header[data-open] .nav-toggle .icon-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  padding: 24px var(--gutter) 40px;
  background: rgba(5, 8, 7, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.site-header[data-open] .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mobile-menu nav a[aria-current="page"] {
  color: var(--brand-bright);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 28px;
}

.mobile-menu-foot {
  margin-top: 28px;
  display: grid;
  gap: 6px;
  color: var(--text-3);
  font-size: 0.9rem;
}

@media (max-width: 899px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

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

.hero {
  position: relative;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy .display {
  margin-top: 22px;
}

.hero-words span {
  display: block;
}

.hero-words span:nth-child(1) {
  color: #dff3e8;
}

.hero-words span:nth-child(2) {
  color: #8fdcb3;
}

.hero-words span:nth-child(3) {
  color: var(--brand-bright);
}

.hero-copy .lead {
  margin-top: 24px;
  max-width: 520px;
}

.hero-copy .btn-row {
  margin-top: 36px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.hero-proof p {
  text-align: left;
}

.hero-proof strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.08;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 5% 0;
  background: radial-gradient(closest-side, rgba(31, 175, 95, 0.38), transparent);
  filter: blur(30px);
}

.hero-phone {
  position: absolute;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}

.hero-phone-front {
  width: 50%;
  right: 12%;
  top: 0;
  z-index: 2;
}

.hero-phone-back {
  width: 43%;
  left: 4%;
  top: 12%;
  z-index: 1;
  transform: rotate(-7deg);
  opacity: 0.92;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: rgba(32, 34, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  animation: float 7s ease-in-out infinite;
}

.float-card img {
  width: 34px;
  height: 34px;
}

.float-card b {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}

.float-card small {
  display: block;
  color: var(--text-2);
  font-size: 0.75rem;
}

.float-notif {
  bottom: 14%;
  left: -6%;
  max-width: 270px;
}

.float-notif .tag {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.float-progress {
  top: 3%;
  left: 2%;
  animation-delay: -3.5s;
}

.ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 4;
}

.ring .track {
  stroke: rgba(255, 255, 255, 0.12);
}

.ring .value {
  stroke: var(--brand-bright);
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: 25;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-copy .btn-row,
  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    max-width: 460px;
  }
}

@media (max-width: 520px) {
  .float-notif {
    left: 0;
    bottom: 10%;
    max-width: 220px;
    padding: 10px 12px 10px 10px;
  }

  .float-progress {
    display: none;
  }

  .float-card img {
    width: 28px;
    height: 28px;
  }

  .ring {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Wave divider (from the Figma design) ---------- */

.wave {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  color: var(--brand);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Split feature sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.split + .split {
  margin-top: var(--section);
}

.split-reverse .split-media {
  order: -1;
}

.split-copy .h2 {
  margin-top: 18px;
}

.split-copy .lead {
  margin-top: 18px;
}

.split-copy .link-arrow,
.split-copy .btn-row {
  margin-top: 28px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.check-list li strong {
  color: var(--text);
  font-weight: 600;
}

.check-list .bullet {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-bright);
}

.check-list .bullet .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.icon-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.icon-row span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-tint);
  border: 1px solid rgba(60, 207, 134, 0.18);
  color: var(--brand-bright);
}

.icon-row .icon {
  width: 24px;
  height: 24px;
}

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

  .split-reverse .split-media {
    order: 0;
  }

  .split-media {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

/* ---------- Recreated app UI ---------- */

.app-ui {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 32px;
  background: var(--app-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(31, 175, 95, 0.35);
  font-size: 0.95rem;
}

.app-ui-title {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.app-ui-title.big {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--p-medium);
  letter-spacing: -0.01em;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 14px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: var(--app-card);
}

.cat .icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
}

.cat b {
  font-weight: 500;
}

.cat small {
  color: var(--text-3);
  font-size: 0.8rem;
}

.cat .bar {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--app-card-2);
  overflow: hidden;
}

.cat .bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: currentColor;
  border-radius: inherit;
}

.cat.today { color: var(--c-today); }
.cat.all { color: var(--c-all); }
.cat.starred { color: var(--c-starred); }
.cat.planned { color: var(--c-planned); }
.cat b,
.cat small {
  grid-column: 2;
}
.cat b { color: var(--text); }

.app-lists {
  margin-top: 22px;
}

.app-lists h4 {
  font-weight: 500;
  margin-bottom: 10px;
}

.app-lists h4 span {
  color: var(--text-3);
  margin-left: 6px;
}

.app-lists ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.app-lists li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--app-card);
}

.app-lists li .icon {
  width: 20px;
  height: 20px;
}

.app-lists li span:last-child {
  margin-left: auto;
  color: var(--text-3);
}

@media (max-width: 420px) {
  .cat {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cat .icon {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .cat b,
  .cat small {
    grid-column: 1;
  }
}

/* ---------- Live demo list ---------- */

.demo-label {
  position: absolute;
  top: -14px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(31, 175, 95, 0.8);
}

.demo-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b5f5d2;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.demo-search {
  position: relative;
}

.demo-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}

.app-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--app-card);
  color: var(--text);
  font-size: 0.92rem;
}

.app-input::placeholder {
  color: var(--text-3);
}

.app-input:focus {
  outline: none;
  border-color: rgba(0, 166, 126, 0.6);
}

.demo-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--app-card);
  color: var(--p-medium);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

button.chip:hover {
  background: var(--app-card-2);
}

.chip .icon {
  width: 15px;
  height: 15px;
}

.chip[aria-pressed="true"] {
  background: rgba(0, 166, 126, 0.18);
}

.chip-count .dot {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p-medium);
  color: var(--app-bg);
}

.chip-count .dot .icon {
  width: 10px;
  height: 10px;
  stroke-width: 4;
}

.task-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  min-height: 120px;
}

.task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--app-card);
  animation: task-in 0.35s var(--ease);
}

@keyframes task-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--p-medium);
  color: #fff;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.tick .icon {
  width: 16px;
  height: 16px;
  stroke-width: 3.2;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.tick:hover {
  background: rgba(0, 166, 126, 0.15);
}

.task.is-done .tick {
  background: var(--p-medium);
}

.task.is-done .tick .icon {
  opacity: 1;
  transform: none;
}

.task.pop .tick {
  animation: pop 0.35s var(--ease);
}

@keyframes pop {
  50% {
    transform: scale(1.2);
  }
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.task-meta {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 0.78rem;
}

.task.is-done .task-title {
  color: var(--text-3);
  text-decoration: line-through;
}

.task-star {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--p-none);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.task-star:hover {
  background: rgba(255, 255, 255, 0.06);
}

.task-star:active {
  transform: scale(0.85);
}

.task-star .icon {
  width: 22px;
  height: 22px;
}

.task[data-priority="urgent"] .task-star { color: var(--p-urgent); }
.task[data-priority="high"] .task-star { color: var(--p-high); }
.task[data-priority="medium"] .task-star { color: var(--p-medium); }
.task[data-priority="low"] .task-star { color: var(--p-low); }
.task[data-priority="none"] .task-star .icon { fill: none; }

.task-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 16px;
  border: 1px dashed var(--app-card-2);
  color: var(--text-3);
  font-size: 0.88rem;
  text-align: center;
  padding: 16px;
}

.demo-add {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.demo-add .app-input {
  padding-left: 14px;
}

.demo-add button {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(31, 175, 95, 0.8);
  transition: transform 0.2s var(--ease);
}

.demo-add button:hover {
  transform: scale(1.06);
}

.demo-hint {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Bento feature grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(60, 207, 134, 0.28);
}

.card.span-2 {
  grid-column: span 2;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand-bright);
  margin-bottom: 18px;
}

.card-icon .icon {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.card-visual {
  margin-top: auto;
  padding-top: 24px;
}

.prio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prio-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--app-bg);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c, var(--text));
}

.prio-pills span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c, var(--text));
}

.notif {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(60, 60, 64, 0.55);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.4;
}

.notif img {
  width: 32px;
  height: 32px;
}

.notif div {
  flex: 1;
  min-width: 0;
}

.notif .notif-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notif b {
  display: block;
  font-weight: 600;
}

.notif span:not(.notif-top) {
  color: var(--text-2);
}

.notif + .notif {
  margin-top: 8px;
  opacity: 0.55;
  transform: scale(0.95);
}

.detail-rows {
  display: grid;
  gap: 8px;
}

.detail-rows span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--app-bg);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.86rem;
}

.detail-rows .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.search-mock {
  display: grid;
  gap: 10px;
}

.search-mock .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--app-bg);
  border: 1px solid rgba(0, 166, 126, 0.5);
  font-size: 0.88rem;
}

.search-mock .bar .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--p-medium);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.search-mock .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-mock mark {
  background: rgba(0, 166, 126, 0.25);
  color: var(--text);
  border-radius: 4px;
  padding: 0 2px;
}

.mini-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--app-bg);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.mini-task i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--p-medium);
}

.mini-task .icon {
  width: 18px;
  height: 18px;
}

.mini-task .end {
  margin-left: auto;
  display: grid;
}

.prio-demo {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.lock-visual {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lock-visual .lock-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(60, 207, 134, 0.25), rgba(0, 135, 99, 0.12));
  border: 1px solid rgba(60, 207, 134, 0.3);
  color: var(--brand-bright);
}

.lock-visual .lock-badge .icon {
  width: 28px;
  height: 28px;
}

.lock-visual small {
  display: block;
  color: var(--text-3);
  font-size: 0.8rem;
}

.dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-bright);
}

.dots i:nth-child(n + 4) {
  background: var(--app-card-2);
}

.swipe {
  position: relative;
  border-radius: 12px;
  background: var(--p-urgent);
  overflow: hidden;
}

.swipe .del {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.swipe .del .icon {
  width: 16px;
  height: 16px;
}

.swipe .mini-task {
  position: relative;
  border-radius: 12px;
  animation: swipe 4s var(--ease) infinite;
}

@keyframes swipe {
  0%,
  20%,
  85%,
  100% {
    transform: translateX(0);
  }
  40%,
  70% {
    transform: translateX(-96px);
  }
}

.drag-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.8rem;
}

.drag-hint .icon {
  width: 16px;
  height: 16px;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modes .mini-task {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.modes .light {
  background: #fff;
  color: #111;
  border-color: #e7e7e9;
}

.modes .mini-task small {
  font-size: 0.72rem;
  opacity: 0.6;
}

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

  .card.span-2 {
    grid-column: span 2;
  }
}

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

  .card.span-2 {
    grid-column: auto;
  }
}

/* ---------- Phone frame + screenshot gallery ---------- */

.phone {
  position: relative;
  padding: 3.4%;
  border-radius: 16% / 7.4%;
  background: #050505;
  box-shadow:
    inset 0 0 0 1px #2a2a2a,
    0 0 0 3px #b9babc,
    0 0 0 4px #6d6e70,
    0 40px 70px -30px rgba(0, 0, 0, 0.85);
}

.phone img {
  width: 100%;
  border-radius: 12.4% / 5.8%;
}

.gallery {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px max(var(--gutter), calc((100% - var(--container)) / 2)) 32px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  flex: none;
  width: clamp(200px, 22vw, 250px);
  scroll-snap-align: start;
}

.gallery figure > img {
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.gallery figcaption {
  margin-top: 22px;
  padding-inline: 4px;
}

.gallery figcaption b {
  display: block;
  font-weight: 600;
}

.gallery figcaption span {
  color: var(--text-2);
  font-size: 0.88rem;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-nav {
  display: flex;
  gap: 8px;
  flex: none;
}

.gallery-nav button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s, opacity 0.2s;
}

.gallery-nav button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.gallery-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-nav .flip {
  transform: scaleX(-1);
}

@media (max-width: 640px) {
  .gallery-nav {
    display: none;
  }
}

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

.stats {
  text-align: center;
}

.stats .h2 {
  font-weight: 600;
}

.stat-big {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.stat-big strong {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-big span {
  text-align: left;
  color: var(--text-2);
  line-height: 1.3;
}

.stat-big .badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--p-medium);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(0, 166, 126, 0.15);
}

.stat-big .badge .icon {
  width: 26px;
  height: 26px;
  stroke-width: 3;
}

/* ---------- Testimonials (alternating, as in Figma) ---------- */

.quotes {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.quote-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.quote-row:nth-child(even) {
  grid-template-columns: 1fr 1.5fr;
}

.quote-row:nth-child(even) .quote-statement {
  order: -1;
  text-align: right;
}

.quote-statement {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.quote-statement span {
  display: block;
  color: var(--brand-bright);
}

.quote {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--app-bg);
  border: 1px solid var(--line);
  box-shadow: inset 0 -4px 30px -10px rgba(0, 168, 129, 0.18);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote figcaption img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.quote figcaption b {
  display: block;
  font-weight: 600;
}

.quote figcaption span {
  color: var(--text-3);
  font-size: 0.88rem;
}

.quote blockquote {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.quote .stars {
  display: flex;
  gap: 2px;
  margin-left: auto;
  color: #ffc53d;
}

.quote .stars .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .quote-row,
  .quote-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quote-row:nth-child(even) .quote-statement {
    text-align: left;
  }

  .quote-statement span {
    display: inline;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background-color 0.2s;
}

.faq details[open] {
  border-color: rgba(60, 207, 134, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--text-3);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--brand-bright);
}

.faq .answer {
  padding: 0 24px 22px;
  color: var(--text-2);
}

.faq .answer p + p,
.faq .answer p + ol,
.faq .answer p + ul {
  margin-top: 10px;
}

.faq .answer ol,
.faq .answer ul {
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
}

.faq-group + .faq-group {
  margin-top: 48px;
}

.faq-group > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-group > h3 .icon {
  color: var(--brand-bright);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(60, 207, 134, 0.35), transparent 70%),
    linear-gradient(180deg, #0d2a1f, #07130f);
  border: 1px solid rgba(60, 207, 134, 0.2);
}

.cta-band .wordmark {
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-band .lead {
  max-width: 520px;
  margin: 20px auto 0;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 36px;
}

/* ---------- Sub-page hero ---------- */

.page-hero {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}

.page-hero .display {
  margin-top: 20px;
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
}

.page-hero .lead {
  max-width: 640px;
  margin: 20px auto 0;
}

.page-hero .btn-row {
  justify-content: center;
  margin-top: 32px;
}

/* Feature index chips on features.html */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.jump-links a:hover {
  color: var(--text);
  border-color: rgba(60, 207, 134, 0.4);
  background: var(--brand-tint);
}

.jump-links .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-bright);
}

.screen-solo {
  max-width: 300px;
  margin-inline: auto;
}

/* ---------- About ---------- */

.photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.values .card h3 {
  font-size: 1.5rem;
}

.values .card:nth-child(1) h3 { color: #dff3e8; }
.values .card:nth-child(2) h3 { color: #8fdcb3; }
.values .card:nth-child(3) h3 { color: var(--brand-bright); }

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

.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.founder .initials {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-light), var(--brand-deep));
  font-weight: 700;
  color: #fff;
}

.founder b {
  display: block;
  font-weight: 600;
}

.founder span {
  color: var(--text-3);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line-strong);
  margin-left: 8px;
}

.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand-bright);
}

.timeline b {
  display: block;
  font-weight: 600;
}

.timeline span {
  color: var(--text-2);
}

/* ---------- Support / contact ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.support-grid .card {
  text-decoration: none;
}

.support-grid .card .link-arrow {
  margin-top: 16px;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 899px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list .card-icon {
  margin: 0;
  flex: none;
}

.contact-list b {
  display: block;
  font-weight: 600;
}

.contact-list a {
  color: var(--brand-bright);
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list span {
  color: var(--text-2);
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.field label small {
  color: var(--text-3);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237d8a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(60, 207, 134, 0.15);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--p-urgent);
}

.form .btn {
  justify-self: start;
}

.form-note {
  color: var(--text-3);
  font-size: 0.85rem;
}

.form-status {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brand-tint);
  border: 1px solid rgba(60, 207, 134, 0.25);
  color: var(--text);
  font-size: 0.92rem;
}

.form-status[hidden] {
  display: none;
}

.form-status .icon {
  color: var(--brand-bright);
  margin-top: 2px;
}

.form-status a {
  color: var(--brand-bright);
  text-decoration: underline;
}

/* ---------- Legal prose ---------- */

.prose {
  color: var(--text-2);
  font-size: 1.02rem;
}

.prose h2 {
  margin: 48px 0 12px;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .updated {
  display: inline-block;
  margin-top: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
}

.toc {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.toc b {
  color: var(--text);
  font-weight: 600;
}

.toc ol {
  columns: 2;
  column-gap: 32px;
  display: block;
  margin-top: 10px;
}

.toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.toc a {
  text-decoration: none;
  color: var(--text-2);
}

.toc a:hover {
  color: var(--brand-bright);
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}

.not-found .code {
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.not-found .lead {
  max-width: 460px;
  margin: 16px auto 0;
}

.not-found .btn-row {
  justify-content: center;
  margin-top: 32px;
}

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

.site-footer {
  margin-top: var(--section);
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 16, 0.6), transparent);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 280px;
  color: var(--text-2);
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.socials a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.socials .icon {
  width: 18px;
  height: 18px;
}

.site-footer h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--text-2);
  transition: color 0.2s;
}

.site-footer ul a:hover {
  color: var(--brand-bright);
}

.site-footer address {
  font-style: normal;
  color: var(--text-2);
  display: grid;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

/* ---------- Launch dialog ---------- */

.launch-dialog {
  width: min(100% - 32px, 440px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9);
}

.launch-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.launch-dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.launch-inner {
  position: relative;
  padding: 36px 32px 32px;
  text-align: center;
}

.launch-inner img {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.launch-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.launch-inner p {
  margin-top: 10px;
  color: var(--text-2);
}

.launch-inner .btn-row {
  flex-direction: column;
  margin-top: 24px;
}

.launch-inner .btn {
  width: 100%;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-2);
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
