/* Ripple Systems — ripplesystems.io
   Layout after tidedrycleanerstx.com: a bold hero, a two-up action band, three
   icon steps, a pale stats band, a dark tile grid, a promo card, a contact band.
   Ripple's palette in their roles: blue for actions, amber for the one promo,
   navy for dark bands, pale blue for light ones. */

:root {
  --navy: #0B1B3F;
  --navy-2: #12285A;
  --blue: #1E66F5;
  --blue-dark: #1553C9;
  --cyan: #22D3EE;
  --amber: #FFB020;
  --pale: #EAF1FB;
  --ink: #0B1B3F;
  --muted: #4A5A73;
  --line: #D5DEEA;
  --white: #FFFFFF;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Anchor jumps (#features, #panel…) stop below the sticky header */
[id] { scroll-margin-top: 96px; }
@media (max-width: 860px) { [id] { scroll-margin-top: 150px; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.6 'Lato', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Montserrat', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Buttons: pills, heavy type, like the reference ─────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  font: 800 16px/1 'Montserrat', sans-serif;
  text-decoration: none;
  transition: background-color 200ms;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn-small { padding: 11px 22px; font-size: 15px; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--pale); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── Announcement bar ───────────────────────────────────────────────────── */
.announce {
  background: var(--navy);
  color: #DCE6F7;
  font-size: 14px;
  text-align: center;
  padding: 9px 16px;
}
.announce strong { color: var(--cyan); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink);
  font: 700 15px 'Montserrat', sans-serif;
  text-decoration: none;
}
.nav a:hover { color: var(--blue); }
.nav .btn { color: var(--white); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 118%, rgba(34,211,238,0.22), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  text-align: center;
  padding: 84px 0 0;
}
/* Ripples: concentric rings behind the headline */
.hero::before, .hero::after {
  content: ""; position: absolute; left: 50%; top: 56%;
  border-radius: 50%; border: 2px solid rgba(34,211,238,0.18);
  transform: translate(-50%, -50%); pointer-events: none;
}
.hero::before { width: 900px; height: 900px; }
.hero::after { width: 1400px; height: 1400px; border-color: rgba(34,211,238,0.10); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--amber);
  color: var(--navy);
  font: 800 13px 'Montserrat', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 20px auto 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--cyan); }
.hero p.lead {
  margin: 18px auto 0;
  max-width: 640px;
  color: #C8D6F0;
  font-size: 19px;
}
.hero .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.devices {
  position: relative;
  margin: 56px auto 0;
  max-width: 880px;
  display: flex; align-items: flex-end; justify-content: center; gap: 28px;
}
.panel-frame {
  flex: 1 1 auto;
  max-width: 600px;
  padding: 14px;
  border-radius: 26px 26px 0 0;
  background: #05080F;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.35);
}
.panel-frame img { border-radius: 10px 10px 0 0; }
.phone-frame {
  flex: 0 0 auto;
  width: 200px;
  padding: 8px 8px 0;
  border-radius: 34px 34px 0 0;
  background: #05080F;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.45);
}
.phone-frame img { border-radius: 27px 27px 0 0; height: 330px; object-fit: cover; object-position: top; }

/* ── Two-up action band ─────────────────────────────────────────────────── */
.action-band { background: var(--white); border-bottom: 1px solid var(--line); }
.action-band .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.action-col { padding: 48px 40px; text-align: center; }
.action-col + .action-col { border-left: 1px solid var(--line); }
.action-col h2 { font-size: 26px; font-weight: 800; }
.action-col p { margin: 10px auto 20px; max-width: 420px; color: var(--muted); }

