/* ─────────────────────────────────────────────────────────
   My Tasks — Homepage (redesign 2026-07)
   "Sunday planner": warm paper, ink, periwinkle accents,
   Fraunces display + Inter body. Self-hosted fonts.
   ───────────────────────────────────────────────────────── */

/* ── Fonts (self-hosted, variable) ─────────────────────── */
@font-face {
  font-family: "InterVariable";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVariable";
  src: url("/assets/fonts/inter-greek-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,
    U+03A3-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: "FrauncesVariable";
  src: url("/assets/fonts/fraunces-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ── Reset & tokens ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #fbfaf7;
  --paper-deep: #f4f1ea;
  --card: #ffffff;
  --ink: #1e2530;
  --ink-soft: #59616e;
  --ink-faint: #8b919c;
  --hairline: #e6e2d8;

  --peri: #6c8ac1;
  --peri-deep: #4e6a9a;
  --peri-ink: #3c5480;
  --peri-wash: #eef2f9;
  --peri-wash-2: #dfe7f4;

  --navy: #232b47;
  --navy-deep: #1a2138;
  --coral: #e05b54;
  --coral-wash: #fdeeed;
  --leaf: #3e7d5a;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 10px rgba(30, 37, 48, 0.06);
  --shadow-md: 0 10px 34px rgba(30, 37, 48, 0.1);
  --shadow-lg: 0 26px 60px rgba(30, 37, 48, 0.16);

  --font-body: "InterVariable", "Inter", system-ui, "Segoe UI", Roboto,
    sans-serif;
  --font-display: "FrauncesVariable", "Fraunces", Georgia, "Times New Roman",
    serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

.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;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 104px 0;
}

/* ── App icon squircle ─────────────────────────────────── */
.app-icon {
  border-radius: 24%;
  display: block;
  flex-shrink: 0;
}
.app-icon-sm {
  width: 36px;
  height: 36px;
  box-shadow: var(--shadow-sm);
}
.app-icon-pill {
  width: 26px;
  height: 26px;
}

/* ── Scroll reveal (class added by JS — no-JS stays visible) ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Section headers ───────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--peri-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--peri-wash-2);
  background: var(--peri-wash);
  border-radius: 100px;
}
.section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--peri);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 560;
  letter-spacing: -0.6px;
  line-height: 1.12;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Navbar ────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  padding: 12px 0;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.nav-header.scrolled {
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 530;
  font-size: 14.5px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--peri-ink);
}
.btn-nav {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 9px 20px !important;
  border-radius: 100px !important;
  font-weight: 620 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-nav:hover {
  background: var(--peri-deep) !important;
  transform: translateY(-1px);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language picker */
.lang-picker {
  position: relative;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lang-current:hover {
  border-color: var(--peri);
  color: var(--peri-ink);
  background: var(--peri-wash);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 6px;
  list-style: none;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 300;
}
.lang-dropdown.open {
  display: block;
}
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-opt:hover,
.lang-opt.active {
  background: var(--peri-wash);
  color: var(--peri-ink);
  font-weight: 600;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 152px 0 96px;
  background:
    radial-gradient(720px 480px at 82% 8%, rgba(108, 138, 193, 0.14), transparent 62%),
    radial-gradient(560px 420px at 4% 92%, rgba(224, 91, 84, 0.05), transparent 60%),
    var(--paper);
  overflow: hidden;
}
/* planner dot-grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 37, 48, 0.075) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 6px 15px 6px 7px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-soft);
  letter-spacing: 0.1px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 590;
  line-height: 1.07;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  max-width: 13em;
}
/* hand-drawn underline on "free" */
.hero-text .hl {
  font-style: normal;
  color: var(--peri-ink);
  position: relative;
  white-space: nowrap;
}
.hero-text .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: 0.02em;
  height: 0.16em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 12" preserveAspectRatio="none"><path d="M2 9 C 30 3, 60 2.6, 118 6.4" fill="none" stroke="%236C8AC1" stroke-width="5" stroke-linecap="round" opacity="0.55"/></svg>')
    no-repeat center / 100% 100%;
  pointer-events: none;
}
/* inline check after "offline" */
.hl-check {
  white-space: nowrap;
}
.hl-check svg {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.1em;
  vertical-align: baseline;
  color: var(--leaf);
}
.hl-check svg path {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: draw-check 0.55s 0.75s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-desc {
  font-size: 17.5px;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 470px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px dashed var(--hairline);
  padding-top: 22px;
  max-width: 470px;
}
.hero-stat {
  flex: 1 1 auto;
  min-width: 90px;
}
.hero-stat + .hero-stat {
  border-left: 1px solid var(--hairline);
  padding-left: 20px;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 620;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.hero-stat span {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-top: 3px;
  display: block;
}

/* Store badges */
.gplay-badge,
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 11px 22px;
  border-radius: 13px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 8px 22px rgba(30, 37, 48, 0.22);
}
.gplay-badge:hover,
.appstore-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(30, 37, 48, 0.3);
  background: #0d1420;
}
.badge-icon {
  width: 27px;
  height: 31px;
  flex-shrink: 0;
}
.badge-icon-apple {
  fill: #fff;
}
.badge-text {
  display: flex;
  flex-direction: column;
}
.badge-get {
  font-size: 9.5px;
  font-weight: 480;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 3px;
}
.badge-name {
  font-size: 18.5px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.2px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-width: 0;
}
.hero-phone-wrap {
  position: relative;
  width: min(378px, 88%);
  margin: 0 auto;
}
/* paper card behind the phone */
.hero-phone-wrap::before {
  content: "";
  position: absolute;
  inset: 7% -13% -5% 12%;
  background: linear-gradient(160deg, var(--peri-wash) 0%, var(--peri-wash-2) 100%);
  border: 1px solid var(--peri-wash-2);
  border-radius: var(--radius-lg);
  transform: rotate(3.2deg);
}
.hero-phone {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 44px rgba(30, 37, 48, 0.24));
  animation: phone-float 8s ease-in-out infinite;
}
@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* floating UI chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  padding: 10px 15px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: chip-float 7s ease-in-out infinite;
}
.float-chip-done {
  top: 13%;
  left: -19%;
  animation-delay: 0.8s;
}
.float-chip-done .chip-label {
  text-decoration: line-through;
  text-decoration-color: rgba(30, 37, 48, 0.4);
  text-decoration-thickness: 1.5px;
  color: var(--ink-soft);
}
.chip-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--peri);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-box svg {
  width: 12px;
  height: 12px;
}
.float-chip-remind {
  bottom: 24%;
  right: -17%;
  animation-delay: 2s;
}
.chip-bell {
  width: 17px;
  height: 17px;
  color: var(--coral);
  flex-shrink: 0;
}
.float-chip-offline {
  bottom: 4%;
  left: -13%;
  animation-delay: 3.4s;
  font-size: 12.5px;
}
.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(62, 125, 90, 0.15);
}
@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ── Features ──────────────────────────────────────────── */
.features {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.features-grid + .features-grid {
  margin-top: 18px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s,
    border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--peri-wash-2);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ic-bg, var(--peri-wash));
  color: var(--ic-color, var(--peri-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 23px;
  height: 23px;
}
.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.68;
}

