:root {
  --bg: #f0f0ed;
  --surface: #f8f8f6;
  --surface-2: #f2f2ef;
  --text: #151514;
  --muted: #666664;
  --line: #ddddda;
  --primary: #1f1f1d;
  --primary-dark: #0f0f0e;
  --primary-contrast: #f2f2f0;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-line: rgba(0, 0, 0, 0.04);
  --nav-link: #2a2a28;
  --nav-link-hover: #111111;
  --hero-glow-1: rgba(56, 181, 99, 0.2);
  --hero-glow-2: rgba(56, 181, 99, 0);
  --hero-frame-shadow: rgba(10, 10, 10, 0.35);
  --soft-panel-bg: linear-gradient(180deg, #f8f8f6, #ededeb);
  --panel-line: #d6d6d3;
  --step-no: #d5d5d1;
  --card-bg: #ffffff;
  --card-shadow: rgba(32, 33, 36, 0.1);
  --ui-border: #dfdfdb;
  --ui-bg: #f3f3f0;
  --ui-label: #7a7a77;
  --chip-bg: #deded9;
  --chip-text: #30302e;
  --ui-note: #7a7a76;
  --scan-bg: linear-gradient(180deg, #f0f3ee 0%, #f3f3f0 100%);
  --scan-pill-bg: #e0e2dc;
  --scan-pill-text: #2e322f;
  --privacy-bg: #1f1f1d;
  --privacy-text: rgba(255, 255, 255, 0.86);
  --footer-bg: #0f100f;
  --footer-subtle: rgba(255, 255, 255, 0.66);
  --footer-link: #c5cdc2;
  --footer-link-hover: #ffffff;
  --footer-copyright: #96a094;
  --menu-icon: #1a1f2d;
  --mobile-link: #2a3042;
  --brand-mark-bg: #000000;
  --brand-mark-text: #ffffff;
  --brand-mark-border: transparent;
  --toggle-bg: #edf1f8;
  --toggle-text: #222939;
  --toggle-border: #dce2ee;
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: min(1200px, calc(100% - 40px));
}

html[data-theme="dark"] {
  --bg: #06080c;
  --surface: #111311;
  --surface-2: #0d100d;
  --text: #f0f0ec;
  --muted: #9fa39b;
  --line: #262a26;
  --primary: #7ef0b8;
  --primary-dark: #5ed89f;
  --primary-contrast: #042515;
  --header-bg: rgba(7, 10, 15, 0.82);
  --header-line: rgba(255, 255, 255, 0.08);
  --nav-link: #cfd8e7;
  --nav-link-hover: #ffffff;
  --hero-glow-1: rgba(126, 240, 184, 0.28);
  --hero-glow-2: rgba(126, 240, 184, 0);
  --hero-frame-shadow: rgba(0, 0, 0, 0.58);
  --soft-panel-bg: linear-gradient(180deg, #111711, #0d120d);
  --panel-line: #2a352b;
  --step-no: #1d2534;
  --card-bg: #0f140f;
  --card-shadow: rgba(0, 0, 0, 0.36);
  --ui-border: #243125;
  --ui-bg: #101810;
  --ui-label: #b2c0b0;
  --chip-bg: #253526;
  --chip-text: #d8e5d6;
  --ui-note: #a5b5a2;
  --scan-bg: linear-gradient(180deg, #0d180d 0%, #0d130d 100%);
  --scan-pill-bg: #253526;
  --scan-pill-text: #d8e5d6;
  --privacy-bg: #111711;
  --privacy-text: rgba(232, 241, 255, 0.84);
  --footer-bg: #080d15;
  --footer-subtle: rgba(224, 233, 247, 0.66);
  --footer-link: #bac8ba;
  --footer-link-hover: #ffffff;
  --footer-copyright: #8f9f90;
  --menu-icon: #d4deee;
  --mobile-link: #d5def0;
  --brand-mark-bg: #ffffff;
  --brand-mark-text: #030508;
  --brand-mark-border: rgba(255, 255, 255, 0.18);
  --toggle-bg: #1a2332;
  --toggle-text: #e7eefb;
  --toggle-border: #2c3950;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(58px, 8vw, 84px) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-line);
}

.nav-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--brand-mark-border);
  object-fit: cover;
  display: block;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--nav-link-hover);
}

.theme-toggle {
  margin-left: 14px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-text);
  border-radius: 999px;
  min-width: 70px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  margin-left: 18px;
  padding: 11px 20px;
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  padding: 12px 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero {
  display: flex;
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
  padding-top: 56px;
}

.hero-copy {
  flex: 1;
  max-width: 680px;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.45rem);
  line-height: 1.03;
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.28rem);
  max-width: 36ch;
  margin: 20px 0 0;
}

