/* ============================================================
   Kurrb shared site styles
   Dark premium storefront for the dark-only Kurrb app.
   ============================================================ */

@font-face{font-family:'Fredoka';src:url('fonts/Fredoka-Light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:'Fredoka';src:url('fonts/Fredoka-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Fredoka';src:url('fonts/Fredoka-Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Fredoka';src:url('fonts/Fredoka-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Fredoka';src:url('fonts/Fredoka-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}

:root{
  --bg:#0b1017;
  --bg-2:#121822;
  --card:rgba(255,255,255,0.075);
  --card-strong:rgba(255,255,255,0.115);
  --ink:#f7f1e8;
  --ink-dim:rgba(247,241,232,0.72);
  --ink-faint:rgba(247,241,232,0.48);
  --line:rgba(255,255,255,0.12);
  --line-strong:rgba(255,255,255,0.22);
  --amber:#f2c76b;
  --amber-strong:#f4b83f;
  --blue:#7dbbff;
  --cream:#e5dfc4;
  --coral:#ff806e;
  --mint:#8fe2bd;
  --font:'Fredoka','SF Pro Rounded',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --max:1140px;
  --radius:28px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;background:var(--bg);}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

body{
  min-height:100vh;
  background:#0d1015;
  color:var(--ink);
  font-family:var(--font);
  font-weight:400;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  position:relative;
}

/* grey textured image = the whole-site backdrop */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url("blank-backgrounds/grey-bg.jpg") center center/cover no-repeat fixed;
}

/* neutral depth vignette — no colour, just a little darkening at the edges */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(130% 90% at 50% -12%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.5) 100%);
}

a{color:inherit;text-decoration:none;}
img,svg{display:block;max-width:100%;}
button{font:inherit;cursor:pointer;}
ul{list-style:none;}

.wrap{max-width:var(--max);margin:0 auto;padding:0 24px;position:relative;z-index:1;}
h1,h2,h3,h4{font-weight:700;letter-spacing:0;line-height:1.03;overflow-wrap:break-word;}
.hero-copy,.hero-device{min-width:0;}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--cream);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--blue),var(--amber));
  box-shadow:0 0 18px rgba(125,187,255,0.5);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:13px 22px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  color:var(--ink);
  background:rgba(255,255,255,0.07);
  font-weight:700;
  transition:transform .16s ease,border-color .18s ease,background .18s ease;
  white-space:nowrap;
}
.btn:hover{background:rgba(255,255,255,0.11);border-color:rgba(255,255,255,0.34);}
.btn:active{transform:scale(.98);}
.btn-ghost{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}

:focus-visible{outline:2.5px solid var(--blue);outline-offset:4px;border-radius:8px;}

/* ---------- nav ---------- */
header.site{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(9,13,20,0.68);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

nav.site{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:var(--max);
  margin:0 auto;
  padding:16px 24px;
  gap:22px;
}

.brand img{height:29px;width:auto;}
.nav-links{display:flex;gap:28px;align-items:center;color:var(--ink-dim);font-size:14.5px;font-weight:600;}
.nav-links a{transition:color .16s ease;}
.nav-links a:hover{color:var(--ink);}
.nav-store img{height:36px;width:auto;}
@media (max-width:720px){.nav-links{display:none;}.nav-store img{height:34px;}}

/* ---------- homepage ---------- */
.hero{
  position:relative;
  min-height:calc(100vh - 74px);
  padding:92px 0 80px;
  overflow:hidden;
}

/* dusk wallpaper glows behind the hero, then dissolves into the grey backdrop */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:url("blank-backgrounds/dusk-wallpaper-under-2mb copy.jpg") center top/cover no-repeat;
  opacity:0.62;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 40%,transparent 88%);
  mask-image:linear-gradient(180deg,#000 0%,#000 40%,transparent 88%);
}

