/* ═══════════════════════════════════════════════════════════════
   OverWithTech — iMessage-native mechanic, dark editorial shell.
   Display: Instrument Serif. Body: Instrument Sans.
   Ink #0A0A0B · Cream #F5F1EA · iMessage blue #0A84FF · bubble gray #26262A
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0A0A0B;
  --ink-2: #131316;
  --cream: #F5F1EA;
  --cream-dim: rgba(245, 241, 234, .64);
  --cream-faint: rgba(245, 241, 234, .38);
  --blue: #0A84FF;
  --blue-deep: #0060DF;
  --green: #30D158;
  --bubble-in: #26262A;
  --hairline: rgba(245, 241, 234, .12);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "SF Pro Text", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(3rem, 8.5vw, 7.25rem); line-height: 0.98; }
h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
.kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cream-faint); margin-bottom: 1.1rem;
}
.sub { color: var(--cream-dim); max-width: 46ch; }
.compliance { font-size: .75rem; color: var(--cream-faint); }
.cta-hint { font-size: .875rem; color: var(--cream-dim); max-width: 30rem; margin-top: -.1rem; }
.cta-hint::before { content: "💬 "; }

/* ── pills ── */
.pill {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; border-radius: 999px; text-decoration: none; font-weight: 600;
  padding: .7rem 1.5rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pill:active { transform: scale(.97); }
.pill-blue {
  background: linear-gradient(180deg, #2196FF, var(--blue) 55%, var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 32px rgba(10, 132, 255, .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.pill-blue:hover { box-shadow: 0 12px 44px rgba(10, 132, 255, .5), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.pill-ghost { border: 1px solid var(--hairline); color: var(--cream); }
.pill-ghost:hover { border-color: var(--cream-dim); }
.cta-big { padding: 1rem 2.4rem; }
.cta-small { font-size: .8125rem; font-weight: 500; opacity: .85; letter-spacing: .04em; }
.cta-small strong { font-weight: 700; letter-spacing: .1em; }
.cta-number { font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }

/* ── header ── */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--pad);
  background: rgba(10, 10, 11, .62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--cream); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-bubble {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='9'/%3E%3C/svg%3E");
  position: relative;
}
.brand-bubble::after {
  content: ""; position: absolute; inset: 5px 5px 7px 5px;
  background: #fff; border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 55% 70%, 30% 100%, 33% 70%, 0 70%);
}
.brand-bubble.sm { width: 16px; height: 16px; border-radius: 5px; }
.site-head nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-head nav a { color: var(--cream-dim); text-decoration: none; font-size: .9375rem; }
.site-head nav a:hover { color: var(--cream); }
.head-cta { padding: .5rem 1.2rem; font-size: .9375rem; }
.site-head nav .nav-signin { color: var(--cream-faint); border-left: 1px solid var(--hairline); padding-left: 1.6rem; }
.site-head nav .nav-signin:hover { color: var(--cream); }

/* hamburger — desktop hidden; the CTA inside the drawer is desktop-hidden too */
.nav-toggle { display: none; }
.nav-drawer-cta { display: none; }
.nav-toggle {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  cursor: pointer; width: 42px; height: 42px; padding: 11px; flex: none;
  margin-left: .1rem; z-index: 62;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--cream);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* Drop the header's backdrop-filter on mobile: a filtered ancestor becomes
     the containing block for position:fixed descendants, which would pin the
     drawer to the ~60px header box instead of the viewport. Solid-ish bg keeps
     the closed bar legible over the hero without the blur. */
  .site-head {
    background: rgba(10, 10, 11, .92);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .site-head nav {
    position: fixed; inset: 0; margin: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    gap: 0; padding: 4.5rem var(--pad) 2.5rem; overflow-y: auto;
    background: var(--ink);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform .36s cubic-bezier(.4,0,.2,1), opacity .28s ease, visibility .36s;
  }
  .site-head.nav-open nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-head nav a {
    font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.4rem);
    color: var(--cream); padding: .7rem 0; border-bottom: 1px solid var(--hairline);
  }
  .site-head nav a:last-child { border-bottom: 0; }
  .site-head nav .nav-drawer-cta {
    display: block; text-align: center; font-family: var(--sans);
    font-size: 1.0625rem; margin-top: 1.6rem; padding: .95rem 1.4rem;
  }
  .site-head nav .nav-signin { border-left: 0; padding-left: 0; color: var(--cream); }
  .head-cta { display: none; } /* the drawer carries the CTA on mobile */
  .site-head.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-head.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-head.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media { background: radial-gradient(120% 90% at 70% 20%, #1c1710 0%, var(--ink) 60%); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.72) 44%, rgba(10,10,11,.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 24%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: 7.5rem var(--pad) 5rem;
  max-width: 1440px; margin-inline: auto;
}
.hero-copy .lede { color: var(--cream-dim); max-width: 44ch; margin: 1.4rem 0 2.2rem; font-size: 1.125rem; }
.cta-stack { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.proof-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-top: 2rem; }
.proof-chips li {
  font-size: .8125rem; color: var(--cream-dim);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .35rem .9rem;
  background: rgba(245,241,234,.04);
}

/* ── the conversation (authentic iMessage geometry) ── */
.hero-thread {
  display: flex; flex-direction: column; gap: .32rem;
  padding: 1.4rem 1.2rem;
  background: rgba(19, 19, 22, .55);
  border: 1px solid var(--hairline); border-radius: 28px;
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  max-width: 400px; justify-self: end; width: 100%;
}
.thread-time { text-align: center; font-size: .6875rem; color: var(--cream-faint); margin-bottom: .4rem; font-weight: 500; }
.msg {
  max-width: 82%; padding: .52rem .85rem; border-radius: 19px;
  font-size: .9375rem; line-height: 1.35; position: relative;
}
.msg.in  { align-self: flex-start; background: var(--bubble-in); color: var(--cream); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: linear-gradient(180deg, #1F8FFF, var(--blue)); color: #fff; border-bottom-right-radius: 6px; }
.msg + .msg.in:not(.in + .in), .msg + .msg.out:not(.out + .out) { margin-top: .35rem; }
.msg u { text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 2px; }
.msg.link-card { padding-left: 1.05rem; }
.link-card-bar { position: absolute; left: .5rem; top: .55rem; bottom: .55rem; width: 3px; border-radius: 2px; background: var(--blue); }
.msg.mini { font-size: .85rem; margin-top: 1rem; }
.js .hero-thread .msg { opacity: 0; transform: translateY(10px) scale(.96); }
.js .hero-thread.play .msg { animation: pop .38s cubic-bezier(.2, 1.2, .4, 1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ── mosaic (photoai pattern: static vertical masonry, volume is the effect) ── */
.mosaic-band { padding: 6rem 0 3.5rem; background: var(--ink-2); border-block: 1px solid var(--hairline); }
.mosaic-head { text-align: center; padding: 0 var(--pad) 3rem; }
.mosaic {
  /* 16 unique sites, one tile each — fewer, larger columns keep the wall dense */
  columns: 4 280px; column-gap: 10px;
  padding: 0 clamp(.5rem, 2vw, 1.5rem);
  max-width: 1440px; margin-inline: auto;
}
.tile {
  position: relative; display: block; width: 100%;
  break-inside: avoid; margin: 0 0 10px;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(245, 241, 234, .06);
  background: var(--ink); padding: 0;
  transition: transform .22s ease, border-color .22s ease;
}
button.tile { appearance: none; -webkit-appearance: none; text-align: inherit; font: inherit; color: inherit; }
.tile:hover { transform: translateY(-3px); border-color: rgba(245, 241, 234, .22); }
.tile img { width: 100%; height: auto; display: block; filter: saturate(1.02); }
.tile .tile-domain {
  position: absolute; left: .6rem; bottom: .6rem;
  font-size: .71rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(10,10,11,.82); color: var(--cream);
  padding: .28rem .65rem; border-radius: 999px;
  backdrop-filter: blur(8px); border: 1px solid var(--hairline);
  opacity: 0; transform: translateY(4px); transition: all .25s ease;
  pointer-events: none;
}
.tile:hover .tile-domain, .tile:focus-visible .tile-domain { opacity: 1; transform: none; }
.mosaic-note { text-align: center; color: var(--cream-faint); padding: 2.6rem var(--pad) 0; font-style: italic; font-family: var(--serif); font-size: 1.25rem; }

/* ── site-story modal (photoai anatomy, our brand) ── */
.site-modal {
  border: 1px solid var(--hairline); border-radius: 24px; padding: 0;
  background: var(--ink-2); color: var(--cream);
  width: min(1060px, calc(100vw - 2rem)); max-height: 88vh;
  overflow: hidden;
  /* the global `* { margin: 0 }` reset kills the <dialog> UA default that
     centers it — without this the dialog pins to the top-left corner */
  margin: auto;
}
.site-modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(8px); }
.sm-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(300px, 9fr);
  height: min(720px, 86vh); /* FIXED height: panes scroll inside, dialog never overflows */
}
.sm-shot {
  position: relative; overflow-y: auto; min-height: 0; background: #0f0f11;
  border-right: 1px solid var(--hairline);
  scrollbar-width: thin;
}
.sm-shot img { width: 100%; height: auto; display: block; }
.sm-badge {
  position: sticky; top: .8rem; margin-left: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--green); color: #04150a;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  padding: .3rem .7rem; border-radius: 999px; z-index: 2;
}
.sm-panel { padding: 1.6rem 1.6rem 1.4rem; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 1.15rem; }
.sm-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--hairline); background: rgba(10,10,11,.7);
  color: var(--cream); font-size: 1.05rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(8px);
}
.sm-close:hover { border-color: var(--cream-dim); }
.sm-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-faint); margin-bottom: .45rem;
}
.sm-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.05; }
.sm-title small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--cream-faint); margin-top: .3rem; letter-spacing: .02em; }
.sm-panel .msg.out { max-width: 100%; align-self: flex-start; font-size: .9375rem; }
.sm-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.sm-facts li { font-size: .875rem; color: var(--cream-dim); padding-left: 1.15rem; position: relative; }
.sm-facts li::before { content: "—"; position: absolute; left: 0; color: var(--cream-faint); }
.sm-build {
  background: var(--ink); border: 1px solid var(--hairline); border-radius: 12px;
  padding: .85rem 1rem; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .78rem; line-height: 1.75; color: var(--cream-dim);
}
.sm-build b { color: var(--cream); font-weight: 600; }
.sm-ctas { display: flex; flex-direction: column; gap: .6rem; margin-top: auto; padding-top: .4rem; }
.sm-ctas .pill { justify-content: center; text-align: center; }
.sm-ctas .pill-blue { padding: .85rem 1.4rem; }
@media (max-width: 760px) {
  .sm-grid { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; height: 86vh; }
  .sm-shot { border-right: 0; border-bottom: 1px solid var(--hairline); }
  /* CTAs pinned to the visible bottom of the story pane — "Open the live
     site" is on screen the moment the modal opens, no scroll required */
  .sm-panel { padding-bottom: 0; }
  .sm-ctas {
    position: sticky; bottom: 0;
    margin: auto -1.6rem 0; padding: 1rem 1.6rem 1.1rem;
    background: linear-gradient(to top, var(--ink-2) 72%, transparent);
  }
}

