/* AploSuite – Global Styles (aligned to official styleguide) */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Open+Sans:wght@300;400;600;700;800&display=swap');

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

/* ── Design Tokens ── */

:root {
  /* Brand Colors */
  --navy:        #0B3D6B;
  --navy-deep:   #061F38;
  --mid-blue:    #156BA5;
  --sky:         #D6EAF8;
  --ice:         #F0F7FF;
  --green:       #2ECC71;
  --green-dark:  #1AA355;
  --green-light: #E8FBF0;
  --orange:      #FF8C00;
  --orange-light:#FFF3E0;
  --white:       #FFFFFF;

  /* Semantic */
  --color-text:       #0B3D6B;
  --color-text-med:   #2C5F8A;
  --color-muted:      #647D92;
  --color-rule:       #BDD4E6;
  --color-bg:         #F4F9FF;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Open Sans', 'Trebuchet MS', sans-serif;

  /* Spacing (base-8) */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 80px;
  --sp-5xl: 96px;

  /* Radii */
  --radius-btn:   6px;
  --radius-card:  10px;
  --radius-input: 6px;
  --radius-badge: 20px;
  --radius-icon:  8px;

  /* Shadows */
  --shadow-sm: 0 1px 6px rgba(11, 61, 107, 0.07);
  --shadow-md: 0 2px 10px rgba(11, 61, 107, 0.07);
  --shadow-lg: 0 2px 12px rgba(11, 61, 107, 0.07);

  --max-width: 1100px;
}

/* ── Base ── */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; line-height: 1.4; }

p { line-height: 1.7; }

a {
  color: var(--mid-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

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

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3xl);
}

section { padding: var(--sp-4xl) 0; }

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--green);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.nav-hamburger {
  display: none; /* shown only on mobile */
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger img,
.wordmark-icon {
  height: 28px;
  width: auto;
  display: block;
}

.nav-wordmark,
.nav-wordmark:hover,
.nav-wordmark:focus,
.nav-wordmark:visited,
.nav-wordmark:active {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white) !important;
  letter-spacing: -0.3px;
  text-decoration: none !important;
}

.wordmark-icon {
  margin-right: var(--sp-sm);
}

.nav-wordmark span,
.nav-wordmark:hover span,
.nav-wordmark:focus span {
  color: var(--green) !important;
}

.nav-links {
  display: flex;
  gap: var(--sp-xl);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sky);
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

/* Primary: green bg, navy text */
.btn-primary {
  background: var(--green);
  color: var(--navy);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--navy);
  text-decoration: none;
}

/* Secondary: transparent, navy border */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* Outline on dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--green);
}

.btn-outline-light:hover {
  background: var(--green);
  color: var(--navy);
  text-decoration: none;
}

/* Tertiary: orange */
.btn-tertiary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-tertiary:hover {
  background: #e07800;
  border-color: #e07800;
  color: var(--white);
  text-decoration: none;
}

/* Sizes */
.btn-sm  { padding: 7px 16px;  font-size: 12px; }
.btn-lg  { padding: 15px 32px; font-size: 15px; }

/* ── Hero ── */

.hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--sp-5xl) 0 var(--sp-4xl);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(214, 234, 248, 0.15);
  color: var(--sky);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  margin-bottom: var(--sp-lg);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto var(--sp-md);
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--sky);
  max-width: 540px;
  margin: 0 auto var(--sp-xl);
}

.hero-cta {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats ── */

.stats {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-xl);
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sky);
  margin-top: var(--sp-xs);
  line-height: 1.4;
}

/* ── Section Headers ── */

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section-header h2 {
  margin-bottom: var(--sp-sm);
}

.section-header p {
  color: var(--color-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features ── */

.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
}

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--sp-xl) var(--sp-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 4px solid var(--green);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: var(--sp-md);
}

.feature-card h3 {
  margin-bottom: var(--sp-sm);
  color: var(--navy);
}

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

/* ── How It Works ── */

.how-it-works {
  background: var(--ice);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-lg);
}

.step {
  text-align: center;
  padding: var(--sp-lg);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
}

.step h3 {
  margin-bottom: var(--sp-xs);
  color: var(--navy);
}

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

/* ── Pricing ── */

.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--sp-2xl) var(--sp-xl);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: var(--radius-badge);
  white-space: nowrap;
}

.pricing-plan {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-blue);
  margin-bottom: var(--sp-sm);
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: var(--sp-xs);
  line-height: 1;
}

.pricing-price span {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
}

.pricing-users {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--sp-lg);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--sp-xl);
}

.pricing-features li {
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  color: var(--color-text-med);
}

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

/* ── Badges ── */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.badge-success { background: var(--green-light); color: var(--green-dark); }
.badge-info    { background: var(--sky);         color: var(--mid-blue); }
.badge-warning { background: var(--orange-light); color: var(--orange); }
.badge-navy    { background: var(--navy);         color: var(--white); }

/* ── CTA Banner ── */

.cta-banner {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: var(--sp-4xl) 0;
  border-top: 3px solid var(--green);
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.cta-banner p {
  font-size: 17px;
  color: var(--sky);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */

footer {
  background: var(--navy-deep);
  color: var(--sky);
  padding: var(--sp-2xl) 0 var(--sp-xl);
  border-top: 3px solid var(--green);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand .nav-logo {
  display: block;
  margin-bottom: var(--sp-sm);
}

.footer-brand p {
  font-size: 13px;
  color: var(--sky);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--sp-sm);
}

.footer-col ul li a {
  color: var(--sky);
  font-size: 13px;
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
}

.footer-col ul li a:hover {
  color: var(--green);
  opacity: 1;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(214, 234, 248, 0.15);
  padding-top: var(--sp-lg);
  text-align: center;
  font-size: 12px;
  color: var(--sky);
  opacity: 0.6;
}

/* ── Form Inputs ── */

input, select, textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 2px solid var(--color-rule);
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.2s;
  width: 100%;
}

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

input.error, select.error, textarea.error {
  border-color: #e74c3c;
}

/* ── Mobile Navigation ── */

/* The pip indicator — only visible on mobile */
.nav-menu-pip {
  display: none;
}

/* Mobile slide-down menu — hidden by default */
.nav-mobile-menu {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(214, 234, 248, 0.1);
  overflow: hidden;
}

.nav-mobile-links {
  list-style: none;
  padding: var(--sp-md) 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-links li {
  border-bottom: none;
}

.nav-mobile-links a {
  display: block;
  padding: 14px var(--sp-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, padding-left 0.2s;
}

.nav-mobile-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--green);
  color: #ffffff !important;
  padding-left: var(--sp-xl);
  text-decoration: none;
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-lg) 0 var(--sp-xl);
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */

@media (max-width: 768px) {

  /* Open state — mobile only */
  nav.nav-open .nav-mobile-menu {
    display: block;
    animation: mobileMenuIn 0.22s ease;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .wordmark-icon {
    display: none !important;
  }

  /* Show the tap-hint pip next to the logo */
  .nav-menu-pip {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform 0.2s;
  }

  /* Rotate pip when open */
  nav.nav-open .nav-menu-pip {
    background: var(--sky);
    transform: scale(1.4);
  }

  .container {
    padding: 0 var(--sp-lg);
  }

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

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

  section {
    padding: var(--sp-3xl) 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

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