/* =========================================================
   KYKO Solutions: Apple-style site
   Principles: system type with size-specific tracking,
   translucent chrome, instant press feedback, springs for
   anything you can touch, reduced-motion/transparency support.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-dark-2: #a1a1a6;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --cyan: #00a7e1;
  --magenta: #e6007e;
  --yellow: #ffcc00;
  --brand: #e73f1a;
  --radius: 28px;
  --gutter: max(22px, env(safe-area-inset-left));
  --max: 1080px;
  --nav-h: 52px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.47 var(--font);
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid rgba(0, 113, 227, .6); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type scale: tracking tightens as size grows ---------- */
.display {
  font-size: clamp(3rem, 8.5vw, 6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.headline {
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lede, .sub {
  font-size: clamp(1.1875rem, 2.1vw, 1.5rem);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-2);
}
.eyebrow {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
  margin-bottom: 10px;
}
.eyebrow--grad {
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, #f5a800);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons: feedback on press, not release ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 980px; border: 0;
  background: var(--btn); color: #fff;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: scale(.96); transition-duration: 80ms; }
.btn--small { min-height: 30px; padding: 0 14px; font-size: .8125rem; }

.link-arrow { font-size: 1.0625rem; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; }
.link-arrow::after { content: "›"; font-size: 1.35em; line-height: 0; transform: translateY(-1px); transition: transform 200ms var(--ease-out); }
.link-arrow:hover::after { transform: translate(3px, -1px); }
.link-arrow:active { opacity: .6; }
.link-arrow--light { color: #2997ff; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 28px; }

/* ---------- Nav: translucent material, content scrolls under ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 300ms ease;
}
/* scroll edge effect instead of a permanent divider */
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__logo { color: var(--text); display: flex; align-items: center; min-height: 44px; }
.nav__logo img { width: 34px; height: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: var(--text); font-size: .8125rem; letter-spacing: -0.005em; opacity: .85; transition: opacity 150ms ease; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__links a:active { opacity: .5; }
.nav__toggle { display: none; }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
  background: #fbfbfd;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 28px; max-width: var(--max); margin: 0 auto; }
.menu a {
  color: var(--text); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.025em;
  padding: 10px 0; text-decoration: none;
  transform-origin: left top;
}
.menu a:active { opacity: .5; }

@media (max-width: 833px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 7px;
    margin-left: auto; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 300ms var(--ease-out); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark .sub { color: var(--text-dark-2); }
.section__head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 60px); padding: 0 var(--gutter); }
.section__head .sub { margin-top: 12px; max-width: 34ch; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(56px, 8vw, 100px); overflow: hidden; }
.hero .lede { max-width: 38ch; margin: 18px auto 0; }
.hero__art { max-width: 980px; margin: clamp(32px, 6vw, 64px) auto 0; }
.hero__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; border-radius: var(--radius); }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;            /* we own horizontal, the browser keeps vertical scroll */
  cursor: grab;
  outline: none;
  user-select: none; -webkit-user-select: none;
}
.carousel.is-dragging { cursor: grabbing; }
.carousel:focus-visible .carousel__track { outline: 3px solid rgba(0, 113, 227, .5); outline-offset: 6px; border-radius: var(--radius); }
.carousel__track {
  display: flex; gap: 20px;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  will-change: transform;
}
.card {
  flex: 0 0 min(78vw, 372px);
  aspect-ratio: 372 / 520;
  border-radius: var(--radius);
  padding: 32px 30px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card__kicker { font-size: .9375rem; font-weight: 600; opacity: .75; margin-bottom: 8px; }
.card__title { font-size: clamp(1.5rem, 2.4vw, 1.75rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.024em; }
.card__body { margin-top: 10px; font-size: 1rem; line-height: 1.42; opacity: .8; letter-spacing: -0.01em; }
.card__img { pointer-events: none; margin-top: auto; }
.card__img--photo { margin: auto -30px -32px; width: calc(100% + 60px); max-width: none; aspect-ratio: 1 / .8; object-fit: cover; }
.carousel.is-static { cursor: default; }
.carousel__controls.is-hidden { visibility: hidden; }
.card__img--product { width: 100%; max-height: 52%; object-fit: contain; mix-blend-mode: multiply; }
.card__img--screen { width: 100%; border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); margin-bottom: 6px; }
.card img, .card svg { -webkit-user-drag: none; }
.card--ink    { background: linear-gradient(160deg, #1d1d1f, #000); color: #f5f5f7; }
.card--cyan   { background: linear-gradient(160deg, #eef9fe, #d4f0fb); }
.card--light  { background: #fff; }
.card--violet { background: linear-gradient(160deg, #6e5cf0, #3b2fb6); color: #fff; }
.card--green  { background: linear-gradient(160deg, #34c46a, #1a8f4a); color: #fff; }

.carousel__controls {
  max-width: var(--max); margin: 28px auto 0; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.dots { display: flex; gap: 6px; background: rgba(0, 0, 0, .06); padding: 10px 14px; border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(0, 0, 0, .28); cursor: pointer; transition: width 400ms var(--ease-out), background-color 300ms ease; position: relative; }
.dot::before { content: ""; position: absolute; inset: -10px -4px; } /* bigger hit target */
.dot[aria-selected="true"] { width: 28px; background: var(--text); }
.arrows { display: flex; gap: 14px; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .07); display: grid; place-content: center;
  transition: background-color 200ms ease, transform 140ms var(--ease-out), opacity 200ms ease;
}
.arrow svg { width: 20px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: rgba(0, 0, 0, .11); }
.arrow:active { transform: scale(.92); }
.arrow:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Split feature ---------- */
.split {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.split__text .sub { margin-top: 18px; }
.split__art .shot { width: 100%; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
@media (max-width: 833px) { .split { grid-template-columns: 1fr; } }

.steps {
  max-width: var(--max); margin: clamp(48px, 7vw, 88px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step {
  background: #1c1c1e; border-radius: 22px; padding: 30px 28px 32px;
  transition: transform 400ms var(--ease-out), background-color 300ms ease;
}
.step:hover { background: #242426; }
.step__num {
  display: block; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.step:nth-child(2) .step__num { background-image: linear-gradient(90deg, var(--magenta), var(--yellow)); }
.step:nth-child(3) .step__num { background-image: linear-gradient(90deg, var(--yellow), #30d158); }
.step h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { color: var(--text-dark-2); font-size: 1rem; letter-spacing: -0.01em; }
@media (max-width: 833px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Product tiles ---------- */
.tiles {
  max-width: calc(var(--max) + 120px); margin: 0 auto; padding: 0 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.tile {
  border-radius: var(--radius); overflow: hidden; text-align: center;
  padding: 52px 28px 0; display: flex; flex-direction: column; align-items: center;
  min-height: 580px;
}
.tile--light { background: var(--bg-alt); }
.tile--dark { background: #000; color: #f5f5f7; }
.tile--dark .tile__sub { color: var(--text-dark-2); }
.tile__title { font-size: clamp(2rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; }
.tile__sub { margin-top: 6px; font-size: 1.1875rem; color: var(--text-2); letter-spacing: -0.012em; }
.tile__ctas { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.tile__img { margin-top: auto; width: min(100%, 520px); transition: transform 700ms var(--ease-out); }
.tile:hover .tile__img { transform: scale(1.025); }
.tile__img--product { mix-blend-mode: multiply; max-height: 380px; object-fit: contain; margin-bottom: 28px; }
.section--tight { padding-top: 0; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile--small { min-height: 460px; padding-top: 40px; }
.tile--small .tile__title { font-size: clamp(1.5rem, 2.4vw, 1.75rem); }
.tile--small .tile__sub { font-size: 1.0625rem; }
.tile--small .tile__ctas { margin-top: 8px; }
.tile--small .tile__img { max-height: 240px; }
@media (max-width: 833px) { .tiles--3 { grid-template-columns: 1fr; } .tile--small { min-height: 400px; } }
@media (max-width: 833px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 520px; } }

/* ---------- About ---------- */
.about { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.about .sub { margin-top: 20px; }
.about__img { margin-top: 48px; }
.about__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.about__note {
  display: inline-block; margin-top: 28px; padding: 10px 20px;
  background: #fff; border-radius: 99px; font-size: 1rem; font-weight: 500; color: var(--text);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dd { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }

.stat dt { font-size: 1rem; color: var(--text-2); font-weight: 500; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.contact__card {
  background: var(--bg-alt); border-radius: 22px; padding: 30px 28px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.contact__icon { width: 30px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.contact__card h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.contact__card p { color: var(--text-2); margin-bottom: 18px; }
.contact__card p a { font-weight: 500; }
.chip {
  margin-top: auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border-radius: 99px; border: 1px solid rgba(0, 0, 0, .14); background: #fff;
  font-size: .875rem; font-weight: 500; color: var(--text); cursor: pointer; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { text-decoration: none; border-color: rgba(0, 0, 0, .3); }
.chip:active { transform: scale(.95); }
.chip.is-done { background: #30d158; border-color: #30d158; color: #fff; }
@media (max-width: 833px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: .8125rem; letter-spacing: -0.005em; }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.footer__tag { font-weight: 600; color: var(--text); }
.footer__social { display: flex; gap: 6px; margin-left: auto; }
.footer__social a { width: 40px; height: 40px; display: grid; place-content: center; border-radius: 50%; transition: background-color 200ms ease, transform 140ms var(--ease-out); }
.footer__social a:hover { background: rgba(0, 0, 0, .06); }
.footer__social a:active { transform: scale(.9); }
.footer__social svg { width: 18px; fill: var(--text-2); }
.footer__legal { width: 100%; }
.footer__parent a { font-weight: 600; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Accessibility preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .tile:hover .tile__img, .link-arrow:hover::after { transform: none; }
  .dot { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fbfbfd; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #3a3a3c; --text-dark-2: #d1d1d6; }
  .nav { background: #fff; backdrop-filter: none; box-shadow: 0 1px 0 #000; }
  .chip, .arrow { border: 1px solid #000; }
}

/* =========================================================
   CMYK accents
   ========================================================= */
:root { --cmyk: linear-gradient(90deg, var(--cyan), var(--magenta) 50%, var(--yellow)); }
::selection { background: rgba(230, 0, 126, .18); }

/* thin ink strip across the very top, like a print registration bar */
body::before { content: ""; display: block; height: 3px; background: var(--cmyk); }

.ink {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 55%, #f5a800 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc { color: var(--cyan); }
.pm { color: var(--magenta); }
.py { color: var(--yellow); }

.ink-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.ink-dot--c { background: var(--cyan); }
.ink-dot--m { background: var(--magenta); }
.ink-dot--y { background: var(--yellow); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

.dot[aria-selected="true"] { background: var(--cmyk); }

.stat dd { -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-cm { background-image: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.g-my { background-image: linear-gradient(90deg, var(--cyan), #5e5ce6); }
.g-yc { background-image: linear-gradient(90deg, #f5a800, var(--magenta)); }

.contact__badge {
  display: grid; place-content: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
}
.contact__badge .contact__icon { margin: 0; width: 24px; stroke: #fff; }
.contact__badge--c { background: var(--cyan); }
.contact__badge--m { background: var(--magenta); }
.contact__badge--y { background: var(--yellow); }
.contact__badge--y .contact__icon { stroke: var(--text); }
.contact__card:nth-child(1) .chip:hover { border-color: var(--cyan); }
.contact__card:nth-child(2) .chip:hover { border-color: var(--magenta); }
.contact__card:nth-child(3) .chip:hover { border-color: #f5a800; }

/* footer gets the ink line instead of a grey rule */
.footer__inner { border-top: 0; position: relative; }
.footer__inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 2px; border-radius: 2px; background: var(--cmyk); opacity: .7; }

.about__note { box-shadow: inset 0 0 0 1px rgba(230, 0, 126, .25); }

@media (prefers-contrast: more) {
  .py { color: #b38f00; }
  .ink-dot--y, .contact__badge--y { background: #e6b800; }
}