/* ── sections shared ── */
section { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); max-width: 1440px; margin-inline: auto; }
.mosaic-band, .domain-band, .final-cta { max-width: none; }
.section-head { margin-bottom: 3.2rem; }
.section-head .sub { margin-top: 1.2rem; }

/* ── how ── */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; }
.steps li { background: var(--ink); padding: 2rem 1.6rem 1.8rem; display: flex; flex-direction: column; align-items: flex-start; }
.step-num { font-family: var(--serif); font-size: 2.6rem; color: var(--blue); line-height: 1; font-style: italic; }
.steps h3 { margin: .9rem 0 .5rem; font-size: 1.1875rem; }
.steps p { color: var(--cream-dim); font-size: .9375rem; flex: 1; }

/* ── leads ── */
.leads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.leads-copy p { color: var(--cream-dim); max-width: 46ch; margin-top: 1.2rem; }
.leads-copy h2 { margin-top: 0; }
.leads-stack { display: flex; flex-direction: column; gap: .9rem; }
.notif {
  background: rgba(38, 38, 42, .6); border: 1px solid var(--hairline);
  border-radius: 18px; padding: .95rem 1.1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.notif:nth-child(2) { transform: scale(.97); opacity: .82; }
.notif:nth-child(3) { transform: scale(.94); opacity: .62; }
.notif-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.notif-app { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--cream-dim); text-transform: uppercase; }
.notif time { font-size: .75rem; color: var(--cream-faint); }
.notif strong { font-size: .9375rem; }
.notif p { font-size: .875rem; color: var(--cream-dim); margin-top: .15rem; }

