@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --blue-dark: #0b5384;
  --blue-mid: #1a78b5;
  --blue-light: #e8f1f6;
  --accent-orange: #f26522;
  --accent-yellow: #ffe838;
  --bubble-border: #e53935;
  --text-dark: #222222;
  --text-muted: #555555;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #dce9f2 0%, #f3f7fa 260px, #f7f9fb 100%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Top Brand Bar */
.top-banner {
  background: linear-gradient(180deg, #0b4e7c 0%, #1c7bb8 100%);
  height: 76px;
  border-bottom: 4px solid #d5e6f2;
  position: relative;
}

.top-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  top: 10px;
  z-index: 10;
}

.brand-wordmark {
  font-family: 'Bitter', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

.top-nav {
  display: flex;
  gap: 20px;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Main White Sheet Container */
.page-shell {
  max-width: 960px;
  margin: 18px auto 48px;
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(15, 45, 70, 0.08);
  padding: 40px 44px 48px;
}

/* Hero Split */
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 34px;
}

.hero-left h1 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.32;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.hero-left p {
  font-size: 15px;
  color: var(--text-muted);
}

.hero-right {
  font-family: 'Bitter', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: #3a3a3a;
}

.hero-right .kaam-inline {
  color: #d96b1f;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  margin-top: 16px;
  background: linear-gradient(180deg, #2789c8 0%, #14669c 100%);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Bitter', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid #0f5280;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Interactive Tablet Frame */
.tablet-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.tablet-bezel {
  background: #0a0a0a;
  border-radius: 30px;
  padding: 28px 34px 40px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  position: relative;
}

.tablet-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1b242c;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid #222;
}

.scene-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback stylized bar/surfboard backdrop if image isn't placed yet */
.scene-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 25%, rgba(255, 248, 220, 0.22), transparent 55%),
    linear-gradient(180deg, #4b382a 0%, #2c211b 55%, #1c1512 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Hotspots & Speech Bubbles */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.45s ease, scale 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hotspot.visible {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}

.flame-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 38px;
  height: 46px;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.flame-btn:hover {
  transform: scale(1.14);
}

.flame-btn::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.45);
  z-index: -1;
  animation: pulseGlow 2.2s infinite ease-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.75; }
  100% { transform: scale(1.85); opacity: 0; }
}

.callout {
  position: absolute;
  width: 215px;
  background: var(--accent-yellow);
  border: 1.5px solid var(--bubble-border);
  padding: 9px 11px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 6;
}

.callout.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.callout a {
  color: #111111;
  text-decoration: underline;
}

.callout .label-red {
  color: #b71c1c;
  font-weight: 600;
}

/* Callout Positions & Pointers */
.callout--top-left {
  bottom: 34px;
  left: 34px;
}
.callout--top-left::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -10px;
  border-width: 14px 14px 0 0;
  border-style: solid;
  border-color: var(--bubble-border) transparent transparent transparent;
  transform: rotate(28deg);
}
.callout--top-left::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: -7px;
  border-width: 12px 12px 0 0;
  border-style: solid;
  border-color: var(--accent-yellow) transparent transparent transparent;
  transform: rotate(28deg);
}

.callout--bottom-left {
  top: 8px;
  left: 44px;
  width: 210px;
}
.callout--bottom-left::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -16px;
  border-width: 6px 16px 6px 0;
  border-style: solid;
  border-color: transparent var(--bubble-border) transparent transparent;
}
.callout--bottom-left::after {
  content: '';
  position: absolute;
  top: 11px;
  left: -13px;
  border-width: 5px 14px 5px 0;
  border-style: solid;
  border-color: transparent var(--accent-yellow) transparent transparent;
}

.callout--top-right {
  bottom: 18px;
  left: 42px;
  width: 195px;
}
.callout--top-right::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -16px;
  border-width: 6px 16px 6px 0;
  border-style: solid;
  border-color: transparent var(--bubble-border) transparent transparent;
}
.callout--top-right::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: -13px;
  border-width: 5px 14px 5px 0;
  border-style: solid;
  border-color: transparent var(--accent-yellow) transparent transparent;
}

.callout--bottom-right {
  bottom: 34px;
  right: 30px;
  width: 195px;
}
.callout--bottom-right::before {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -8px;
  border-width: 14px 0 0 14px;
  border-style: solid;
  border-color: var(--bubble-border) transparent transparent transparent;
  transform: rotate(-25deg);
}
.callout--bottom-right::after {
  content: '';
  position: absolute;
  bottom: -11px;
  right: -5px;
  border-width: 12px 0 0 12px;
  border-style: solid;
  border-color: var(--accent-yellow) transparent transparent transparent;
  transform: rotate(-25deg);
}

/* Tablet Info Button & Animation Controls */
.tablet-info-btn {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.tablet-info-btn:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.demo-step-label {
  font-weight: 600;
  color: var(--blue-dark);
}

.demo-btn-group {
  display: flex;
  gap: 8px;
}

.demo-btn {
  background: #eef4f8;
  border: 1px solid #c7d9e6;
  color: var(--blue-dark);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.demo-btn:hover {
  background: #dce9f2;
}

/* Second Landing Page (About / How It Works) */
.page-header {
  border-bottom: 1px solid #e5edf3;
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.page-header h1 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: #222;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.feature-card {
  background: #f8fbfd;
  border: 1px solid #e1ecf4;
  border-radius: 6px;
  padding: 22px 24px;
}

.feature-card h2 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 19px;
  color: var(--blue-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: #444;
}

.how-it-works {
  background: #eef5fa;
  border-radius: 6px;
  padding: 26px 30px;
  margin-bottom: 32px;
}

.how-it-works h2 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 21px;
  margin-bottom: 14px;
  color: #1d3547;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.steps-list li {
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 5px;
  border: 1px solid #d7e5f0;
  font-size: 14px;
}

.steps-list strong {
  display: block;
  color: var(--accent-orange);
  font-family: 'Bitter', Georgia, serif;
  font-size: 15px;
  margin-bottom: 4px;
}

/* Footer */
.site-footer {
  max-width: 960px;
  margin: 0 auto 36px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7c8a;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--blue-dark);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {
  .page-shell {
    padding: 24px 20px 32px;
    margin: 12px;
  }
  .hero-grid,
  .feature-grid,
  .steps-list {
    grid-template-columns: 1fr;
  }
  .tablet-bezel {
    padding: 16px 16px 34px;
    border-radius: 20px;
  }
  .callout {
    width: 165px;
    font-size: 11px;
  }
}

