/* ═══════════════════════════════════════════════
   ORKIE MASTER CSS — Sea Water Theme
   ═══════════════════════════════════════════════ */

/* ── PALETTE ── */
:root {
  /* ocean blues */
  --ocean-deep:    #0D4F6B;
  --ocean-mid:     #1B7FA3;
  --ocean-light:   #A8D8EA;

  /* seafoam — primary brand accent */
  --seafoam:       #1EB8AD;
  --seafoam-bright:#22D4C8;
  --seafoam-dim:   #178F86;
  --seafoam-tint:  #E6F7F5;

  /* warm tones */
  --sand:          #F5F1EB;
  --sand-mid:      #EBE4D8;
  --coral:         #E88B76;
  --coral-light:   #FDF0EC;

  /* surfaces */
  --surf:          #F2F8F8;
  --white:         #FFFFFF;

  /* text */
  --text:          #2D3748;
  --text-mid:      #4A6275;
  --text-light:    #7E96A8;
  --text-on-dark:  #F0F7FA;

  /* severity */
  --critical:      #D94452;
  --critical-bg:   #FEF2F2;
  --high:          #E8922C;
  --high-bg:       #FFF8F0;
  --medium:        #1B7FA3;
  --medium-bg:     #EFF8FB;
  --screening:     #2D9F6F;
  --screening-bg:  #EEFAF4;

  /* card system */
  --card-bg:       var(--white);
  --card-border:   #D8E6ED;
  --card-shadow:   0 2px 8px rgba(13,79,107,0.06);
  --card-radius:   14px;

  /* layout */
  --max-width:     960px;
  --px-desktop:    32px;
  --px-tablet:     24px;
  --px-phone:      16px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }

body {
  background: var(--surf);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--seafoam-dim); text-decoration: none; }
a:hover { color: var(--ocean-mid); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--ocean-deep);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seafoam-dim);
}

.sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

h1 em, h2 em {
  color: var(--seafoam);
  font-style: italic;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--px-desktop);
  padding-right: var(--px-desktop);
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px-desktop);
  height: 64px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ocean-deep);
}

.nav-logo-text span {
  color: var(--seafoam);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: var(--seafoam);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--seafoam-dim);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  color: var(--ocean-deep);
  font-size: 18px;
  line-height: 1;
}

/* desktop nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.nav-help-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-help-link:hover { color: var(--ocean-deep); }
.nav-help-drop {
  display: none;
  position: absolute;
  top: 100%;
  right: 60px;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 101;
  overflow: hidden;
}
.nav-help-drop.open { display: block; }
.nav-help-drop a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--card-border);
  transition: background 0.15s;
}
.nav-help-drop a:last-child { border-bottom: none; }
.nav-help-drop a:hover { background: var(--surf); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--card-border);
  padding: 16px var(--px-phone);
  z-index: 9999;
  backdrop-filter: blur(16px);
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ocean-deep);
  border-bottom: 1px solid var(--card-border);
}

.nav-mobile-menu a:last-child { border-bottom: none; }

.nav-help-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--card-border);
}
.nav-help-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 6px 0 2px;
}
.nav-help-group a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
}
.nav-help-group a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 56px var(--px-desktop) 48px;
  background: linear-gradient(180deg, var(--white) 0%, var(--seafoam-tint) 50%, var(--surf) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,20 1440,30 L1440,60 L0,60 Z' fill='%23F7FAFB'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-mascot {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.hero .sub {
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background: var(--seafoam-dim);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30,184,173,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--ocean-deep);
  border: 2px solid var(--ocean-deep);
}

.btn-secondary:hover {
  background: var(--ocean-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--seafoam-dim);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  border-color: var(--seafoam);
  color: var(--seafoam);
}

.btn-full { width: 100%; }

/* ── SECTIONS ── */
.section {
  padding: 48px 0;
}

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

.section-ocean {
  background: var(--ocean-deep);
  color: var(--text-on-dark);
}

.section-ocean h2,
.section-ocean h3 {
  color: var(--white);
}

.section-ocean .eyebrow {
  color: var(--seafoam-bright);
}