/* ── domain band ── */
.domain-band { text-align: center; background: var(--ink-2); border-block: 1px solid var(--hairline); }
.domain-compare { display: flex; flex-direction: column; gap: .4rem; align-items: center; margin: 1.4rem 0 1.6rem; }
.domain-good { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 3.2rem); }
.domain-good b { color: var(--green); }
.domain-bad { font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--cream-faint); text-decoration: line-through; text-decoration-color: rgba(255, 99, 99, .7); }
.domain-band .sub { margin-inline: auto; }

/* ── pricing ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; align-items: stretch; }
.plan {
  border: 1px solid var(--hairline); border-radius: 24px; padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: .9rem; background: var(--ink-2);
}
.plan.featured {
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 90px rgba(245, 241, 234, .1);
  position: relative;
}
.plan.featured .plan-blurb, .plan.featured li { color: rgba(10,10,11,.72); }
.plan-flag {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; }
.price { font-family: var(--serif); font-size: 3.4rem; line-height: 1; }
.price span { font-family: var(--sans); font-size: 1rem; color: inherit; opacity: .6; }
.plan-blurb { color: var(--cream-dim); font-size: .9375rem; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.plan li { font-size: .9375rem; color: var(--cream-dim); padding-left: 1.3rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan .pill { justify-content: center; }

/* ── faq ── */
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0;
  font-weight: 600; font-size: 1.0625rem; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.7rem; color: var(--blue); transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 1.4rem; color: var(--cream-dim); max-width: 60ch; }

/* ── final cta ── */
.final-cta {
  text-align: center; background:
    radial-gradient(60% 90% at 50% 110%, rgba(10, 132, 255, .22), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  padding-block: clamp(6rem, 12vw, 10rem);
}
.final-cta .compliance { margin-top: -1rem; }

/* ── footer ── */
.site-foot {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: 2.2rem var(--pad); border-top: 1px solid var(--hairline);
  color: var(--cream-faint); font-size: .875rem;
}
.site-foot nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-foot a { color: var(--cream-dim); text-decoration: none; }
.site-foot a:hover { color: var(--cream); }
.foot-tag { width: 100%; font-family: var(--serif); font-style: italic; color: var(--cream-faint); font-size: 1.05rem; }

/* ── sticky mobile cta ── */
.sticky-cta {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 70; padding: .8rem 1.6rem; font-size: .95rem; white-space: nowrap;
  transition: opacity .3s ease, transform .3s ease;
}
.sticky-cta[hidden] { display: none; }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 6.5rem; }
  .hero-thread { justify-self: stretch; max-width: 460px; margin-inline: auto; }
  .leads { grid-template-columns: 1fr; }
}

/* ── reveal on scroll ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-thread .msg, .js .reveal { opacity: 1; transform: none; }
}