/* legibility + blend overlay above the dusk image, below the copy */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(13,16,21,0.42) 0%, rgba(13,16,21,0.12) 44%, rgba(13,16,21,0.92) 100%);
}

.hero .wrap{z-index:2;}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  align-items:center;
  gap:66px;
}

.hero-copy h1{
  max-width:760px;
  margin:22px 0 22px;
  font-size:clamp(46px,6.6vw,86px);
}

.lede{
  max-width:590px;
  color:var(--ink-dim);
  font-size:clamp(18px,2vw,22px);
  line-height:1.45;
}

.hero-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:34px 0 28px;}
.store-badge{display:inline-flex;align-items:center;transition:transform .16s ease,filter .18s ease;}
.store-badge img{height:54px;width:auto;}
.store-badge.large img{height:58px;}
.store-badge:hover{transform:translateY(-2px);filter:drop-shadow(0 14px 24px rgba(0,0,0,.24));}
.trust-row{display:flex;gap:10px;flex-wrap:wrap;color:var(--ink-faint);font-size:13px;font-weight:600;}
.trust-row span{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,0.045);}

.hero-device{display:flex;justify-content:center;}
.hero-shot{
  width:min(100%,392px);
  height:auto;
  filter:drop-shadow(0 44px 90px rgba(0,0,0,0.55));
  animation:heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-12px);}}
@media (prefers-reduced-motion:reduce){.hero-shot{animation:none;}}

.phone{
  width:min(100%,390px);
  aspect-ratio:390/790;
  padding:12px;
  border-radius:56px;
  background:linear-gradient(145deg,rgba(255,255,255,0.24),rgba(255,255,255,0.06));
  box-shadow:0 44px 90px rgba(0,0,0,0.48),inset 0 0 0 1px rgba(255,255,255,0.12);
  position:relative;
}

.phone-island{
  position:absolute;
  top:25px;
  left:50%;
  transform:translateX(-50%);
  width:104px;
  height:32px;
  border-radius:99px;
  background:#05070a;
  z-index:4;
}

.phone-screen{
  height:100%;
  border-radius:44px;
  overflow:hidden;
  position:relative;
  padding:76px 22px 24px;
  background:
    linear-gradient(180deg,rgba(10,15,22,0.15),rgba(10,15,22,0.78)),
    url("blank-backgrounds/dusk-wallpaper-under-2mb copy.jpg") center/cover;
}

.phone-screen::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(6,9,14,0.08),rgba(6,9,14,0.38));
  pointer-events:none;
}

.phone-top,.phone-card{position:relative;z-index:1;}
.phone-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:62px;}
.phone-top img{height:30px;}
.profile-dot{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.2);position:relative;}
.profile-dot::before{content:"";position:absolute;inset:13px;border-radius:50%;border:3px solid var(--ink);}

.phone-card{
  border-radius:30px;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(29,32,38,0.78);
  box-shadow:0 26px 56px rgba(0,0,0,0.34);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}

.active-break{padding:24px 20px;text-align:center;}
.live-pill{display:inline-flex;align-items:center;gap:8px;color:var(--cream);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;}
.live-pill span{width:7px;height:7px;border-radius:999px;background:var(--amber);box-shadow:0 0 16px rgba(242,199,107,.55);}

.ring-shell{width:230px;max-width:100%;aspect-ratio:1;margin:18px auto 8px;position:relative;}
.ring-shell svg{width:100%;height:100%;transform:rotate(-90deg);}
.ring-track{fill:none;stroke:rgba(255,255,255,0.09);stroke-width:17;}
.ring-progress{fill:none;stroke:url(#ringGradient);stroke-width:17;stroke-linecap:round;stroke-dasharray:578;stroke-dashoffset:164;filter:drop-shadow(0 0 10px rgba(125,187,255,.22));}
.ring-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;}
.ring-center strong{font-size:64px;line-height:.9;font-variant-numeric:tabular-nums;}
.ring-center span{margin-top:8px;color:var(--ink-dim);font-weight:700;font-size:15px;}
.active-break h2{font-size:30px;margin-top:8px;}
.active-break p{color:var(--ink-dim);font-size:15px;margin-top:8px;}
.mini-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;}
.mini-metrics div{border:1px solid rgba(255,255,255,0.11);border-radius:18px;padding:12px;background:rgba(255,255,255,0.045);}
.mini-metrics span{display:block;color:var(--ink-faint);font-size:12px;margin-bottom:2px;}
.mini-metrics strong{font-size:16px;}

