/* ==========================================================================
   CellMyTech — shared styles
   ========================================================================== */

:root {
  --green: #16a34a;
  --green-dark: #0f7f39;
  --green-light: #e8f8ee;
  --ink: #111827;
  --ink-soft: #4b5563;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f7f9f8;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --max-width: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.logo .dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.nav-cta-mobile {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.2s ease;
  }

  .nav-cta-mobile {
    display: block;
    width: 100%;
    border-bottom: none !important;
    padding-top: 16px !important;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta .btn-primary span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy p.lead {
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust div {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-trust strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
}

/* Sections --------------------------------------------------------------- */

section {
  padding: 72px 0;
}

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

.section-alt {
  background: var(--bg-alt);
}

/* Conditions grid ---------------------------------------------------------- */

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

.condition-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.condition-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.condition-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.condition-card h3 {
  margin-bottom: 8px;
}

.condition-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}

/* How it works ------------------------------------------------------------ */

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

.step-card {
  text-align: center;
}

.step-card .step-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  aspect-ratio: 4 / 3;
}

.step-card .step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA banner --------------------------------------------------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}

.cta-banner h2,
.cta-banner p {
  color: #fff;
}

.cta-banner .btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
}

.cta-banner .btn-secondary:hover {
  background: transparent;
  color: #fff;
}

/* FAQ ----------------------------------------------------------------------- */

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--ink);
}

.faq-question .plus {
  font-size: 1.5rem;
  color: var(--green);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding-bottom: 22px;
  margin: 0;
}

/* Cards / lists generic ------------------------------------------------------ */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

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

.check-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* Forms ----------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.consent-row input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.form-note {
  background: var(--green-light);
  border: 1px solid #bfe8cd;
  color: var(--green-dark);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-status.success {
  display: block;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #bfe8cd;
}

.form-status.error {
  display: block;
  background: #fdecec;
  color: var(--red);
  border: 1px solid #f6c4c4;
}

/* Legal pages ------------------------------------------------------------------ */

.legal-content h2 {
  margin-top: 40px;
}

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

.legal-content ul {
  color: var(--ink-soft);
  padding-left: 20px;
}

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

.legal-updated {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 40px;
}

/* Page hero (inner pages) -------------------------------------------------------- */

.page-hero {
  padding: 56px 0;
  background: var(--bg-alt);
  text-align: center;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
}

/* Mode banner (cross-link between personal / business sites) --------------------- */

.mode-banner {
  background: var(--green-light);
  border-bottom: 1px solid #bfe8cd;
  padding: 10px 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
}

.mode-banner a {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Chooser (gateway landing) ------------------------------------------------------- */

.chooser-hero {
  padding: 96px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
}

.chooser-hero .section-head {
  margin-bottom: 56px;
}

.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.chooser-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.chooser-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.chooser-card .icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.chooser-card .check-list {
  margin: 4px 0 28px;
}

.chooser-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.chooser-note {
  text-align: center;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .chooser-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-grid .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-grid p {
  color: #9ca3af;
  font-size: 0.95rem;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #d1d5db;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-row a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility ---------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
