:root {
  --primary: #00658F;
  --primary-light: #087FAA;
  --primary-dark: #004B69;
  --secondary: #00838F;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #1A2533;
  --text-muted: #5A6A7A;
  --border: #DDE4ED;
  --radius: 8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow: 0 2px 12px rgba(0,0,0,0.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ────────────────────────────────── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand:hover { text-decoration: none; }

.nav-brand-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

/* ── Legal / document pages ────────────────────── */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-wrap h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
  padding-top: 4px;
}

.page-wrap h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.page-wrap p {
  margin-bottom: 14px;
  color: var(--text);
}

.page-wrap ul,
.page-wrap ol {
  margin: 0 0 16px 24px;
}

.page-wrap li {
  margin-bottom: 7px;
}

.page-wrap strong { font-weight: 600; }

.callout {
  background: #E8F4FD;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

.callout-warning {
  background: #FFF8E1;
  border-left-color: #F9A825;
}

.callout-danger {
  background: #FBE9E7;
  border-left-color: #C62828;
}

/* ── Footer ────────────────────────────────────── */
footer {
  background: #1A2533;
  color: #8FA0B0;
  font-size: 0.875rem;
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: start;
}

.footer-brand-logo {
  width: 128px;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #6A8095;
  margin-bottom: 16px;
}

.footer-contact a {
  color: #8FA0B0;
}

.footer-contact a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-nav-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A6070;
  margin-bottom: 2px;
}

.footer-nav a {
  color: #8FA0B0;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-copy {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid #2C3E50;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #5A7080;
}

/* ── Hero (landing page) ───────────────────────── */
.hero {
  background: linear-gradient(160deg, #1A2533 0%, #00658F 58%, #00838F 100%);
  color: #FFFFFF;
  padding: 80px 24px 72px;
  text-align: center;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.hero-logo {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none !important;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.btn-primary:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* -- Open app page -------------------------------- */
.open-app-main {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #E8F4FD 0%, #F5F7FA 45%, #EEF8F7 100%);
}

.open-app-panel {
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}

.open-app-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #E8F4FD;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.open-app-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.open-app-panel p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.open-app-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.open-app-panel .btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(13,71,161,0.22);
}

.open-app-panel .btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.open-app-panel .btn[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
}

.open-app-small {
  font-size: 0.85rem;
}

/* ── Features section ──────────────────────────── */
.section {
  padding: 72px 24px;
}

.section-alt { background: var(--surface); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: #E8F4FD;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Use cases ─────────────────────────────────── */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.use-case {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.use-case-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── CTA section ───────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1A2533, #00658F);
  color: #FFFFFF;
  padding: 72px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ── Pricing section ───────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(0, 101, 143, 0.14);
}
.pricing-badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-height: 2.4em;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  flex: 1;
}
.pricing-features li { color: var(--text-muted); }
.pricing-features li:first-child { color: var(--text); font-weight: 500; }
.btn-primary-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.12s;
  text-decoration: none;
  margin-top: 4px;
}
.btn-primary-landing:hover { filter: brightness(1.08); text-decoration: none; }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
  margin-top: 4px;
}
.btn-outline-dark:hover { background: #EEF4F8; border-color: var(--primary); text-decoration: none; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 56px 24px 52px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }
  .footer-copy { flex-direction: column; }
  .section { padding: 52px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