.queued-card{padding:18px 20px;margin-top:14px;text-align:left;}
.queued-card span{display:block;color:var(--ink-faint);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;}
.queued-card strong{display:block;font-size:25px;margin-top:4px;}
.queued-card small{display:block;color:var(--ink-dim);font-size:13px;margin-top:4px;line-height:1.35;}

.statement{padding:54px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,0.035);}
.statement-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:44px;align-items:end;}
.statement h2{font-size:clamp(32px,4.5vw,54px);margin-top:16px;}
.statement p{font-size:clamp(18px,2vw,23px);line-height:1.36;color:var(--ink-dim);}

section{position:relative;padding:104px 0;}
.section-head{max-width:660px;margin-bottom:42px;}
.section-head.center{margin:0 auto 48px;text-align:center;}
.section-head.center .eyebrow{justify-content:center;}
.section-head h2{font-size:clamp(34px,5vw,58px);margin-top:16px;}
.section-head p{color:var(--ink-dim);font-size:17px;margin-top:16px;}

.flow-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.flow-card{
  min-height:260px;
  padding:28px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  box-shadow:0 28px 56px rgba(0,0,0,.22);
}
.flow-card span{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:rgba(242,199,107,.16);color:var(--amber);font-weight:700;margin-bottom:36px;}
.flow-card h3{font-size:23px;margin-bottom:10px;}
.flow-card p{color:var(--ink-dim);font-size:15px;}

.showcase{background:rgba(0,0,0,0.18);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.showcase-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:58px;align-items:start;}
.feature-stack{display:grid;gap:14px;}
.feature-row{display:grid;grid-template-columns:54px 1fr;gap:17px;align-items:start;padding:21px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,0.06);}
.feature-icon{width:54px;height:54px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(125,187,255,.22),rgba(242,199,107,.18));color:var(--cream);font-weight:800;font-size:20px;}
.feature-row h3{font-size:21px;margin-bottom:5px;}
.feature-row p{color:var(--ink-dim);font-size:15px;}

/* App Store style screenshot gallery */
.screens-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:6px;align-items:stretch;}
.screen-card{
  display:flex;
  flex-direction:column;
  height:clamp(452px,40vw,520px);
  overflow:hidden;
  padding:26px 22px 4px;
  border-radius:28px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.03));
  box-shadow:0 28px 56px rgba(0,0,0,.28);
  transition:transform .2s ease,border-color .2s ease;
}
.screen-card:hover{transform:translateY(-6px);border-color:var(--line-strong);}
/* reserve a fixed caption band so every phone starts at the same height */
.screen-card figcaption{flex:0 0 auto;min-height:78px;}
.screen-card figcaption strong{display:block;font-size:18px;font-weight:700;line-height:1.15;}
.screen-card figcaption span{display:block;margin-top:5px;color:var(--ink-dim);font-size:13.5px;line-height:1.4;}
/* phone fills the leftover height, fully visible, grounded at the bottom */
.screen-card img{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  object-fit:contain;
  object-position:center bottom;
  margin-top:14px;
  filter:drop-shadow(0 20px 36px rgba(0,0,0,.5));
}

.privacy-section{padding-bottom:74px;}
.privacy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.privacy-grid article{padding:28px;border-radius:var(--radius);background:rgba(255,255,255,0.06);border:1px solid var(--line);}
.privacy-grid h3{font-size:22px;margin-bottom:10px;}
.privacy-grid p{color:var(--ink-dim);font-size:15px;}

