/* OIBWeb Elevation Suite: Believability, Professionalism, and Interactive WOW Factor */

/* ==========================================================================
   1. GLOBAL REFINEMENTS & MARITIME DEPTH
   ========================================================================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(228, 214, 186, 0.85);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(8, 26, 53, 0.08), 0 0 1px 1px rgba(255, 255, 255, 0.6) inset;
}

[data-theme="dark"] .glass-panel {
  background: rgba(17, 35, 42, 0.88);
  border-color: rgba(36, 57, 63, 0.9);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. REAL-TIME COASTAL ATMOSPHERE SWITCHER (WOW FACTOR)
   ========================================================================== */
.atmosphere-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(6, 22, 49, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  margin-bottom: 20px;
  color: #f4fbfb;
  font-size: 0.84rem;
}

.atmosphere-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
}

.atmosphere-title .live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.atmosphere-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atmo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4fbfb;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-family: var(--body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.atmo-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.atmo-btn.active {
  background: var(--marsh);
  color: var(--on-marsh);
  border-color: var(--marsh);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(240, 160, 60, 0.4);
}

/* ==========================================================================
   3. THE "DAY 6 COASTAL HANDSHAKE" GUARANTEE (BELIEVABILITY)
   ========================================================================== */
.guarantee-section {
  padding-block: clamp(40px, 6vw, 70px);
}

.guarantee-box {
  background: linear-gradient(135deg, #ffffff 0%, #fcf7ef 100%);
  border: 2px solid var(--marsh);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 16px 36px -10px rgba(8, 26, 53, 0.1);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .guarantee-box {
  background: linear-gradient(135deg, #132730 0%, #0d1e26 100%);
  border-color: var(--marsh);
}

.guarantee-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(240, 160, 60, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.guarantee-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.guarantee-header .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--marsh-soft);
  color: #7c4800;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

[data-theme="dark"] .guarantee-header .badge-pill {
  background: #352611;
  color: #ffc978;
}

.guarantee-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.guarantee-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .guarantee-card {
  background: rgba(17, 35, 42, 0.7);
  border-color: var(--line);
}

.guarantee-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(8, 26, 53, 0.08);
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sound);
}

.guarantee-icon svg {
  width: 24px;
  height: 24px;
}

.guarantee-card h3 {
  font-size: 1.18rem;
  margin: 0;
  color: var(--ink);
}

.guarantee-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   4. FOUNDER TRANSPARENCY SPOTLIGHT (MEET JOSEPH)
   ========================================================================== */
.founder-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  box-shadow: 0 10px 30px -8px rgba(8, 26, 53, 0.06);
  margin-top: 24px;
}

@media (max-width: 720px) {
  .founder-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.founder-avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin-inline: auto;
}

.founder-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--marsh);
  box-shadow: 0 6px 16px rgba(8, 26, 53, 0.12);
}

.founder-badge-vet {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #081a35;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-family: var(--mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.founder-content h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.founder-sub {
  color: var(--sound);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.founder-bio {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.founder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.coffee-invite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================================
   5. INTERACTIVE LIVE DEVICE STUDIO (WOW FACTOR)
   ========================================================================== */
.studio-section {
  padding-block: clamp(40px, 6vw, 80px);
}

.studio-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.studio-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 10px;
}

.studio-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 920px) {
  .studio-wrapper {
    grid-template-columns: 1fr;
  }
}

.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-label span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: normal;
}

.studio-input, .studio-select {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 500 1rem var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.studio-input:focus, .studio-select:focus {
  outline: none;
  border-color: var(--sound);
  box-shadow: 0 0 0 3px rgba(18, 78, 156, 0.15);
}

.studio-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

/* Phone Mockup Frame & Studio Controls */
.studio-theme-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 600 0.82rem var(--body);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-swatch:hover {
  transform: translateY(-1px);
  border-color: var(--sound);
}

.theme-swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--marsh);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-mode-switch {
  display: inline-flex;
  background: var(--sand);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  gap: 4px;
}

.phone-mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.8rem var(--body);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-mode-btn.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(8, 26, 53, 0.12);
}

.phone-mode-btn[data-mode="before"].active {
  background: #fee2e2;
  color: #991b1b;
}

.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  width: 100%;
}

