/* ============================================================
   Cohdoo — shared styles
   ============================================================ */

:root {
  --blue:   #37bde9;
  --green:  #75bf35;
  --orange: #ff7029;
  --purple: #ab47c6;
  --pink:   #f662d6;

  --accent: var(--blue);

  --ink:    #15181c;
  --body:   #41474e;
  --muted:  #767f88;
  --faint:  #aab1b8;
  --line:   #e9ecef;
  --surface:#f5f7f9;
  --bg:     #ffffff;

  --font: "Nunito", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --gutter: 40px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand img { height: 24px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 15.5px; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0; letter-spacing: .005em;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 17px; color: var(--accent);
  letter-spacing: .002em;
}
.link-arrow .arw { transition: transform .3s var(--ease); display: inline-block; }
.link-arrow:hover .arw { transform: translateX(5px); }
.link-arrow .ln { background-image: linear-gradient(var(--accent),var(--accent));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease); padding-bottom: 2px; }
.link-arrow:hover .ln { background-size: 100% 1.5px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 17px;
  padding: 15px 28px; border-radius: 999px; letter-spacing: .005em;
  box-shadow: 0 1px 2px rgba(21,24,28,.12); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px color-mix(in oklch, var(--accent) 70%, transparent); filter: saturate(108%); }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding-top: 116px; padding-bottom: 64px; }
