/* ==========================================================================
   Kogoto landing page — styles
   Light-first, mobile-first, dependency-free. One accent: Kogoto blue.
   ========================================================================== */

/* ------------------------------------------------------------ tokens ---- */
:root {
  --blue:        #0B0BC7;   /* official Kogoto brand blue */
  --blue-600:    #1616D8;   /* hover / lift */
  --blue-700:    #0A0A9E;   /* pressed / deep */
  --blue-tint:   #EEF0FF;   /* pale wash */
  --blue-tint-2: #E3E6FF;

  --ink:      #14162B;      /* headings */
  --ink-2:    #43485E;      /* body text */
  --ink-3:    #5B6072;      /* muted / captions (AA on paper and tint) */

  --paper:    #FFFFFF;
  --paper-2:  #F6F7FB;      /* alternate section */
  --line:     #E6E7F0;

  --radius:      20px;
  --radius-sm:   14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 60, .06), 0 2px 8px rgba(16, 18, 60, .05);
  --shadow-md: 0 8px 24px rgba(16, 18, 60, .08), 0 2px 8px rgba(16, 18, 60, .05);
  --shadow-lg: 0 24px 60px rgba(11, 11, 199, .14), 0 8px 24px rgba(16, 18, 60, .08);

  --container: 1120px;
  --pad-x: clamp(1.25rem, 5vw, 2rem);
  --section-y: clamp(4rem, 10vw, 7rem);

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------ reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
/* skip-link moves focus here; the viewport jump is the cue, no ring needed */
#main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------- primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: .95rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: #fff; background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); background: var(--blue-700); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9375rem; }

/* ----------------------------------------------------------- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;                 /* fallback for no color-mix */
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: #ffffff;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; }
.brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.site-nav {
  display: none;
  margin-left: auto;
  gap: 2rem;
}
.site-nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--blue); }
.site-header__cta { margin-left: auto; }

@media (min-width: 800px) {
  .site-nav { display: flex; }
  .site-header__cta { margin-left: 0; }
}

/* ------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: var(--section-y);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--blue-tint) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 15%, #F3F0FF 0%, transparent 50%),
    var(--paper);
}
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero__logo {
  height: auto;
  width: clamp(170px, 42vw, 220px);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero__lead {
  margin-top: 1.15rem;
  font-size: clamp(1.075rem, 1rem + .5vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34ch;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .hero__lead { max-width: 42ch; }
}

/* store buttons ------------------------------------------------------- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.9rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1.25rem;
  min-width: 190px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), opacity .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-btn:active { transform: translateY(0); }
.store-btn__glyph { flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn__text small { font-size: .72rem; opacity: .85; letter-spacing: .01em; }
.store-btn__text strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

.store-btn.is-coming-soon {
  background: var(--paper-2);
  color: var(--ink-3);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
.store-btn.is-coming-soon:hover { transform: none; box-shadow: none; color: var(--ink-3); }
.store-btn.is-coming-soon .store-btn__glyph { color: var(--ink-3); opacity: .7; }
.store-btn.is-coming-soon .store-btn__text small { color: var(--blue); opacity: 1; font-weight: 700; }

.store-buttons--lg { justify-content: center; }
.store-buttons--lg .store-btn { padding: .85rem 1.4rem; }

.store-note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--ink-3);
}
.store-note a { font-weight: 600; }

/* hero visual: nearby radar ---------------------------------------- */
.hero__visual { display: flex; justify-content: center; }
.radar {
  position: relative;
  width: min(78vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.radar__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1.5px solid var(--blue-tint-2);
  animation: radar-pulse 3.6s var(--ease) infinite;
}
.radar__ring--1 { width: 100%;  height: 100%; }
.radar__ring--2 { width: 68%;   height: 68%;  animation-delay: .5s; border-color: #D6D9FF; }
.radar__ring--3 { width: 38%;   height: 38%;  animation-delay: 1s;  border-color: #C7CBFF; }
@keyframes radar-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.015); }
}
.radar__core {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.radar__core img { width: 72px; height: 72px; }
.radar__pin {
  position: absolute;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  animation: pin-float 4s var(--ease) infinite;
}
.radar__pin i {
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue) 0%, #5a5af0 100%);
}
.radar__pin--a { top: 6%;  left: 22%; animation-delay: 0s; }
.radar__pin--b { top: 14%; right: 8%; animation-delay: .8s; }
.radar__pin--c { bottom: 12%; left: 8%; animation-delay: 1.6s; }
.radar__pin--d { bottom: 4%; right: 24%; animation-delay: 2.4s; }
@keyframes pin-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------------------------------------------------------- sections --- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section__head { max-width: 46ch; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section__title {
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem);
  font-weight: 800;
}
.section__lead {
  margin-top: .9rem;
  font-size: clamp(1.02rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-2);
}
.section__note {
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--ink-3);
}

/* steps --------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.9rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.step__title { font-size: 1.2rem; font-weight: 800; margin-bottom: .45rem; }
.step__text { font-size: .975rem; color: var(--ink-2); }

/* cards ------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  padding: 2rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 1.1rem;
}
.card__title { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.card__text { font-size: .99rem; color: var(--ink-2); }

/* mission --------------------------------------------------------- */
.mission {
  background:
    radial-gradient(120% 120% at 85% 0%, var(--blue-600) 0%, transparent 60%),
    var(--blue);
  color: #fff;
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.mission__title {
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.14;
  text-wrap: balance;
  max-width: 18ch;
}
.mission__title span {
  color: #c9c9ef;
  color: color-mix(in srgb, #fff 68%, var(--blue));
}
.mission__text {
  margin-top: 1.5rem;
  color: #dcdcf5;
  color: color-mix(in srgb, #fff 82%, var(--blue));
  font-size: clamp(1.02rem, 1rem + .35vw, 1.22rem);
  max-width: 42ch;
}

/* get the app --------------------------------------------------- */
.get-app { text-align: center; }
.get-app__inner { display: grid; justify-items: center; }
.get-app__mark { width: 64px; height: 64px; margin-bottom: 1.1rem; }
.get-app .section__lead { max-width: 42ch; }
.get-app .store-buttons { justify-content: center; }
.get-app .store-note { text-align: center; }

/* footer ------------------------------------------------------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: 2.5rem;
  font-size: .95rem;
}
.site-footer__inner {
  display: grid;
  gap: 2.25rem 1.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer__brand .brand__name { font-size: 1.1rem; }
.site-footer__tag { margin-top: .7rem; color: var(--ink-3); }
.site-footer__col h2 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .9rem;
}
.site-footer__col a {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
  padding: .3rem 0;
}
.site-footer__col a:hover { color: var(--blue); }
.site-footer__col a[aria-disabled="true"] {
  color: var(--ink-3);
  cursor: default;
  opacity: .75;
}
.site-footer__col a[aria-disabled="true"]::after {
  content: "Coming soon";
  display: inline-block;
  margin-left: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: .1rem .4rem;
  border-radius: 6px;
  vertical-align: 1px;
}
.site-footer__base {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .85rem;
}
.site-footer__fineprint { margin-top: .4rem; max-width: 60ch; }

/* toast ------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 1.5rem);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .8rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 150;
  max-width: calc(100vw - 2rem);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 404 ------------------------------------------------------------ */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.nf__inner { max-width: 30rem; }
.nf img { width: 72px; height: 72px; margin: 0 auto 1.5rem; }
.nf h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; }
.nf p { margin-top: .9rem; color: var(--ink-2); }
.nf .btn { margin-top: 1.8rem; }

/* reveal-on-scroll ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