.section-ocean .sub {
  color: rgba(240,247,250,0.7);
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-body {
  padding: 20px 24px;
}

/* gradient-top cards (for step cards in demo) */
.card-gradient {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.card-gradient-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-gradient-body {
  background: var(--white);
  padding: 20px 28px;
}

/* ── MASCOT BUBBLE ── */
.mascot-bubble {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── STEP INDICATOR ── */
.step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
}

.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1.2;
}

.step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin-top: 4px;
}

/* ── RESULT CALLOUT ── */
.callout {
  background: var(--sand);
  border-radius: 10px;
  padding: 12px 16px;
  border-left: 4px solid var(--seafoam);
}

.callout-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ocean-deep);
  line-height: 1.4;
}

.callout-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── FAQ ACCORDION ── */
.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ocean-deep);
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  content: '−';
  color: var(--seafoam);
}

.faq-a {
  display: none;
  padding-top: 10px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* ── SEVERITY BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-critical  { background: var(--critical); }
.badge-high      { background: var(--high); }
.badge-medium    { background: var(--ocean-mid); }
.badge-screening { background: var(--screening); }

/* ── FINDING CARDS ── */
.finding {
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}

.finding-critical  { border-left: 4px solid var(--critical);  background: var(--critical-bg); }
.finding-high      { border-left: 4px solid var(--high);      background: var(--high-bg); }
.finding-medium    { border-left: 4px solid var(--ocean-mid); background: var(--medium-bg); }
.finding-screening { border-left: 4px solid var(--screening); background: var(--screening-bg); }

.finding-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.finding-source {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.finding-explain {
  font-size: 12px;
  color: var(--seafoam-dim);
  line-height: 1.5;
  border-top: 1px dashed var(--card-border);
  padding-top: 6px;
  margin-top: 6px;
}

/* ── FORM ELEMENTS ── */
.input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(30,184,173,0.12);
}

.input-code {
  font-family: 'DM Mono', monospace;
  text-align: center;
  letter-spacing: 2px;
  font-size: 18px;
}

textarea.input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.chip:hover { border-color: var(--seafoam); }

.chip.active {
  border-color: var(--seafoam);
  background: var(--seafoam-tint);
  font-weight: 600;
  color: var(--seafoam-dim);
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--ocean-light);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  background: var(--seafoam-tint);
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--seafoam);
  background: rgba(30,184,173,0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30,184,173,0.1);
}

.upload-zone-icon { font-size: 36px; margin-bottom: 8px; }
.upload-zone-title { font-size: 15px; font-weight: 600; color: var(--ocean-deep); }
.upload-zone-sub { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.divider span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

/* ── VIDEO CARD ── */
.video-card {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.video-card:hover { border-color: var(--seafoam); }

.video-card-thumb {
  height: 72px;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-card-play {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.video-card-duration {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
}

.video-card-label {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ocean-deep);
}

/* ── FOOTER CTA ── */
.footer-cta {
  background: var(--ocean-deep);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
}

.footer-cta h2 { color: var(--white); margin-bottom: 6px; }

.footer-cta .sub {
  color: rgba(240,247,250,0.6);
  margin-bottom: 20px;
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root {
    --px-desktop: var(--px-phone);
  }

  .nav { padding: 0 var(--px-phone); }
  .nav-cta { display: none; }
  .nav-help-link { display: none; }
  .nav-help-drop { display: none !important; }
  .nav-hamburger { display: block; }

  .hero { padding: 36px var(--px-phone) 80px; }

  .btn { padding: 12px 24px; font-size: 14px; }

  .mascot-bubble { width: 52px; height: 52px; font-size: 28px; }

  .step-title { font-size: 17px; }

  .card-gradient-header { padding: 20px 16px; gap: 14px; }
  .card-gradient-body { padding: 16px; }

  .container { padding-left: var(--px-phone); padding-right: var(--px-phone); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --px-desktop: var(--px-tablet);
  }
}

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: all 0.2s ease; }
  .card { transition: box-shadow 0.2s ease; }
  .card:hover { box-shadow: 0 4px 16px rgba(13,79,107,0.08); }
}

/* ── PRINT ── */
@media print {
  .nav, .footer-cta, .btn { display: none; }
  body { background: white; color: black; }
  .hero { background: none; padding: 20px 0; }
}