.build-note {
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--muted);
  opacity: 0.62;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--line);
  background: var(--surface);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.app-store-badge {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.22s ease;
}

.app-store-badge img {
  width: 182px;
  height: auto;
  display: block;
}

.desktop-download.app-store-badge img {
  width: 150px;
}

.app-store-badge:hover {
  transform: translateY(-1px);
}

.coming-soon-link {
  cursor: not-allowed;
}

.coming-soon-link * {
  cursor: not-allowed;
}

.coming-soon-link:hover {
  transform: none;
}

.hero-device-wrap {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--hero-glow-1), var(--hero-glow-2));
  filter: blur(20px);
  z-index: -1;
}

.hero-phone-art {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1780 / 3555;
  transform-style: preserve-3d;
  transition: transform 0.16s ease;
}

.hero-screen-fill {
  position: absolute;
  left: 8.43%;
  top: 4.44%;
  width: 83.6%;
  height: 91%;
  object-fit: cover;
  border-radius: 44px;
}

.hero-phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 52px var(--hero-frame-shadow));
}

.how {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  align-items: start;
  gap: 90px;
}

.soft-panel {
  background: var(--soft-panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(39, 43, 59, 0.08);
}

.panel-title {
  margin: 0 0 18px;
  font-size: 1.24rem;
  font-weight: 700;
}

.calc-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-line);
  padding: 14px 0;
}

.calc-line:last-child {
  border-bottom: 0;
}

.calc-line .label {
  color: var(--muted);
}

.how-steps h2,
.section-heading h2,
.privacy-block h2,
.cta h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.95rem);
  line-height: 1.08;
}

.step-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 26px 76px 26px 0;
}

.step-item.no-border {
  border-bottom: 0;
}

.step-no {
  position: absolute;
  right: 0;
  top: 16px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--step-no);
  letter-spacing: -0.04em;
}

.step-item h3 {
  font-size: 2rem;
}

.step-item p,
.section-heading p,
.feature-card p,
.privacy-block p,
.footer-grid p,
.footer-grid a,
.copyright {
  color: var(--muted);
}

.step-item p {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 18ch;
}

.section-heading p {
  margin-top: 12px;
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--card-shadow);
}

.mock-screen {
  height: 180px;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid #e3e8f2;
}

.ui-mock {
  width: 100%;
  min-height: 240px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg);
  padding: 18px;
}

.ui-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ui-label);
}

.ui-price {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.6vw, 2.95rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 11px;
}

.ui-hours {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.6vw, 2.95rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ui-shifts {
  margin: 10px 0 0;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ui-verdict {
  margin: 8px 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ui-note {
  margin: 8px 0 0;
  color: var(--ui-note);
  font-size: 1rem;
  font-weight: 700;
}

.scan-mock {
  background: var(--scan-bg);
}

.scan-frame {
  margin-top: 12px;
  width: 100%;
  height: 130px;
  border-radius: 16px;
  background: #0a0c11;
  border: 1px solid #1a1f2a;
  position: relative;
  overflow: hidden;
}

.scan-frame::before,
.scan-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #7ef0b8;
  border-style: solid;
}

.scan-frame::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.scan-frame::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 2px 2px 0;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 240, 184, 0), rgba(126, 240, 184, 1), rgba(126, 240, 184, 0));
  box-shadow: 0 0 18px rgba(126, 240, 184, 0.9);
}

