/* ============================================================
   OffPeak showcase — full-screen web app shown in a browser frame.
   On the Atsumi paper theme (inherits styles.css variables).
   Accent leans green (cheap power / savings).
   ============================================================ */

/* ── hero (centered) ── */
.op-hero {
  max-width: 1080px; margin: 0 auto; text-align: center;
  padding: clamp(3rem, 9vh, 6rem) clamp(1.2rem, 5vw, 3rem) clamp(1.5rem, 4vh, 2.5rem);
}
.op-crumb { color: var(--ink-3); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.op-crumb:hover { color: var(--shu-deep); border-color: var(--shu-deep); }
.op-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -0.03em;
  margin: 0.6rem 0 0.8rem;
}
.op-tagline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink); max-width: 26ch; margin: 0 auto 1.1rem;
}
.savings { color: #2f7d4f; font-style: italic; }
.op-lede { color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 60ch; margin: 0 auto; }
.op-cta { margin: 1.8rem 0 0.4rem; }

/* status badges */
.badge-soon, .badge-live {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
  border-radius: 999px; padding: 0.5rem 1rem;
}
.badge-soon { color: var(--shu-deep); background: var(--shu-soft); border: 1px solid rgba(216,71,43,0.3); }
.badge-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shu); animation: op-pulse 2s infinite; }
.badge-live { color: #2f7d4f; background: rgba(47,125,79,0.1); border: 1px solid rgba(47,125,79,0.34); }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d27b; animation: op-pulse 2s infinite; }
@keyframes op-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,210,123,0.5);} 70% { box-shadow: 0 0 0 8px rgba(52,210,123,0);} 100% { box-shadow: 0 0 0 0 rgba(52,210,123,0);} }

/* ── browser window frame ── */
.op-browser-wrap { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.op-glow {
  position: absolute; z-index: 0; left: 50%; top: 30%; transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(closest-side, rgba(47,125,79,0.22), transparent 70%);
  filter: blur(28px); pointer-events: none;
}
.op-browser {
  position: relative; z-index: 1;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #0b1310;
  box-shadow: 0 40px 90px -38px rgba(33,27,22,0.55), 0 10px 26px -18px rgba(33,27,22,0.4);
  transform: translateZ(0); isolation: isolate; /* clip the iframe corners up front */
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s ease;
}
.op-browser:hover { transform: translateY(-4px); box-shadow: 0 50px 100px -38px rgba(33,27,22,0.6); }
.op-bar {
  height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: #0a100e; border-bottom: 1px solid rgba(234,244,238,0.08);
}
.op-dots { display: flex; gap: 8px; }
.op-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.op-dots i:nth-child(1) { background: #ff5f57; }
.op-dots i:nth-child(2) { background: #febc2e; }
.op-dots i:nth-child(3) { background: #28c840; }
.op-addr {
  flex: 1; max-width: 440px; margin: 0 auto; text-align: center;
  background: rgba(234,244,238,0.06); border-radius: 7px; padding: 6px 14px;
  font-family: var(--mono); font-size: 0.78rem; color: #9fb5aa;
}
.op-screen {
  position: relative; aspect-ratio: 16 / 10; background: #0a100e;
  transform: translateZ(0); isolation: isolate; overflow: hidden;
}
.op-poster { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: opacity 0.6s ease; }
.op-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  z-index: 1; opacity: 0; transition: opacity 0.7s ease; background: #0a100e;
}
.op-screen.is-live .op-frame { opacity: 1; z-index: 3; }
.op-screen.is-live .op-poster { opacity: 0; }
.live-pill {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(10,16,14,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 0.25rem 0.55rem; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; pointer-events: none;
}
.op-screen.is-live .live-pill { opacity: 1; transform: none; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; animation: op-pulse 1.8s infinite; }

/* ── spotlight (dark savings band) ── */
.op-spotlight { max-width: var(--maxw); margin: clamp(2.5rem, 7vh, 5rem) auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.op-spot-inner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(47,125,79,0.20), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(216,71,43,0.14), transparent 60%),
    #0a100e;
  color: #eaf4ee; border-radius: 26px; padding: clamp(2rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  box-shadow: 0 30px 70px -34px rgba(10,16,14,0.7);
}
.op-spot-eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #34d27b; }
.op-spotlight h2 {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0.7rem 0 1.1rem;
}
.op-spot-inner p { color: rgba(234,244,238,0.74); max-width: 52ch; margin-bottom: 0.9rem; }
.op-spot-inner strong { color: #fff; font-weight: 600; }
.op-spot-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #8fe3b3 !important; max-width: none !important; }

/* price-meter motif: bars with the cheap "now" window glowing */
.meter { display: flex; align-items: flex-end; gap: 7px; height: 180px; justify-self: center; width: 100%; max-width: 280px; }
.meter span { flex: 1; border-radius: 4px 4px 0 0; background: #1f4a40; }
.meter span.lo { background: #34d27b; box-shadow: 0 0 16px rgba(52,210,123,0.5); animation: meterglow 2.4s ease-in-out infinite; }
.meter span.hi { background: #e0653a; }
@keyframes meterglow { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ── features ── */
.op-features { max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 6vh, 4rem) clamp(1.2rem, 5vw, 3rem) clamp(3rem, 8vh, 6rem); }
.op-feat-grid { margin-top: 2.6rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.op-feat { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.5rem; transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s; }
.op-feat:hover { transform: translateY(-4px); border-color: rgba(47,125,79,0.4); }
.op-feat-mark { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(47,125,79,0.12); color: #2f7d4f; font-size: 1.2rem; margin-bottom: 0.9rem; }
.op-feat h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.op-feat p { color: var(--ink-2); font-size: 0.95rem; }
.op-attribution { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.85rem; max-width: 64ch; }

/* ── footer ── */
.op-foot { border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; padding: 2.4rem clamp(1.2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.op-foot-brand { display: flex; align-items: center; gap: 0.7rem; }
.op-foot-brand .seal { font-size: 1.1rem; }
.op-foot-brand strong { font-family: var(--serif); font-size: 1.05rem; display: block; }
.op-foot-brand span { font-size: 0.82rem; color: var(--ink-3); }
.op-foot-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.op-foot-nav a { font-size: 0.9rem; color: var(--ink-2); transition: color .2s; }
.op-foot-nav a:hover { color: var(--shu-deep); }
.op-foot .copy { width: 100%; font-size: 0.8rem; color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 1.2rem; margin-top: 0.4rem; }

@media (max-width: 760px) {
  .op-spot-inner { grid-template-columns: 1fr; }
  .meter { order: -1; height: 130px; }
}