.hero-logo { display: block; width: auto; height: clamp(80px, 14vw, 168px); margin-bottom: 40px; }
.hero h1 {
  font-weight: 600; letter-spacing: -.03em; line-height: 1.0;
  font-size: 45px; color: var(--ink);
}
.hero h1 .per { color: var(--accent); }
.hero .lead {
  margin-top: 30px; max-width: 540px; font-size: clamp(19px, 2.2vw, 22px);
  color: var(--body); line-height: 1.55;
}
.hero .cta { margin-top: 44px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.accent-text { color: var(--accent); }

/* ---------- Intro / statement ---------- */
.intro { padding: 64px 0 104px; }
.intro .col { max-width: 760px; }
.intro .statement {
  font-size: clamp(28px, 3.8vw, 46px); font-weight: 500; line-height: 1.22;
  letter-spacing: -.018em; color: var(--ink);
}
.intro .support { margin-top: 28px; font-size: 19px; color: var(--body); max-width: 560px; }
.intro .support .rel { color: var(--ink); font-weight: 500; }
.intro .more { margin-top: 36px; }

/* ---------- Product ---------- */
.product { padding: 120px 0; background: var(--surface); border-top: 1px solid var(--line); }
.product .grid { display: grid; grid-template-columns: 1fr 0.86fr; gap: 80px; align-items: center; }
.product .copy { max-width: 520px; }
.product .prod-head { display: flex; align-items: center; gap: 20px; }
.product .appicon { width: 76px; height: 76px; border-radius: 18px; flex: none;
  box-shadow: 0 1px 2px rgba(21,24,28,.12), 0 12px 26px -10px rgba(21,24,28,.40); }
.product h2 {
  font-size: clamp(40px, 5.2vw, 62px); font-weight: 600;
  letter-spacing: -.03em; line-height: .98; color: var(--ink);
}
.product .prod-titles .eyebrow { margin-top: 9px; }
.product .tagline { margin-top: 26px; font-size: clamp(20px, 2.4vw, 25px); font-weight: 500; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.product .desc { margin-top: 20px; font-size: 19px; color: var(--body); }
.product .more { margin-top: 36px; }
.product .device-wrap { display: flex; justify-content: center; }

/* ---------- iPhone mockup ---------- */
.phone-cluster { position: relative; display: inline-block; }
.phone {
  position: relative; width: 292px; aspect-ratio: 292 / 633;
  background: #15181c; border-radius: 50px; padding: 10px;
  box-shadow: 0 2px 4px rgba(21,24,28,.10),
              0 30px 60px -28px rgba(21,24,28,.42),
              inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 41px; overflow: hidden; background: #16263a;
}
.phone .screen > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone.secondary {
  position: absolute; top: -22px; right: -92px; z-index: 1;
  transform: scale(.82) rotate(5deg); transform-origin: top right;
}
.phone.primary { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 22px; }
.footer-left img { height: 20px; }
.footer-left .copy { font-size: 14.5px; color: var(--muted); }
.footer-nav { display: flex; gap: 30px; }
.footer-nav a { font-size: 15px; font-weight: 500; color: var(--body); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
body.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .phone.secondary { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 26px; }
  .product .grid { grid-template-columns: 1fr; gap: 56px; text-align: left; }
  .product .device-wrap { justify-content: flex-start; }
  .hero { padding-top: 84px; padding-bottom: 92px; }
  .intro { padding: 80px 0; }
  .product { padding: 88px 0; }
}
@media (max-width: 560px) {
  .nav { gap: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ============================================================
   STORY PAGE
   ============================================================ */
.story-col { max-width: 720px; margin: 0; }
.story-wide { max-width: 880px; margin: 0; }

.story-hero { padding: 92px 0 64px; }
.story-hero .eyebrow { margin-bottom: 26px; }
.story-hero h1 {
  font-size: clamp(40px, 5.4vw, 66px); font-weight: 600; letter-spacing: -.032em;
  line-height: 1.02; color: var(--ink); width: max-content; max-width: min(900px, calc(100vw - 80px));
}
.story-hero .lead { margin-top: 30px; font-size: clamp(20px, 2.3vw, 23px); line-height: 1.55; color: var(--body); }
.story-hero .lead + .lead { margin-top: 22px; font-size: 19px; }

.story-body { padding-bottom: 80px; }
.story-section { margin-top: 92px; }
.story-section > h2 {
  font-size: clamp(27px, 3.2vw, 36px); font-weight: 600; letter-spacing: -.022em;
  line-height: 1.1; color: var(--ink); margin-bottom: 26px;
  display: flex; align-items: baseline; gap: 16px;
}
.story-section > h2 .idx { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .04em; transform: translateY(-2px); }
.story-body p { font-size: 19px; line-height: 1.72; color: var(--body); margin-bottom: 20px; }
.story-body p .nm { color: var(--ink); font-weight: 600; }
.story-body .beat { font-size: 22px; line-height: 1.45; font-weight: 500; color: var(--ink); margin: 30px 0; letter-spacing: -.01em; }
.story-body .beat.accent { color: var(--accent); }

/* product vignette figures */
.vignette { margin: 44px 0 20px; }
.vignette + p { margin-top: 48px; }
.vignette .frame {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(21,24,28,.05), 0 26px 50px -34px rgba(21,24,28,.28);
}
.vignette .frame.frame-plain { background: #fff; }
.vignette .frame > img { display: block; width: 100%; }

/* slideshow inside a vignette frame */
.slideshow { position: relative; width: 100%; overflow: hidden; }
.slideshow .slides { position: relative; width: 100%; height: 100%; }
.slideshow .slide {
  position: absolute; inset: 0; width: 100%; height: 100% !important;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease);
}
.slideshow .slide.is-active { opacity: 1; visibility: visible; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.no-motion .slideshow .slide { transition: none; }

.slideshow .ss-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.86); color: var(--ink); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(21,24,28,.18); transition: background .2s var(--ease), transform .2s var(--ease);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slideshow .ss-nav:hover { background: #fff; }
.slideshow .ss-nav.prev { left: 14px; }
.slideshow .ss-nav.next { right: 14px; }
.slideshow .ss-nav:active { transform: translateY(-50%) scale(.94); }

.slideshow .ss-dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 8px; padding: 7px 11px; border-radius: 999px;
  background: rgba(21,24,28,.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slideshow .ss-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.55); transition: background .2s var(--ease), transform .2s var(--ease);
}
.slideshow .ss-dots button.is-active { background: #fff; transform: scale(1.25); }
.slideshow.single .ss-nav, .slideshow.single .ss-dots { display: none; }
.vignette figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.vignette figcaption .tick { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* pull quote */
.pullquote { margin: 48px 0; text-align: left; }
.pullquote q { display: block; quotes: none; font-size: clamp(26px, 3.6vw, 38px); font-weight: 500;
  line-height: 1.28; letter-spacing: -.018em; color: var(--ink); }
.pullquote q .hl { color: var(--accent); }
.pullquote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* sign-off */
.signoff { margin-top: 48px; padding: 0; text-align: left; }
.signoff p { font-size: 19px; line-height: 1.72; font-weight: 400; letter-spacing: 0; color: var(--body); }
.signoff p + p { margin-top: 0; }
.signoff .back-link { margin-top: 34px; }
