/* ==========================================================================
   На Близо — shared stylesheet
   Mobile-first. Palette mirrors the Nablizo app (see src/constants/colors.js)
   ========================================================================== */

:root {
  --color-green: #2E7D32;
  --color-green-light: #4CAF50;
  --color-green-dark: #1B5E20;
  --color-red: #D32F2F;
  --color-red-light: #EF5350;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-text: #212121;
  --color-text-secondary: #757575;
  --color-border: #E0E0E0;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --max-width: 1100px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

main {
  flex: 1;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-green-dark);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.site-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 8px 16px 16px;
  gap: 4px;
  display: none;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--color-surface);
  color: var(--color-green-dark);
  text-decoration: none;
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    border-bottom: none;
    padding: 0;
    gap: 8px;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--color-green-dark), var(--color-green));
  color: var(--color-white);
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 16px;
  opacity: 0.92;
  max-width: 480px;
  margin: 0 auto 24px;
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  border: 10px solid #1a1a1a;
  border-radius: 36px;
  background: #1a1a1a;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: #1a1a1a;
  border-radius: 50%;
  z-index: 1;
}

.phone-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    text-align: left;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-tagline {
    font-size: 18px;
    margin: 0 0 28px;
  }

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

  .phone-frame {
    max-width: 280px;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-green-dark);
}

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

.btn-accent {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-red-light);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Generic page sections ───────────────────────────────────────────── */

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.page-header {
  background: var(--color-surface);
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
}

.page-header p {
  color: var(--color-text-secondary);
  margin-top: 6px;
}

/* ── Feature cards ────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ── How it works ─────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

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

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin: 0 auto 12px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ── CTA banner ───────────────────────────────────────────────────────── */

.cta-banner {
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-banner p {
  opacity: 0.92;
  margin-bottom: 18px;
}

/* ── Badge ────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.badge-soon {
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  color: #E65100;
}

/* ── Registration form ───────────────────────────────────────────────── */

.form-shell {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 560px;
  margin: 0 auto;
}

.form-note {
  background: #E8F5E9;
  border: 1px solid var(--color-green-light);
  color: var(--color-green-dark);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-shell .field {
  margin-bottom: 16px;
}

.form-shell label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-shell input,
.form-shell select,
.form-shell textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
}

.form-shell input:disabled,
.form-shell select:disabled,
.form-shell textarea:disabled {
  cursor: not-allowed;
}

.form-shell input:focus,
.form-shell select:focus {
  outline: none;
  border-color: var(--color-green);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-checkbox input {
  width: auto;
  margin-top: 3px;
}

.field-checkbox label {
  margin-bottom: 0;
  font-weight: 500;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  min-height: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.form-message-success {
  color: var(--color-green-dark);
}

.form-message-error {
  color: var(--color-red);
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Legal / placeholder text pages ──────────────────────────────────── */

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}

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

.legal-content {
  max-width: 720px;
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--color-text-secondary);
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content .placeholder-note {
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  color: #E65100;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-email-placeholder {
  background: #FFF3E0;
  color: #E65100;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Contact page ─────────────────────────────────────────────────────── */

.contact-list {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.contact-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item .icon {
  font-size: 20px;
}

.contact-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ── Cookie / privacy notice banner ──────────────────────────────────── */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 14px 0;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.cookie-banner-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.cookie-banner-text a {
  font-weight: 600;
}

.cookie-banner-btn {
  align-self: flex-start;
  background: var(--color-green);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.cookie-banner-btn:hover {
  background: var(--color-green-light);
}

@media (min-width: 600px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .cookie-banner-btn {
    align-self: center;
    flex-shrink: 0;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-green-dark);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 40px;
}

.footer-inner {
  padding: 28px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-company {
  font-size: 13px;
  opacity: 0.85;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.7;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}