.phone-frame {
  width: 100%;
  max-width: 336px;
  height: 625px;
  background: #091318;
  border-radius: 44px;
  border: 6px solid #1a2c35;
  box-shadow: 0 25px 60px -15px rgba(10, 30, 38, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --p-primary: #124e9c;
  --p-dark: #071e42;
  --p-accent: #f0a03c;
  --p-accent-ink: #2a1700;
}

.phone-frame[data-palette="navy"] {
  --p-primary: #0b2545;
  --p-dark: #13315c;
  --p-accent: #ff8a1f;
  --p-accent-ink: #0b1b2e;
}

.phone-frame[data-palette="marsh"] {
  --p-primary: #163e7a;
  --p-dark: #0b244d;
  --p-accent: #d4a26b;
  --p-accent-ink: #1f1408;
}

.phone-frame[data-palette="coral"] {
  --p-primary: #1e3a8a;
  --p-dark: #0f1f4d;
  --p-accent: #ff6f59;
  --p-accent-ink: #240904;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  background: var(--paper);
  color: var(--ink);
  padding: 40px 16px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.phone-url-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(8, 26, 53, 0.06);
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.phone-brand-text {
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

.phone-hero {
  background: linear-gradient(135deg, var(--p-primary), var(--p-dark));
  color: #fff;
  border-radius: 14px;
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(18, 78, 156, 0.2);
  transition: all 0.3s ease;
}

.phone-badge {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  color: var(--p-accent);
  letter-spacing: 0.05em;
}

.phone-headline {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.22;
  margin: 0;
}

.phone-tagline {
  font-size: 0.76rem;
  opacity: 0.92;
  line-height: 1.4;
  margin: 0;
}

.phone-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.phone-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
}

.phone-btn-primary {
  background: var(--p-accent);
  color: var(--p-accent-ink);
}

.phone-btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.phone-toast {
  background: #0b2e66;
  color: #eff6ff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 600;
}

/* Outdated DIY "Before" Phone Screen */
.phone-before-screen {
  background: #e5e7eb;
  color: #1f2937;
  font-family: "Times New Roman", Times, serif;
  padding: 40px 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-before-url {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.phone-before-box {
  background: #fff;
  border: 2px inset #9ca3af;
  padding: 10px;
  font-size: 0.72rem;
}

.phone-before-broken-img {
  height: 76px;
  background: #f3f4f6;
  border: 1px dashed #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-family: var(--mono);
  font-size: 0.64rem;
  text-align: center;
  padding: 8px;
}

.phone-before-error {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #7f1d1d;
  padding: 8px;
  font-family: var(--body);
  font-size: 0.7rem;
  line-height: 1.35;
}

.phone-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-card h4 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.phone-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.phone-weather-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--sound);
  background: var(--sand);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   6. INTERACTIVE COASTAL ROI & VALUE CALCULATOR
   ========================================================================== */
.roi-section {
  padding-block: clamp(40px, 6vw, 70px);
}

.roi-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 48px);
  box-shadow: 0 16px 40px -12px rgba(8, 26, 53, 0.08);
}

@media (max-width: 840px) {
  .roi-card {
    grid-template-columns: 1fr;
  }
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.roi-slider-label {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.roi-val-badge {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sound);
  background: var(--sand);
  padding: 3px 10px;
  border-radius: 6px;
}

.roi-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}

.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--marsh);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

.roi-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.roi-results-box {
  background: linear-gradient(135deg, #124e9c, #061631);
  color: #fff;
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 24px rgba(18, 78, 156, 0.25);
}

.roi-stat-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roi-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  font-family: var(--mono);
}

.roi-big-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--marsh);
  line-height: 1.1;
}

.roi-stat-sub {
  font-size: 0.95rem;
  color: #dbeafe;
}

.roi-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.roi-mini-stat dt {
  font-size: 0.76rem;
  color: #93c5fd;
  font-family: var(--mono);
}

.roi-mini-stat dd {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--display);
  color: #fff;
}

/* ==========================================================================
   7. INTERACTIVE HOMEPAGE WEBSITE GRADER TEASER
   ========================================================================== */
.grader-bar-wrapper {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px -5px rgba(8, 26, 53, 0.06);
  margin-top: 20px;
}

.grader-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grader-input {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
}

.grader-input:focus {
  outline: none;
  border-color: var(--sound);
}

/* Subtle micro-animations */
.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
