:root {
  --brand: #006a66;
  --brand-dark: #004f4c;
  --brand-light: #50c9c3;
  --brand-pale: #e8f8f7;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #f7fafa;
  --card: #ffffff;
  --border: #e4ecec;
  --shadow: 0 8px 32px rgba(0, 106, 102, 0.08);
  --radius: 14px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
}

/* —— Site chrome (mobile-first drawer nav) —— */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-nav .brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  flex: 1;
}

.site-nav .brand-link small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Hamburger — visible on mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer panel */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 102;
  width: min(320px, 88vw);
  height: 100dvh;
  padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav.is-open .nav-panel {
  transform: translateX(0);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-nav.is-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
  background: var(--brand-pale);
}

.nav-links a.active {
  color: var(--brand);
  background: var(--brand-pale);
  font-weight: 600;
}

.nav-lang {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nav-lang-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switcher {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  -webkit-appearance: menulist;
  appearance: menulist;
}

/* Desktop: inline horizontal nav */
@media (min-width: 768px) {
  .site-nav .inner {
    padding: 0.85rem 1.25rem;
  }

  .site-nav .brand-link {
    flex: 0 1 auto;
  }

  .nav-toggle {
    display: none;
  }

  .nav-backdrop {
    display: none !important;
  }

  .nav-panel {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    flex: 1;
    overflow: visible;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem 1rem;
    font-size: 0.92rem;
  }

  .nav-links a {
    min-height: auto;
    padding: 0.35rem 0.5rem;
    font-size: 0.92rem;
    border-radius: 6px;
  }

  .nav-lang {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
  }

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

  .lang-switcher {
    width: auto;
    min-width: 7.5rem;
    max-width: 11rem;
    min-height: 36px;
    padding: 0.35rem 1.75rem 0.35rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .app-store-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .app-store-badge {
    box-sizing: border-box;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }

  section.block {
    padding: 2.5rem 0;
  }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Hero —— */

.hero {
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 55%, #013331 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 36em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-light);
  color: #003d3a;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.2;
}

.app-store-badge strong {
  display: block;
  font-size: 1.05rem;
}

.app-store-badge.soon {
  opacity: 0.75;
  cursor: default;
}

a.app-store-badge {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

a.app-store-badge:hover {
  opacity: 0.88;
}

/* Phone mockup / screenshot hero */

.device-frame {
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 2rem;
  padding: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 280px;
  margin: 0 auto;
}

.device-screen {
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--brand-pale);
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--brand);
}

.device-screen .icon-lock {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.device-screen p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* —— Sections —— */

section.block {
  padding: 3.5rem 0;
}

section.block.alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: var(--brand-dark);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Feature cards */

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .feature-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-pale);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-card .tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-pale);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Feature showcases (screenshot + copy) */

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.showcase-item {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .showcase-item {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }

  .showcase-item.reverse .showcase-visual {
    order: 2;
  }

  .showcase-item.reverse .showcase-copy {
    order: 1;
  }
}

.phone-shell {
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 2rem;
  padding: 0.65rem;
  box-shadow: 0 20px 50px rgba(0, 106, 102, 0.15);
  max-width: 280px;
  margin: 0 auto;
}

.phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.45rem;
  background: var(--brand-pale);
}

.showcase-copy .showcase-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.showcase-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  color: var(--brand-dark);
  line-height: 1.2;
}

.showcase-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.showcase-copy ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.showcase-copy li {
  margin: 0.35rem 0;
}

.showcase-copy .tag {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-pale);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.showcase-copy .btn {
  margin-top: 0.5rem;
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--brand-light);
  box-shadow: 0 12px 40px rgba(80, 201, 195, 0.2);
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.price-card .amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0.5rem 0;
}

.price-card .note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.pro-list {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--brand-pale);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pro-list ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.pro-list li {
  margin: 0.35rem 0;
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--brand-dark);
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Legal / prose pages */

.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 2rem 0 2.25rem;
}

.page-hero h1 {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
}

.page-hero p {
  margin: 0.35rem 0 0;
  opacity: 0.9;
}

.page-hero nav a {
  color: #dff7f5;
  text-decoration: none;
  font-size: 0.92rem;
}

.page-hero nav a:hover {
  text-decoration: underline;
}

main.prose {
  padding: 2rem 0 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  color: var(--brand);
}

.card h2:first-child {
  margin-top: 0;
}

.card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 1.25rem;
}

.meta {
  font-size: 0.9rem;
  color: #7a7a7a;
  margin-bottom: 1.25rem;
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

/* Footer */

footer.site-footer {
  padding: 2rem 0 2.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

footer.site-footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
}

footer.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer li {
  margin: 0.35rem 0;
}

footer.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: #888;
  font-size: 0.88rem;
}

/* Compare table */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.compare-table td {
  color: var(--muted);
}

.check {
  color: var(--brand);
  font-weight: 700;
}

/* i18n */

body.i18n-pending {
  opacity: 0;
}

body.i18n-ready {
  opacity: 1;
  transition: opacity 0.15s ease;
}

body.i18n-switching {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--brand-pale);
  border-color: var(--brand-light);
}

@media (min-width: 768px) {
  .back-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}