.download{padding-top:56px;}
.download-card{
  text-align:center;
  max-width:760px;
  margin:0 auto;
  padding:62px 28px;
  border-radius:38px;
  border:1px solid var(--line-strong);
  background:
    radial-gradient(65% 80% at 50% 0%, rgba(242,199,107,.16), transparent 62%),
    rgba(255,255,255,0.07);
  box-shadow:0 34px 78px rgba(0,0,0,.28);
}
.download-icon{width:92px;height:92px;border-radius:24px;margin:0 auto 22px;box-shadow:0 20px 36px rgba(0,0,0,.28);}
.download-card h2{font-size:clamp(38px,6vw,70px);margin:14px 0 12px;}
.download-card p{color:var(--ink-dim);font-size:18px;margin-bottom:28px;}

/* ---------- footer ---------- */
footer.site{position:relative;z-index:1;border-top:1px solid var(--line);background:rgba(3,5,8,0.62);}
footer.site .wrap{padding-top:52px;padding-bottom:34px;}
.footer-grid{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;}
.footer-left{max-width:330px;}
.footer-left img{height:28px;margin-bottom:16px;}
.footer-left p{color:var(--ink-faint);font-size:14.5px;}
.footer-cols{display:flex;gap:58px;flex-wrap:wrap;}
.footer-col h4{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-faint);margin-bottom:14px;}
.footer-col a{display:block;color:var(--ink-dim);font-size:14.5px;margin-bottom:10px;}
.footer-col a:hover{color:var(--ink);}
.footer-bottom{margin-top:42px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--ink-faint);font-size:12.5px;}
.socials{display:flex;gap:11px;margin-top:20px;}
.socials a{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink-dim);transition:border-color .18s ease,background .18s ease,color .18s ease,transform .16s ease;}
.socials a:hover{border-color:var(--line-strong);background:rgba(255,255,255,.07);color:var(--ink);transform:translateY(-2px);}
.socials svg{width:16px;height:16px;}

/* ---------- legal / support prose ---------- */
.legal-hero{padding:74px 0 30px;}
.legal-hero .eyebrow{margin-bottom:14px;}
.legal-hero h1{font-size:clamp(36px,5vw,56px);margin-bottom:12px;}
.legal-hero .updated{color:var(--ink-dim);font-size:15px;}
.prose{max-width:780px;border-top:1px solid var(--line);padding-top:30px;padding-bottom:84px;}
.prose h2{font-size:23px;font-weight:700;margin-top:38px;margin-bottom:12px;}
.prose h2:first-child{margin-top:0;}
.prose p,.prose li{color:var(--ink-dim);font-size:15.5px;line-height:1.75;margin-bottom:14px;}
.prose strong{color:var(--ink);font-weight:700;}
.prose a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.prose a:hover{color:var(--amber);}
.prose ul{list-style:disc;padding-left:22px;margin-bottom:16px;}
.prose li{margin-bottom:8px;}
.prose .note{margin-top:36px;padding:18px 20px;border-radius:18px;background:var(--card);border:1px solid var(--line);font-size:13.5px;color:var(--ink-faint);}