.feature-card--hero {
  background: linear-gradient(180deg, var(--card) 0%, var(--peri-wash) 130%);
  padding: 36px 30px;
}
.feature-card--hero .feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}
.feature-card--hero .feature-icon svg {
  width: 28px;
  height: 28px;
}
.feature-card--hero h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.feature-card--hero p {
  font-size: 15px;
}

.feature-card--polish {
  padding: 22px;
  border-radius: 14px;
}
.feature-card--polish .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 13px;
}
.feature-card--polish .feature-icon svg {
  width: 19px;
  height: 19px;
}
.feature-card--polish h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.feature-card--polish p {
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── Offline / privacy band ────────────────────────────── */
.private {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.private::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.private::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  top: -280px;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 138, 193, 0.28) 0%, transparent 65%);
  pointer-events: none;
}
.private-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  z-index: 1;
}
.section-label--dark {
  color: #c4d2ec;
  background: rgba(108, 138, 193, 0.16);
  border-color: rgba(108, 138, 193, 0.34);
}
.section-label--dark::before {
  background: #9db4dd;
}
.private-text h2 {
  font-family: var(--font-display);
  font-size: clamp(29px, 3.4vw, 42px);
  font-weight: 560;
  letter-spacing: -0.5px;
  line-height: 1.14;
  margin: 16px 0 16px;
}
.private-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 30px;
}
.private-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}
.private-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.92);
}
.pl-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(108, 138, 193, 0.28);
  border: 1px solid rgba(157, 180, 221, 0.5);
  color: #cdddf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pl-box svg {
  width: 14px;
  height: 14px;
}
.private-link {
  color: #b9cae8;
  font-weight: 620;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 202, 232, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.private-link:hover {
  color: #fff;
  border-color: #fff;
}
.private-visual {
  display: flex;
  justify-content: center;
}
.private-phone {
  width: min(330px, 82%);
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  transform: rotate(2.6deg);
}

/* ── How it works ──────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
  position: relative;
}
.how-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(16.666% + 30px);
  right: calc(16.666% + 30px);
  border-top: 2px dashed var(--peri-wash-2);
}
.how-step {
  text-align: center;
  position: relative;
}
.how-number {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid var(--peri-wash-2);
  color: var(--peri-ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 620;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
  position: relative;
  z-index: 1;
}
.how-step:nth-child(2) .how-number {
  transform: rotate(2.5deg);
}
.how-step:nth-child(3) .how-number {
  transform: rotate(-2deg);
}
.how-step h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.how-step p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 270px;
  margin: 0 auto;
}

/* ── Screenshots marquee ───────────────────────────────── */
.screenshots-section {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.marquee-area {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.marquee-left {
  animation: mq-scroll-left 44s linear infinite;
}
.marquee-area.paused .marquee-track,
.marquee-area:hover .marquee-track,
.marquee-area:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes mq-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.mq-img {
  height: 380px;
  width: auto;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.mq-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  pointer-events: none;
  z-index: 2;
}
.mq-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--card) 0%, transparent 100%);
}
.mq-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--card) 0%, transparent 100%);
}

