:root {
  --bg: #f6f7fb;
  --bg-card: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.12);
  --text: #0b1120;
  --muted: #6b7280;
  --primary: #111827;
  --primary-soft: rgba(15, 23, 42, 0.04);
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.08);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.1);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

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

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

.clean-body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0, #eef0f7 40%, #e5e7ee 80%);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

.clean-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.clean-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(246, 247, 251, 0.9), rgba(246, 247, 251, 0.75), transparent);
}

.clean-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
}

.clean-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  letter-spacing: 0em;
  font-size: 24px;
}

.clean-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-color: #000000;
  background-image: url("icon-small.png");
  background-size: 30px 30px;
  background-position: center;
  background-repeat: no-repeat;
}

.clean-logo-text {
  color: var(--primary);
}

.clean-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  align-items: center;
}

.clean-nav a {
  color: var(--muted);
}

.clean-nav a:hover {
  color: var(--primary);
}

.clean-lang-select-wrapper {
  position: relative;
}

.clean-lang-select {
  font-size: 13px;
  height: 28px;
  line-height: 28px;
  padding: 0 20px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #95e999;
  color: var(--muted);
  font-weight: bold;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 20px;
}

.clean-lang-select:focus {
  border-color: var(--primary);
}


.clean-hero {
  padding: 52px 0 40px;
}

.clean-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

/* Hero phones (three-phone layout with screenshot placeholders) */

.clean-hero-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.clean-hero-phone-frames {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.clean-phone-frame {
  position: relative;
  width: 210px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  z-index: 2; /* center phone sits on top */
  flex-shrink: 0;
  overflow: hidden; /* ensure Safari clips screenshot to rounded frame */
}

.clean-phone-frame.secondary {
  position: absolute;
  bottom: 10px;
  width: 190px;
  z-index: 1;
}

.clean-phone-frame.secondary-left {
  left: 50%;
  transform: translateX(-125%);
}

.clean-phone-frame.secondary-right {
  left: 50%;
  transform: translateX(25%);
}

/* .clean-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 16px;
  border-radius: 999px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.75);
} */

.clean-phone-screen {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.35);
}

.clean-phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transform: translateZ(0);
}

/* Phone screenshot placeholders (no background image — we rely on <img>) */

.clean-phone-caption {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.clean-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 12px;
}

.clean-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.4vw, 40px);
  letter-spacing: -0.03em;
}

.clean-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  max-width: 420px;
}

.clean-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clean-appstore {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #f9fafb;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.clean-appstore:hover {
  transform: translateY(-1px);
  background: #020617;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.5);
}

.clean-appstore-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.clean-appstore-store {
  font-size: 14px;
  font-weight: 600;
}

.clean-appstore-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0f172a;
}

.clean-appstore-icon::before {
  content: "";
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Helvetica Neue", sans-serif;
}

.clean-appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.clean-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.clean-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.clean-card-stack {
  position: relative;
  max-width: 420px;
}

.clean-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.clean-card.main {
  padding: 18px 18px 16px;
  position: relative;
  z-index: 2;
}

.clean-card.main header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.clean-card.main .chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.clean-card.main .title {
  font-size: 15px;
  font-weight: 600;
}

.clean-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.clean-card-metrics dt {
  font-size: 11px;
  color: var(--muted);
}

.clean-card-metrics dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--border-subtle);
}

.clean-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  font-size: 13px;
}

.clean-list li + li {
  border-top: 1px dashed var(--border-subtle);
}

.clean-list .meta {
  font-size: 12px;
  color: var(--muted);
}

.clean-card.secondary {
  position: absolute;
  inset: auto 0 -34px 40px;
  padding: 14px 16px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.06), #f9fafb);
  border-color: var(--border-strong);
}

.clean-card.secondary h2 {
  margin: 0 0 4px;
  font-size: 14px;
}

.clean-card.secondary p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.clean-section {
  padding: 40px 0 40px;
}

.clean-section-header {
  max-width: 560px;
  margin-bottom: 24px;
}

.clean-section-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.clean-section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.clean-section-features {
  padding-top: 32px;
}

.clean-features-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.clean-features-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clean-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clean-feature-grid article {
  padding: 14px 16px 16px;
  border-radius: var(--radius-lg);
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
}

.clean-feature-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.clean-feature-grid p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.clean-features-visual {
  display: flex;
  justify-content: flex-end;
}

.clean-section-cta {
  padding-bottom: 56px;
}

.clean-section-cta-inner {
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.clean-section-cta-inner h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.clean-section-cta-inner p {
  margin: 0;
  font-size: 14px;
  color: rgba(209, 213, 219, 0.9);
}

.clean-section-cta-inner .clean-appstore {
  background: #f9fafb;
  color: #020617;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
}

.clean-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 0 22px;
  background: rgba(248, 250, 252, 0.95);
  margin-top: auto;
}

.clean-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.clean-footer-nav {
  display: flex;
  gap: 16px;
}

.clean-footer-nav a {
  color: var(--muted);
}

.clean-footer-nav a:hover {
  color: var(--primary);
}

/* Legal pages reuse the same file for simplicity */

.clean-legal-body {
  font-family: var(--font-sans);
  background: #f3f4f8;
  color: var(--text);
}

.clean-legal-main {
  max-width: 760px;
  margin: 40px auto 64px;
  padding: 0 20px;
}

.clean-legal-header {
  margin-bottom: 28px;
}

.clean-legal-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.clean-legal-meta {
  font-size: 13px;
  color: var(--muted);
}

.clean-legal-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.clean-legal-card h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 18px;
}

.clean-legal-card h2:first-of-type {
  margin-top: 0;
}

.clean-legal-card h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 15px;
}

.clean-legal-card p,
.clean-legal-card li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.clean-legal-card ul {
  padding-left: 18px;
}

.clean-legal-footer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 900px) {
  .clean-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .clean-hero-visual {
    order: -1;
    justify-content: flex-start;
  }

  .clean-card.secondary {
    position: static;
    margin-top: 16px;
  }

  .clean-features-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .clean-features-visual {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .clean-shell {
    padding-inline: 16px;
  }

  .clean-header-row {
    padding-top: 14px;
  }

  .clean-nav {
    gap: 12px;
    font-size: 13px;
  }

  .clean-hero-phone-frames {
    gap: 8px;
  }

  .clean-phone-frame {
    width: 190px;
  }

  .clean-phone-frame.secondary {
    display: none;
  }

  .clean-section-cta-inner {
    padding-inline: 18px;
    margin-inline: 4px;
  }

  .clean-section-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .clean-legal-main {
    margin-top: 28px;
  }
}


