/* RingReady Sites — homepage (loads after style.css) */

/* ---------- Motion helpers ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }

/* ---------- Header on dark hero ---------- */
.home .site-header { background: transparent; backdrop-filter: none; position: fixed; left: 0; right: 0; transition: background .3s, border-color .3s, color .3s; }
.home .site-header:not(.scrolled) .logo, .home .site-header:not(.scrolled) .nav-links a { color: #fff; }
.home .site-header:not(.scrolled) .nav-links a:hover { color: #ffb4a3; }
.home .site-header.scrolled { background: rgba(247,245,240,.9); backdrop-filter: saturate(1.4) blur(12px); }

/* ---------- Hero ---------- */
.hero2 { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 150px 0 110px; isolation: isolate; }
.hero2::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, rgba(11,21,38,.0)); }
.hero-rings { position: absolute; z-index: -1; right: -18%; top: -30%; width: 1100px; max-width: none; opacity: .5; pointer-events: none; }
.hero-rings circle { fill: none; stroke: #ff5a36; stroke-opacity: .14; transform-origin: 550px 550px; animation: ripple 6s ease-out infinite; }
.hero-rings circle:nth-child(2) { animation-delay: 1.5s; } .hero-rings circle:nth-child(3) { animation-delay: 3s; } .hero-rings circle:nth-child(4) { animation-delay: 4.5s; }
@keyframes ripple { from { transform: scale(.15); stroke-opacity: .35; } to { transform: scale(1); stroke-opacity: 0; } }
.hero-glow { position: absolute; z-index: -1; width: 700px; height: 700px; left: -200px; bottom: -380px; background: radial-gradient(closest-side, rgba(255,90,54,.28), transparent); filter: blur(20px); }

.hero2-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
@media (max-width: 959px) { .hero2-grid { grid-template-columns: 1fr; gap: 56px; } .hero2 { padding: 120px 0 80px; } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #dfe5ef; margin-bottom: 26px; }
.pill .live { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(25,195,125,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(25,195,125,0); } 100% { box-shadow: 0 0 0 0 rgba(25,195,125,0); } }

.mega { font-size: clamp(2.9rem, 6.2vw, 6.2rem); line-height: .95; letter-spacing: -.045em; font-weight: 700; margin: 0 0 26px; }
.mega .ring-word { color: var(--accent); position: relative; display: inline-block; }
.mega .ring-word::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: .02em; height: .09em; border-radius: 99px; background: var(--accent); transform-origin: left; animation: underline 1.1s .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes underline { from { transform: scaleX(0); } }
.js .mega .line { display: block; overflow: hidden; }
.js .mega .line > span { display: inline-block; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.js .mega .line:nth-child(2) > span { animation-delay: .1s; } .js .mega .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero2 .lead { color: #b9c3d3; font-size: 1.2rem; max-width: 560px; margin-bottom: 34px; }
.hero2 .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero2 .btn-ghost:hover { border-color: #fff; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: #b9c3d3; font-size: .95rem; list-style: none; padding: 0; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--signal); }

.hero2-media { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.photo-frame { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); transform: rotate(2deg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,21,38,.55)); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 18px; padding: 12px 18px 12px 12px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); min-width: 230px; }
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; position: relative; }
.float-card .ic svg { width: 21px; height: 21px; }
.float-card small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.2; }
.float-card strong { font-size: .95rem; line-height: 1.25; display: block; }
.fc-call { left: -56px; top: 12%; } .fc-call .ic { background: var(--signal); }
.fc-call .ic::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--signal); animation: pulse 1.6s ease-out infinite; }
.fc-quote { right: -40px; top: 48%; } .fc-quote .ic { background: var(--accent); }
.fc-review { left: -30px; bottom: 7%; } .fc-review .ic { background: #f5a524; }
.stars { color: #f5a524; letter-spacing: 2px; font-size: .9rem; }
.js .float-card { opacity: 0; animation: pop .7s cubic-bezier(.2,1.4,.4,1) forwards, bob 5s ease-in-out infinite; }
.js .fc-call { animation-delay: .9s, 1.6s; } .js .fc-quote { animation-delay: 1.5s, 2.2s; } .js .fc-review { animation-delay: 2.1s, 2.8s; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) { .fc-call { left: -8px; } .fc-quote { right: -8px; } .fc-review { left: 4px; } }
@media (max-width: 480px) { .float-card { min-width: 0; padding: 10px 14px 10px 10px; } .float-card strong { font-size: .86rem; } .float-card .ic { width: 36px; height: 36px; } }

/* ---------- Ticker ---------- */
.home main { overflow-x: clip; }
.ticker { background: var(--accent); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scaleX(1.04); margin: -16px 0 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker span { font: 700 clamp(1.1rem, 2vw, 1.5rem)/1 var(--head); letter-spacing: -.01em; padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.ticker span::after { content: "✦"; font-size: .8em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (words light up on scroll) ---------- */
.statement-sec { padding: 140px 0 120px; }
.statement { font: 700 clamp(1.9rem, 4.6vw, 3.6rem)/1.12 var(--head); letter-spacing: -.03em; max-width: 1050px; margin: 0; }
.js .statement .w { opacity: .14; transition: opacity .25s; }
.js .statement .w.on { opacity: 1; }
.statement em { font-style: normal; color: var(--accent); }

/* ---------- Bento trades ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 300px 300px; gap: 16px; margin-top: 52px; }
.tile-photo { position: relative; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end; isolation: isolate; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,21,38,0) 35%, rgba(11,21,38,.88)); }
.tile-photo:hover img { transform: scale(1.07); }
.tile-photo .cap { padding: 24px 26px; }
.tile-photo .tag { display: inline-block; font: 600 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 7px 10px; border-radius: 99px; margin-bottom: 10px; }
.tile-photo h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin: 0 0 4px; }
.tile-photo p { margin: 0; color: #d6dce6; font-size: .95rem; max-width: 380px; }
.t-big { grid-column: span 2; grid-row: span 2; }
.t-wide { grid-column: span 2; }
@media (max-width: 899px) { .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 240px 240px; } .t-big { grid-column: span 2; grid-row: span 1; } .t-wide { grid-column: span 2; } }
@media (max-width: 559px) { .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; } .t-big, .t-wide { grid-column: auto; } }

/* ---------- Showcase (live device previews) ---------- */
.showcase { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.showcase .lead { color: #aab4c4; }
.showcase h2 { color: #fff; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); margin: 30px 0 46px; }
.tab { border: 0; background: transparent; color: #c9d1de; font: 600 .95rem/1 var(--body); padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.devices { position: relative; max-width: 1000px; margin: 0 auto; padding-bottom: 40px; }
.laptop { position: relative; width: 88%; }
.laptop-screen { background: #000; border-radius: 18px 18px 0 0; padding: 14px 14px 0; border: 1px solid #2b3a55; border-bottom: 0; }
.laptop-base { height: 18px; background: linear-gradient(#cfd5de, #8e97a6); border-radius: 0 0 22px 22px; margin: 0 -5%; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); background: #7b8493; border-radius: 0 0 8px 8px; }
.screen { position: relative; overflow: hidden; background: #fff; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; }
.screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.phone2 { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 150px; background: #05080f; border-radius: 34px; padding: 10px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.8), 0 0 0 1px #2b3a55; }
.phone2 .screen { aspect-ratio: 390 / 800; border-radius: 26px; }
.device-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: center; margin-top: 18px; }
.device-actions a { color: #fff; font-weight: 600; }
.device-actions span { color: #8d98ab; font-size: .92rem; }
@media (max-width: 699px) {
  .laptop { display: none; }
  .phone2 { position: relative; width: 72%; max-width: 300px; margin: 0 auto; right: auto; }
  .devices { padding-bottom: 0; }
}

/* ---------- Before / after ---------- */
.compare { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; margin-top: 46px; user-select: none; touch-action: pan-y; background: #ddd; }
.compare .screen { position: absolute; inset: 0; }
.compare iframe { pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .label { position: absolute; top: 16px; z-index: 3; font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px; border-radius: 99px; }
.compare .label.l { left: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.compare .label.r { right: 16px; background: var(--accent); color: #fff; }
.handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; cursor: ew-resize; }
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.35); }
.handle button { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: ew-resize; display: grid; place-items: center; color: var(--ink); }
.handle button svg { width: 26px; height: 26px; }
.compare-hint { text-align: center; color: var(--muted); margin-top: 16px; font-size: .95rem; }
@media (max-width: 559px) { .compare { aspect-ratio: 4 / 5; } .handle button { width: 46px; height: 46px; } }

/* ---------- ROI calculator ---------- */
.calc-sec { background: #efe9dc; }
.calc { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: 0 40px 80px -40px rgba(11,21,38,.6); margin-top: 46px; }
.calc-photo { position: relative; min-height: 320px; }
.calc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.calc-body { padding: 44px; }
.calc-body h3 { font-size: 1.5rem; color: #fff; }
.slider { margin: 26px 0; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.slider-top label { font-weight: 600; color: #dfe5ef; }
.slider-top output { font: 700 1.5rem/1 var(--head); color: #fff; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--fill, 50%), #2a3a56 var(--fill, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); cursor: pointer; }
input[type=range]:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.calc-result div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px 20px; }
.calc-result small { display: block; color: #9aa6b9; font-size: .82rem; margin-bottom: 6px; }
.calc-result b { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1 var(--head); letter-spacing: -.02em; }
.calc-result .big { grid-column: span 2; background: var(--accent); border-color: var(--accent); }
.calc-result .big small { color: #ffe0d6; }
.calc-note { color: #8d98ab; font-size: .82rem; margin: 16px 0 0; }
@media (max-width: 859px) { .calc { grid-template-columns: 1fr; } .calc-photo { min-height: 240px; } .calc-body { padding: 30px 22px; } }

/* ---------- Promise counters ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line); }
.promise { padding: 30px 22px 6px 0; }
.promise b { display: block; font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--head); letter-spacing: -.04em; color: var(--ink); }
.promise b i { font-style: normal; color: var(--accent); }
.promise span { color: var(--muted); }
@media (max-width: 759px) { .promises { grid-template-columns: 1fr 1fr; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 60px; list-style: none; padding: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 3px; border-radius: 3px; background: var(--line); }
.timeline::after { background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2,.7,.2,1) .2s; }
.timeline.in::after { transform: scaleX(1); }
.timeline li { position: relative; }
.timeline .num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.2rem/1 var(--head); margin-bottom: 22px; box-shadow: 0 0 0 8px var(--paper); }
.timeline li:nth-child(-n+2) .num { background: var(--accent); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }
.timeline .free { display: inline-block; margin-left: 6px; font: 700 .68rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: #dcfce9; color: #0b7a4b; padding: 5px 8px; border-radius: 99px; vertical-align: middle; }
@media (max-width: 859px) {
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before, .timeline::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.in::after { transform: scaleY(1); }
  .timeline li { padding-left: 84px; min-height: 56px; }
  .timeline .num { position: absolute; left: 0; top: 0; }
}

/* ---------- Pricing refresh ---------- */
.plan { transition: transform .3s ease, box-shadow .3s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,21,38,.45); }
.plan.featured { background: radial-gradient(120% 80% at 100% 0%, #24365a 0%, var(--ink) 55%); outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Photo CTA ---------- */
.photo-cta { position: relative; border-radius: 32px; overflow: hidden; color: #fff; padding: 110px 48px; isolation: isolate; text-align: center; }
.photo-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(11,21,38,.92), rgba(11,21,38,.62) 55%, rgba(255,90,54,.55)); }
.photo-cta h2 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -.04em; max-width: 900px; margin: 0 auto 18px; color: #fff; }
.photo-cta p { color: #dfe5ef; font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
@media (max-width: 559px) { .photo-cta { padding: 72px 22px; border-radius: 24px; } }

/* ---------- Dark footer ---------- */
.home .site-footer { background: var(--ink); color: #8d98ab; padding-top: 60px; }
.home .site-footer .footer-row { border-top-color: #22324e; }
.home .site-footer .logo { color: #fff; }
.home .site-footer a:hover { color: #fff; }
.footer-big { font: 700 clamp(2.6rem, 9vw, 7.5rem)/.9 var(--head); letter-spacing: -.05em; color: #fff; margin: 0 0 40px; }
.footer-big span { color: var(--accent); }