.scan-pill-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scan-pill-row span {
  border-radius: 999px;
  background: var(--scan-pill-bg);
  color: var(--scan-pill-text);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 7px 12px;
}

.mock-a {
  background: linear-gradient(120deg, #ece8ff, #dbe6ff);
}

.mock-b {
  background: linear-gradient(120deg, #f2f5ff, #f6f7fb);
}

.mock-c {
  background: linear-gradient(120deg, #e8f7f1, #edf4ff);
}

.mock-d {
  background: linear-gradient(120deg, #f7efff, #ebeaff);
}

.mock-e {
  background: linear-gradient(120deg, #f4f7fb, #edf2f7);
}

.mock-f {
  background: linear-gradient(120deg, #edefff, #e9f0ff);
}

.feature-card h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.privacy-block {
  background: var(--privacy-bg);
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: 54px 26px;
  text-align: center;
}

.privacy-block h2 {
  color: #ffffff;
}

.privacy-block p {
  color: var(--privacy-text);
  margin-top: 12px;
  font-size: 1.1rem;
}

.cta {
  text-align: center;
  padding-top: 72px;
}

.cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta .app-store-badge {
  margin-top: 22px;
}

.site-footer {
  margin-top: 56px;
  background: var(--footer-bg);
  color: var(--text);
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h4 {
  font-size: 1.36rem;
}

.footer-grid h5 {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-subtle);
  margin-bottom: 10px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--footer-link);
}

.footer-grid a:hover {
  color: var(--footer-link-hover);
}

.footer-credit {
  width: var(--container);
  margin: 24px auto 0;
  color: var(--footer-copyright);
  font-size: 0.9rem;
  text-align: left;
}

.footer-credit a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--footer-link-hover);
}

.copyright {
  text-align: center;
  color: var(--footer-copyright);
  margin-top: 28px;
  font-size: 0.94rem;
}

.legal-main {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 74px) 0;
}

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 14px 30px var(--card-shadow);
}

.legal-card h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.legal-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-section + .legal-section {
  margin-top: 26px;
}

.legal-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 8px;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.legal-section p + p {
  margin-top: 10px;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 600;
}

.legal-back-link:hover {
  color: var(--nav-link-hover);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--menu-icon);
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 12px 20px 18px;
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--mobile-link);
  padding: 8px 0;
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero {
    gap: 58px;
  }

  .hero-phone-art {
    width: min(300px, 100%);
  }

  .how {
    gap: 56px;
  }
}

@media (max-width: 1040px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 34px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy p {
    max-width: 48ch;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-device-wrap {
    width: 100%;
    justify-content: center;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .how-preview {
    display: flex;
    justify-content: center;
  }

  .soft-panel {
    width: min(560px, 100%);
  }

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

@media (max-width: 860px) {
  .desktop-nav,
  .desktop-download {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: 8px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy p {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 28px);
  }

  .nav-row {
    min-height: 72px;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.15rem);
  }

  .hero-copy p {
    font-size: 1.02rem;
    max-width: 34ch;
  }

  .hero-phone-art {
    width: 100%;
    max-width: 275px;
  }

  .ui-mock {
    min-height: 220px;
  }

  .app-store-badge img {
    width: 170px;
  }

  .step-item {
    padding: 18px 56px 18px 0;
  }

  .step-item h3 {
    font-size: 1.5rem;
  }

  .step-item p {
    font-size: 0.98rem;
  }

  .step-no {
    top: 12px;
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }

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

@media (max-width: 430px) {
  :root {
    --container: calc(100% - 24px);
  }

  .brand {
    font-size: 1.06rem;
  }

  .btn-primary {
    margin-left: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .hero-phone-art {
    max-width: 250px;
  }

  .ui-mock {
    min-height: 200px;
  }

  .privacy-block {
    border-radius: 28px;
    padding: 42px 18px;
  }
}
