:root {
  --ink: #142019;
  --muted: #5c6760;
  --forest: #1f5d43;
  --forest-dark: #123c2c;
  --mint: #dfece4;
  --lime: #b7d24b;
  --cream: #f6f2ea;
  --paper: #ffffff;
  --line: #d9dfd9;
  --danger: #a34035;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 60, 44, 0.94);
  color: white;
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: white;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.language-control select {
  min-width: 98px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 0 28px 0 9px;
  background: var(--forest-dark);
  color: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.language-control select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 20px;
  background: var(--lime);
  color: #16200f;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  background: #c7df60;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: white;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 27px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(850px, 92vh);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 47, 34, 0.98) 0%, rgba(13, 47, 34, 0.92) 45%, rgba(13, 47, 34, 0.34) 72%, rgba(13, 47, 34, 0.08) 100%),
    radial-gradient(circle at 80% 30%, #88ad8d 0%, #315e48 47%, #123c2c 100%);
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -22%;
  width: min(52vw, 620px);
  aspect-ratio: 9 / 18;
  border: 11px solid #111814;
  border-radius: 46px;
  background: #111814;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(5deg);
}

.hero-phone {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -17%;
  width: min(48vw, 570px);
  height: auto;
  border-radius: 34px;
  transform: rotate(5deg);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  min-height: min(850px, 92vh);
  margin: 0 auto;
  padding: 150px 0 100px;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 630px;
  margin-bottom: 22px;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 850;
}

.hero-lead {
  max-width: 610px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(19px, 2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero-trust span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--lime);
}

.section {
  padding: 88px 0;
}

.section-paper {
  background: var(--paper);
}

.section-dark {
  background: var(--forest-dark);
  color: white;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 58px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.audience-item {
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.audience-item span {
  color: var(--muted);
  font-size: 14px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.feature {
  min-height: 240px;
  padding: 30px;
  background: var(--forest-dark);
}

.feature-number {
  display: block;
  margin-bottom: 45px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 850;
}

.feature h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.product-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.product-copy h2 {
  font-size: clamp(38px, 5vw, 60px);
}

.product-copy p {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  display: inline-block;
  width: 25px;
  color: var(--forest);
}

.screens {
  position: relative;
  min-height: 610px;
}

.screen {
  position: absolute;
  width: 48%;
  overflow: hidden;
  border: 8px solid #162019;
  border-radius: 30px;
  background: #162019;
  box-shadow: 0 22px 52px rgba(32, 52, 41, 0.22);
}

.screen:first-child {
  top: 0;
  left: 3%;
  transform: rotate(-4deg);
}

.screen:last-child {
  right: 3%;
  bottom: 0;
  transform: rotate(4deg);
}

.screens-single .screen {
  top: 0;
  right: auto;
  bottom: auto;
  left: 26%;
  width: 48%;
  transform: rotate(2deg);
}

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

.price-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.price-card[data-featured] {
  border: 2px solid var(--forest);
}

.plan-name {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-price {
  margin-bottom: 24px;
  font-size: 31px;
  font-weight: 850;
}

.price-card ul {
  flex: 1;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  color: var(--muted);
}

.price-card li {
  margin: 10px 0;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--forest);
  font-weight: 900;
}

.price-card .button {
  background: var(--forest);
  color: white;
}

.legal-hero {
  padding: 150px 0 70px;
  background: var(--forest-dark);
  color: white;
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(44px, 7vw, 76px);
}

.legal-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.legal {
  width: min(calc(100% - 40px), 850px);
  margin: 0 auto;
  padding: 70px 0 100px;
}

.legal h2 {
  margin-top: 42px;
  font-size: 26px;
}

.legal p,
.legal li {
  color: #465148;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px;
  border-radius: 8px;
  background: var(--mint);
}

.contact-strip h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0;
  background: #101813;
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  color: white;
  font-size: 22px;
  font-weight: 850;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.nav-back,
.nav-logout {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-page,
.dashboard-page {
  min-height: 100vh;
  background: #f3f5f1;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 56px);
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 70px;
  align-items: center;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 130px 0 80px;
}

.auth-intro {
  max-width: 570px;
}

.auth-intro h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5vw, 68px);
}

.auth-intro > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 19px;
}

.auth-points {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 750;
}

.auth-points span::before {
  content: "✓";
  display: inline-block;
  width: 26px;
  color: var(--forest);
}

.auth-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(28, 58, 43, 0.1);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f7f4;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button[aria-selected="true"] {
  background: white;
  color: var(--forest-dark);
  box-shadow: 0 1px 4px rgba(20, 32, 25, 0.12);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form[hidden],
.auth-message[hidden],
.auth-setup[hidden],
[data-dashboard][hidden],
[data-dashboard-loading][hidden] {
  display: none;
}

.auth-form label:not(.check-control) {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd7d0;
  border-radius: 5px;
  padding: 0 13px;
  background: white;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 93, 67, 0.12);
}

.auth-form small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check-control {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.check-control input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--forest);
}

.auth-submit {
  width: 100%;
  border: 0;
  background: var(--forest);
  color: white;
  cursor: pointer;
}

.auth-submit:disabled,
.auth-form input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-button {
  justify-self: center;
  border: 0;
  padding: 4px;
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-message,
.auth-setup {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #d6ddd7;
  border-radius: 5px;
  background: #f4f7f4;
  color: #33463a;
  font-size: 14px;
}

.auth-message[data-type="error"] {
  border-color: #e3b8b2;
  background: #fff3f1;
  color: var(--danger);
}

.auth-message[data-type="success"] {
  border-color: #b7d7c2;
  background: #edf8f0;
  color: #215f3e;
}

.auth-footer {
  padding: 18px 24px 28px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.dashboard-shell,
.dashboard-loading {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 130px 0 90px;
}

.dashboard-loading {
  color: var(--muted);
  text-align: center;
}

.dashboard-heading h1 {
  max-width: 880px;
  margin-bottom: 12px;
  font-size: clamp(42px, 5vw, 64px);
}

.dashboard-heading > p:last-child {
  color: var(--muted);
  font-size: 19px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: white;
}

.account-stat {
  display: grid;
  min-height: 180px;
  align-content: center;
  gap: 6px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-stat span,
.account-stat small {
  color: var(--muted);
  font-size: 13px;
}

.account-stat strong {
  font-size: 27px;
}

.dashboard-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  padding: 42px;
  border-radius: 8px;
  background: var(--forest-dark);
  color: white;
}

.dashboard-band h2 {
  margin-bottom: 12px;
  font-size: 34px;
}

.dashboard-band p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px;
    background: var(--forest-dark);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links[data-open] {
    display: flex;
  }

  .nav-links a {
    padding: 7px 0;
  }

  .nav-links .language-control {
    justify-content: space-between;
    padding: 5px 0;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    min-height: 900px;
    padding: 120px 0 330px;
    align-items: flex-start;
  }

  .hero::after {
    right: 8%;
    bottom: -26%;
    width: 330px;
  }

  .hero-phone {
    right: 10%;
    bottom: -22%;
    width: 310px;
  }

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

  .product-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .price-card {
    min-height: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-intro {
    max-width: 680px;
  }

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

@media (max-width: 620px) {
  .nav-shell,
  .container,
  .hero-content {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-links .nav-cta {
    display: inline-flex;
    width: 100%;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    min-height: 820px;
    padding-bottom: 285px;
  }

  h1 {
    font-size: 62px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero::after {
    right: -5%;
    bottom: -27%;
    width: 285px;
    border-radius: 34px;
  }

  .hero-phone {
    right: -2%;
    bottom: -24%;
    width: 265px;
  }

  .section {
    padding: 66px 0;
  }

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

  .screens {
    min-height: 490px;
  }

  .screen {
    width: 56%;
    border-radius: 22px;
  }

  .contact-strip,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-shell {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 110px;
  }

  .auth-intro h1 {
    font-size: 42px;
  }

  .auth-panel {
    padding: 22px;
  }

  .auth-nav-actions {
    gap: 10px;
  }

  .auth-nav-actions .language-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .auth-nav-actions .language-control select {
    min-width: 96px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .dashboard-band {
    display: grid;
    align-items: start;
    padding: 28px;
  }
}

html[dir="rtl"] .language-control select {
  padding-right: 9px;
  padding-left: 28px;
}