/* ---------- scroll motion ---------- */
.reveal{
  opacity:0;
  transform:translateY(34px);
  transition:opacity .8s cubic-bezier(.22,.61,.36,1),transform .8s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
.reveal.in{opacity:1;transform:none;}

/* stagger children of revealed grids as the group scrolls in */
.flow-grid > .reveal:nth-child(2){transition-delay:.08s;}
.flow-grid > .reveal:nth-child(3){transition-delay:.16s;}
.flow-grid > .reveal:nth-child(4){transition-delay:.24s;}
.screens-row > .reveal:nth-child(2){transition-delay:.09s;}
.screens-row > .reveal:nth-child(3){transition-delay:.18s;}
.screens-row > .reveal:nth-child(4){transition-delay:.27s;}
.privacy-grid > .reveal:nth-child(2){transition-delay:.1s;}
.privacy-grid > .reveal:nth-child(3){transition-delay:.2s;}

/* hero entrance on load */
@keyframes heroRise{from{opacity:0;transform:translateY(30px);}to{opacity:1;transform:none;}}
.hero-copy > *{opacity:0;animation:heroRise .9s cubic-bezier(.22,.61,.36,1) forwards;}
.hero-copy > *:nth-child(1){animation-delay:.05s;}
.hero-copy > *:nth-child(2){animation-delay:.14s;}
.hero-copy > *:nth-child(3){animation-delay:.23s;}
.hero-copy > *:nth-child(4){animation-delay:.32s;}
.hero-copy > *:nth-child(5){animation-delay:.41s;}
.hero-device{opacity:0;animation:heroRise 1.1s cubic-bezier(.22,.61,.36,1) .3s forwards;}

@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .hero-copy > *,.hero-device{opacity:1;animation:none;}
}

/* laptops + iPad landscape */
@media (max-width:1120px){
  .hero-grid{gap:44px;grid-template-columns:minmax(0,1fr) minmax(300px,400px);}
  section{padding:88px 0;}
}

/* iPad portrait + small laptops: single-column hero, 2-up grids */
@media (max-width:980px){
  .hero{padding-top:74px;}
  .hero-grid,.statement-grid,.showcase-grid{grid-template-columns:1fr;}
  .screens-row{grid-template-columns:1fr 1fr;}
  .hero-device{order:-1;}
  .hero-shot{width:min(72%,320px);}
  .hero-copy{text-align:center;}
  .hero-copy h1{margin-left:auto;margin-right:auto;}
  .lede{margin-left:auto;margin-right:auto;}
  .hero-actions,.trust-row{justify-content:center;}
  .statement-grid{gap:20px;}
  .flow-grid{grid-template-columns:1fr 1fr;}
  .screens-row{grid-template-columns:1fr 1fr;gap:18px;}
  .screen-card{height:clamp(500px,64vw,600px);}
  .privacy-grid{grid-template-columns:1fr 1fr;}
  .privacy-grid > article:nth-child(3){grid-column:1 / -1;}
}

@media (max-width:620px){
  nav.site{padding:14px 18px;}
  .wrap{padding:0 18px;}
  .brand img{height:27px;}
  .nav-store img{height:32px;}
  .hero{padding:46px 0 58px;min-height:auto;}
  .hero-grid{gap:34px;}
  .hero-copy h1{font-size:clamp(38px,11vw,64px);}
  .hero-shot{width:min(84%,300px);}
  .lede{font-size:17px;}
  .store-badge img{height:48px;}
  .btn{min-height:46px;padding:12px 18px;}
  .phone{max-width:338px;border-radius:48px;}
  .phone-screen{border-radius:37px;padding:72px 18px 20px;}
  .phone-top{margin-bottom:44px;}
  .ring-shell{width:206px;}
  .ring-center strong{font-size:56px;}
  .active-break h2{font-size:26px;}
  .flow-grid{grid-template-columns:1fr;}
  .flow-card{min-height:auto;}
  .screens-row{grid-template-columns:1fr;gap:14px;}
  .screen-card{height:auto;padding:24px 20px 10px;}
  .screen-card figcaption{min-height:0;}
  .screen-card img{flex:0 0 auto;width:min(70%,280px);height:auto;margin:16px auto 6px;}
  section{padding:78px 0;}
  .statement{padding:46px 0;}
  .feature-row{grid-template-columns:46px 1fr;padding:18px;}
  .feature-icon{width:46px;height:46px;border-radius:15px;}
  .footer-grid{display:block;}
  .footer-cols{margin-top:34px;gap:34px;}
}