/* ── Section basics ─────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; text-align: center; }
.section-title .small {
  display: block; margin-bottom: 8px;
  color: var(--blue);
  font-size: 15px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.section-lead { margin: 16px auto 0; max-width: 680px; text-align: center; color: var(--muted); font-size: 18px; }

/* ── Three steps ────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step { text-align: center; }
.step-icon {
  width: 96px; height: 96px; margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pale); color: var(--blue);
}
.step-icon svg { width: 44px; height: 44px; }
.step h3 { font-size: 22px; font-weight: 800; }
.step h3 .num { color: var(--blue); margin-right: 6px; }
.step p { margin: 8px auto 0; max-width: 300px; color: var(--muted); }

/* ── Stats band ─────────────────────────────────────────────────────────── */
.stats { background: var(--pale); }
.stat-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 30px 18px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  box-shadow: 0 8px 24px rgba(11,27,63,0.06);
}
.stat .value { font: 800 40px/1 'Montserrat', sans-serif; color: var(--blue); }
.stat .label { margin-top: 10px; font-weight: 700; }
.stat .note { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ── Feature tiles on navy ──────────────────────────────────────────────── */
.features { background: var(--navy); color: var(--white); }
.features .section-title .small { color: var(--cyan); }
.features .section-lead { color: #C8D6F0; }
.tile-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.tile svg { width: 34px; height: 34px; color: var(--cyan); }
.tile h3 { margin-top: 16px; font-size: 20px; font-weight: 800; }
.tile p { margin: 8px 0 0; color: #C8D6F0; font-size: 16px; }

/* ── Showcase rows ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; }
.split p { color: var(--muted); }
.split ul { padding-left: 20px; color: var(--muted); }
.split li { margin: 4px 0; }
.panel-pair { display: grid; gap: 16px; }
.panel-pair figure { margin: 0; }
.panel-pair .screen { padding: 10px; border-radius: 16px; background: #05080F; }
.panel-pair .screen img { border-radius: 6px; }
.panel-pair figcaption { margin-top: 8px; font: 700 15px 'Montserrat', sans-serif; }

/* Panel rotator: four slides crossfade, 4 s each (16 s cycle), CSS only.
   Slide n starts at 4(n-1) s; a negative delay of (16 - 4(n-1)) s puts it
   there without a blank first pass. Each shows for ~3.5 s, then a 0.6 s
   crossfade with the next. */
.panel-rotator .screen { padding: 10px; border-radius: 16px; background: #05080F; }
.panel-rotator .slides { position: relative; aspect-ratio: 5 / 3; border-radius: 6px; overflow: hidden; }
.panel-rotator .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-rotator .captions { position: relative; height: 24px; margin-top: 10px; }
.panel-rotator .captions span { position: absolute; left: 0; top: 0; font: 700 15px 'Montserrat', sans-serif; }
.panel-rotator .slide { opacity: 0; animation: panel-rotate 16s infinite; }
.panel-rotator .slide:nth-child(1) { animation-delay: 0s; }
.panel-rotator .slide:nth-child(2) { animation-delay: -12s; }
.panel-rotator .slide:nth-child(3) { animation-delay: -8s; }
.panel-rotator .slide:nth-child(4) { animation-delay: -4s; }
@keyframes panel-rotate {
  0%     { opacity: 1; }
  21.75% { opacity: 1; }
  25.5%  { opacity: 0; }
  96.25% { opacity: 0; }
  100%   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-rotator .slide { animation: none; }
  .panel-rotator .slide:nth-child(1) { opacity: 1; }
}

.phones { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.phones li { text-align: center; }
.phones .screen { padding: 6px; border-radius: 30px; background: #05080F; box-shadow: 0 16px 36px rgba(11,27,63,0.2); }
.phones .screen img { border-radius: 24px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }
.phones h3 { margin-top: 14px; font-size: 17px; font-weight: 800; }

/* ── Promo card ─────────────────────────────────────────────────────────── */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 44px;
  border-radius: 24px;
  background: var(--amber);
  color: var(--navy);
}
.promo .tag { font: 800 13px 'Montserrat', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.promo h2 { margin-top: 6px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.promo p { margin: 6px 0 0; font-weight: 700; }

.safety {
  margin-top: 28px;
  display: flex; gap: 14px; align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--muted);
}
.safety svg { flex: 0 0 auto; width: 28px; height: 28px; color: #15803D; }
.safety b { color: var(--ink); }

/* ── Contact band ───────────────────────────────────────────────────────── */
.contact { background: var(--pale); text-align: center; }
.contact-card {
  margin: 36px auto 0; max-width: 520px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(11,27,63,0.06);
}
.contact-card .icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--pale); color: var(--blue); }
.contact-card .icon svg { width: 30px; height: 30px; }
.contact-card h3 { font-size: 20px; font-weight: 800; }
.contact-card a.email { display: inline-block; margin-top: 6px; font: 700 18px 'Montserrat', sans-serif; text-decoration: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #C8D6F0; padding: 48px 0 32px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer-logo { padding: 8px 14px; border-radius: 12px; background: var(--white); }
.footer-logo img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--cyan); }
.copyright { flex-basis: 100%; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; }

/* ── Text pages (privacy, support) ──────────────────────────────────────── */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; }
.page-hero p { margin: 12px auto 0; max-width: 620px; color: #C8D6F0; }
.page-hero a { color: var(--cyan); }
.prose { max-width: 780px; margin: 0 auto; padding: 64px 24px 88px; }
.prose h2 { margin: 44px 0 10px; font-size: 26px; font-weight: 800; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2B3B55; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .meta { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--pale); font-family: 'Montserrat', sans-serif; font-size: 14px; }
.callout { margin: 20px 0; padding: 18px 22px; border-radius: 14px; background: var(--pale); }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; padding-top: 12px; padding-bottom: 12px; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
  .action-band .wrap { grid-template-columns: 1fr; }
  .action-col + .action-col { border-left: 0; border-top: 1px solid var(--line); }
  .steps, .tile-grid { grid-template-columns: 1fr; }
  .stat-list, .phones { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .phone-frame { display: none; }
  .section { padding: 64px 0; }
  .promo { padding: 32px 26px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 38px; }
  .action-col { padding: 40px 8px; }
  .stat .value { font-size: 32px; }
}