/* ── Compare ───────────────────────────────────────────── */
.compare-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 14px 26px 26px;
  box-shadow: var(--shadow-md);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 15px 12px;
  text-align: center;
  border-bottom: 1px solid var(--paper-deep);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table thead th {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
  border-bottom: 2px solid var(--hairline);
}
.compare-table thead th.ct-brand {
  color: var(--peri-ink);
  font-size: 15px;
}
.compare-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 570;
  color: var(--ink);
  max-width: 220px;
}
.compare-table td.ct-brand {
  background: var(--peri-wash);
  font-weight: 650;
  color: var(--peri-ink);
}
.compare-table tbody tr:first-child td.ct-brand {
  border-radius: 0;
}
.compare-table td {
  color: var(--ink-soft);
}
.ct-yes {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--peri);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.ct-no {
  color: var(--ink-faint);
  font-size: 15px;
}
.compare-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}
.compare-links {
  margin-top: 8px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.compare-links a {
  color: var(--peri-ink);
  font-weight: 620;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--peri-wash-2);
  transition: border-color 0.2s;
}
.compare-links a:hover {
  border-color: var(--peri);
}

/* ── Resources (guides & templates) ────────────────────── */
.resources {
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.resource-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--peri-ink);
  background: var(--peri-wash);
  padding: 4px 10px;
  border-radius: 100px;
}
.resource-tag--t {
  color: #a34540;
  background: var(--coral-wash);
}
.resource-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 580;
  letter-spacing: -0.2px;
  line-height: 1.32;
  color: var(--ink);
  flex-grow: 1;
}
.resource-more {
  font-size: 13.5px;
  font-weight: 640;
  color: var(--peri-ink);
}
.resources-all {
  text-align: center;
  margin-top: 34px;
  font-size: 15px;
  display: flex;
  gap: 14px;
  justify-content: center;
  color: var(--ink-faint);
}
.resources-all a {
  color: var(--peri-ink);
  font-weight: 640;
  text-decoration: none;
  border-bottom: 1px solid var(--peri-wash-2);
}
.resources-all a:hover {
  border-color: var(--peri);
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-inner {
  max-width: 760px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--peri-wash-2);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.1px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--peri);
  line-height: 1;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  padding: 0 0 22px;
  max-width: 640px;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta-section {
  position: relative;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #31406b 100%);
  overflow: hidden;
  padding: 96px 0 0;
}
.cta-glow {
  position: absolute;
  width: 860px;
  height: 860px;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(108, 138, 193, 0.3) 0%, transparent 62%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
  z-index: 1;
}
.cta-visual {
  align-self: end;
  display: flex;
  justify-content: center;
}
.cta-phone {
  width: min(300px, 84%);
  height: auto;
  margin-bottom: -80px;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.5));
  transform: rotate(-3deg);
}
.cta-text {
  color: #fff;
  padding-bottom: 96px;
  text-align: left;
}
.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 570;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.cta-text > p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 34px;
  max-width: 460px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-section .gplay-badge,
.cta-section .appstore-badge {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cta-section .gplay-badge:hover,
.cta-section .appstore-badge:hover {
  background: var(--paper);
}
.cta-section .badge-icon-apple {
  fill: var(--ink);
}
.cta-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: #10151f;
  padding: 64px 0 36px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 24%;
}
.footer-brand span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.footer-desc {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 320px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.42);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.footer-social a:hover {
  background: var(--peri);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg {
  width: 17px;
  height: 17px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col h4 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.28);
}
.footer-also-try {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-also-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.footer-also-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 6px 16px;
  transition: background 0.2s, color 0.2s;
}
.footer-also-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* ── Sticky mobile CTA (shown ≤640px) ──────────────────── */
.sticky-mobile-cta {
  display: none;
}

/* ── Motion preferences ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-phone,
  .float-chip {
    animation: none !important;
  }
  .hl-check svg path {
    animation: none !important;
    stroke-dashoffset: 0;
  }
  .reveal {
    transition: none !important;
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .section {
    padding: 84px 0;
  }
  .hero {
    padding: 132px 0 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
    text-align: center;
  }
  .hero-text h1 {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    margin: 0 auto;
    justify-content: center;
  }
  .hero-phone-wrap {
    width: min(320px, 80%);
  }
  .float-chip-done {
    left: -24%;
  }
  .float-chip-remind {
    right: -22%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .private-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .private-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .private-list {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cta-visual {
    order: 2;
    margin-top: 48px;
  }
  .cta-phone {
    margin-bottom: -60px;
  }
  .cta-text {
    text-align: center;
    padding-bottom: 0;
  }
  .cta-text > p {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 340px;
    margin: 0 auto;
  }
  .how-grid::before {
    display: none;
  }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--hairline);
    z-index: 199;
    padding-bottom: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--paper-deep);
    width: 100%;
  }
  .nav-links .btn-nav {
    margin: 12px 28px 4px !important;
    border-radius: 12px !important;
    text-align: center !important;
    width: calc(100% - 56px) !important;
    padding: 14px 24px !important;
  }
  .nav-hamburger {
    display: flex;
  }
  .lang-current span {
    display: none;
  }

  .hero {
    padding: 116px 0 64px;
  }
  .hero-text h1 {
    font-size: clamp(30px, 8.6vw, 40px);
    letter-spacing: -0.8px;
  }
  .hero-stat + .hero-stat {
    padding-left: 14px;
  }
  .hero-stat strong {
    font-size: 19px;
  }
  .float-chip-done {
    left: -6%;
    top: 8%;
  }
  .float-chip-remind {
    right: -5%;
  }
  .float-chip-offline {
    left: -3%;
  }

  .mq-img {
    height: 230px;
    border-radius: 13px;
  }
  .mq-fade {
    width: 54px;
  }

  .compare-card {
    padding: 6px 10px 20px;
  }
  .compare-table {
    font-size: 12.5px;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 6px;
  }
  .compare-table tbody th[scope="row"] {
    font-size: 12.5px;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* sticky mobile download bar */
  .sticky-mobile-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 16px;
    border-radius: 15px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 21, 31, 0.38);
    z-index: 200;
  }
  .sticky-mobile-cta:active {
    transform: scale(0.98);
  }
  .sticky-mobile-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 1;
  }
  .sticky-mobile-cta-line1 {
    font-size: 14px;
    font-weight: 700;
  }
  .sticky-mobile-cta-line2 {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.78;
    margin-top: 2px;
  }
  body {
    padding-bottom: 84px;
  }
}
