/* Salonu Yönet, salonuyonet.com
   One stylesheet for every page. Source of site/assets/css/main.css (built by web/build.py).

   Rules this file follows
   unslop by Damir Sokolovsky (@heydamir, CC BY 4.0) and Apple's design talks (WWDC):
   - one family, Montserrat (the brand font), weights 400 and 500 only
   - three text roles (primary, secondary, muted), one blue accent used rarely, hairlines at 8%
   - every space on a 4px grid, written in rem so it scales with the reader's text size
   - radius by size: controls 10, cards 16, panels 20, nested radius = outer minus padding
   - tracking by size: 0 under 40px, -0.02em from 40px, -0.03em from 56px, +0.01em on small meta
   - one easing curve (and its mirror for exits): feedback 120 to 160ms, menus 200ms,
     entrances 480ms with a 12px rise; only transform, opacity and clip-path animate
   - translucent chrome with a scroll edge instead of a divider; solid when the reader asks
     for less transparency or more contrast */

/* ---------- Font ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-tr.woff2") format("woff2-variations"),
       url("/assets/fonts/montserrat-tr.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0106-0107, U+010C-010D, U+0118-0119, U+011E-011F, U+0130, U+0141-0144, U+0150-0151, U+0158-0161, U+0170-0171, U+0178-017E, U+20BA;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 112.8%;
  ascent-override: 85.8%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;           /* cards on the gray background */
  --raised: #f5f5f7;            /* inputs and quiet fills on white */

  /* text roles */
  --text: #1d1d1f;
  --text-2: #6e6e73;            /* secondary, body copy that supports a heading */
  --text-3: #86868b;            /* muted, icons and marks only */
  --hairline: rgba(29, 29, 31, 0.08);
  --hairline-strong: rgba(29, 29, 31, 0.16);

  /* accent: the brand blue, darkened to 4.7:1 so it works as text and under white text */
  --accent: #0062f5;
  --accent-hover: #0052d1;
  --accent-soft: rgba(0, 98, 245, 0.1);
  --danger: #d70015;

  /* spacing, 4px grid */
  --s1: 0.25rem;  --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;   --s5: 1.25rem; --s6: 1.5rem;
  --s8: 2rem;     --s10: 2.5rem; --s12: 3rem;   --s16: 4rem;  --s20: 5rem;   --s24: 6rem; --s32: 8rem;

  --gutter: var(--s5);
  --max: 72.5rem;
  --section: var(--s20);
  --head-gap: var(--s12);
  --nav-h: 3.5rem;

  /* radius by size */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;

  /* type scale */
  --fs-xs: 0.8125rem;                                   /* 13 meta, captions */
  --fs-sm: 0.9375rem;                                   /* 15 nav, labels */
  --fs-md: 1.0625rem;                                   /* 17 body, buttons */
  --fs-lg: 1.25rem;                                     /* 20 card titles, lead */
  --fs-xl: 1.5rem;                                      /* 24 small headings */
  --fs-2xl: 2rem;                                       /* 32 step titles */
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);        /* 32 to 52 */
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);       /* 40 to 72 */
  --fs-num: clamp(3rem, 2.2rem + 3.2vw, 4.5rem);        /* 48 to 72 */

  /* motion: one curve, its mirror for exits */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --t-press: 120ms;
  --t-hover: 160ms;
  --t-menu: 200ms;
  --t-enter: 480ms;
  --rise: 12px;
}
@media (min-width: 48rem) {
  :root { --gutter: var(--s8); --section: var(--s24); --head-gap: var(--s16); }
}
@media (min-width: 64rem) {
  :root { --section: var(--s32); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* a jump to a section lands its top edge right under the bar, nothing of the section above shows */
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button, summary, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
main { flex: 1 0 auto; }
::selection { background: rgba(0, 98, 245, 0.18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
/* sections take focus after a menu jump so the keyboard continues from there, without a ring */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute; left: var(--s3); top: -6rem; z-index: 100;
  padding: var(--s2) var(--s4); border-radius: var(--r-sm); background: var(--text); color: #fff;
  font-size: var(--fs-sm); font-weight: 500;
}
.skip:focus { top: var(--s3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.5; }

/* ---------- Layout and type ---------- */
.container { width: min(100% - 2 * var(--gutter) - env(safe-area-inset-left) - env(safe-area-inset-right), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: var(--head-gap); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--s5); }
.h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-xl); line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3rem; padding: 0 var(--s5); border: 0; border-radius: var(--r-sm);
  font-size: var(--fs-md); font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform var(--t-press) ease-out, background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--dark { background: var(--text); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn--sm { position: relative; min-height: 2.25rem; padding: 0 var(--s4); font-size: var(--fs-sm); border-radius: 8px; }
.btn--sm::after { content: ""; position: absolute; inset: -4px 0; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.link-more {
  position: relative; display: inline-flex; align-items: center; gap: var(--s1);
  color: var(--accent); font-weight: 500;
  transition: opacity var(--t-press) ease-out;
}
.link-more::after { content: ""; position: absolute; inset: -10px -4px; }
.link-more .icon { transition: transform var(--t-hover) var(--ease); }
.link-more:active { opacity: 0.6; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
}
/* The bar's material lives on a layer behind it. A blur on the bar itself would trap the
   fixed phone menu inside the 56px bar (a blurred element contains fixed children) */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* scroll edge: a soft fade where content slides under the bar, only once something does */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--s3);
  background: linear-gradient(rgba(29, 29, 31, 0.06), rgba(29, 29, 31, 0));
  opacity: 0; pointer-events: none; transition: opacity var(--t-menu) var(--ease);
}
.nav.is-scrolled::after { opacity: 1; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.75rem; flex-shrink: 0; white-space: nowrap; font-weight: 500; font-size: var(--fs-md); }
.brand .icon { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: var(--s8); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.01em; }
.nav__links a { color: rgba(29, 29, 31, 0.72); transition: color var(--t-hover) var(--ease); }
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a:active { color: var(--text-2); }
.nav__actions { display: flex; align-items: center; gap: var(--s1); }
.nav__toggle {
  display: none; position: relative; width: 2.75rem; height: 2.75rem; margin-right: calc(-1 * var(--s3));
  border: 0; background: none; cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: transform var(--t-menu) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* The menu drops from the bar it belongs to and goes back the same way */
.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  padding: var(--s6) calc(var(--gutter) + env(safe-area-inset-right)) calc(var(--s10) + env(safe-area-inset-bottom)) calc(var(--gutter) + env(safe-area-inset-left));
  background: rgba(251, 251, 253, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transform-origin: top right;
  opacity: 0; visibility: hidden; transform: translateY(calc(-1 * var(--s2)));
  transition: opacity var(--t-menu) var(--ease-in), transform var(--t-menu) var(--ease-in), visibility 0s linear var(--t-menu);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease), visibility 0s;
}
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: center; min-height: 3.25rem;
  font-size: 1.75rem; font-weight: 500;
  opacity: 0; transform: translateY(calc(-1 * var(--s2)));
  transition: opacity var(--t-menu) var(--ease), transform var(--t-enter) var(--ease), color var(--t-press) ease-out;
}
.menu__links a:active { color: var(--text-2); }
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 40ms); }
.menu__cta { margin-top: var(--s8); display: grid; gap: var(--s3); }

.topbar { padding-block: var(--s5); }
.topbar .container { display: flex; justify-content: center; }

/* ---------- Hero ----------
   The phone rises from the bottom edge: its lower fifth runs on behind the next section, so
   the edge is a deliberate line. No drop shadow, a shadow cut by an edge turns into a smudge */
.hero { background: var(--bg-alt); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s16);
  /* fills the screen minus a peek of what follows, between 36rem and 52rem */
  min-height: clamp(36rem, 100svh - var(--nav-h) - 8rem, 52rem);
}
.hero__text { align-self: center; padding-block: var(--s16); }
.hero__lead { margin-top: var(--s6); max-width: 36rem; }
.hero__actions { margin-top: var(--s10); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.hero__visual { align-self: end; display: flex; justify-content: center; padding-top: var(--s16); }
.hero__phone { width: min(100%, 22rem); margin-bottom: -9rem; }
.hero__phone img { width: 100%; }
.h1 [data-enter] { display: block; }

/* A section whose picture stands on its bottom edge clips it there */
.section--edge { overflow: clip; }

/* ---------- Senin salonun, senin kuralların ---------- */
.reveal {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: var(--s10);
}
.reveal__title { position: relative; z-index: 2; font-size: var(--fs-h2); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.reveal__title--a { justify-self: end; text-align: right; }
.reveal__title--b { justify-self: start; }
.reveal__phone { position: relative; z-index: 1; width: clamp(13.75rem, 21vw, 18.75rem); }
.reveal__phone img { width: 100%; transform-origin: 50% 50%; }
html.js-ready .reveal__phone img { clip-path: circle(0px at 50% 50%); transform: scale(0.94); will-change: clip-path, transform; }
html.js-ready .reveal__title { will-change: transform; }
.reveal__checks {
  margin: var(--s16) auto 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s8);
}
.reveal__checks li { display: flex; align-items: center; gap: 10px; }
.reveal__checks .icon { color: var(--text-3); }

.cta-row {
  margin-top: var(--s24);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s6) var(--s12);
  padding: var(--s10); border-radius: var(--r-lg); background: var(--bg-alt);
}
.cta-row h3 { font-size: var(--fs-2xl); line-height: 1.2; }
.cta-row p { margin-top: var(--s3); color: var(--text-2); max-width: 30rem; }
.cta-row__side { display: grid; justify-items: end; gap: var(--s3); text-align: right; }
.cta-row__side small { font-size: var(--fs-xs); letter-spacing: 0.01em; color: var(--text-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: var(--s2) var(--s8) 0; border-left: 1px solid var(--hairline-strong); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num { display: block; font-size: var(--fs-num); font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.stat__unit { font-size: 0.4em; letter-spacing: 0; color: var(--text-2); margin-left: 0.2em; }
.stat__label { margin-top: var(--s5); font-size: var(--fs-md); }
.stat__text { margin-top: var(--s2); color: var(--text-2); max-width: 20rem; }

/* ---------- Sticky phone story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s24); }
.story__visual {
  --phone-h: min(40rem, calc(100svh - var(--nav-h) - 6rem));
  position: sticky; top: calc(var(--nav-h) + (100svh - var(--nav-h) - var(--phone-h)) / 2);
  height: var(--phone-h); align-self: start;
}
.phone-stack { position: relative; height: 100%; aspect-ratio: 942 / 1920; margin-inline: auto; }
.phone-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: translateY(var(--rise)) scale(0.98);
  transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease);
}
.phone-stack img.is-active { opacity: 1; transform: none; }
.story__steps { list-style: none; }
.story__step { min-height: 76svh; display: flex; flex-direction: column; justify-content: center; }
/* the step being shown leads: its title is full strength and its number turns blue. Text stays
   readable on every step (dimming whole steps made them fail contrast) */
html.js-ready .story__step h3 { opacity: 0.5; transition: opacity var(--t-enter) var(--ease); }
html.js-ready .story__step.is-active h3 { opacity: 1; }
.story__step .step-num { transition: color var(--t-enter) var(--ease); }
html.js-ready .story__step.is-active .step-num { color: var(--accent); }
.story__step h3 { font-size: var(--fs-2xl); line-height: 1.2; }
.story__step p { margin-top: var(--s3); font-size: var(--fs-lg); line-height: 1.5; color: var(--text-2); max-width: 26rem; }
.step-num { display: block; margin-bottom: var(--s3); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.story__img { display: none; }

/* ---------- Flow cards (defteri kapat) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); list-style: none; }
.flow__card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.flow__media { height: 18rem; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: var(--s6) var(--s6) 0; }
.flow__media img { max-height: 100%; width: auto; object-fit: contain; }
.flow__media--screen { align-items: flex-start; padding-top: var(--s8); }
.flow__media--screen img { width: 62%; max-height: none; }
.flow__body { padding: var(--s6) var(--s8) var(--s8); }
.flow__body .step-num { margin-bottom: var(--s2); }
.flow__body h3 { font-size: var(--fs-lg); }
.flow__body p { margin-top: var(--s2); color: var(--text-2); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: var(--s24); }
.split .lead, .contact .lead { margin-top: var(--s5); }
.split__more { margin-top: var(--s8); }
.rows { margin-top: var(--s12); display: grid; gap: var(--s8); list-style: none; }
.row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.row .icon { margin-top: 5px; color: var(--text-3); }
.row h3 { font-size: var(--fs-md); line-height: 1.55; }
.row p { margin-top: var(--s1); color: var(--text-2); }

/* ---------- Tabs and phone gallery ---------- */
.tabs__intro { display: grid; justify-items: center; gap: var(--s10); text-align: center; }
.segmented { position: relative; display: inline-flex; max-width: 100%; padding: var(--s1); border-radius: var(--r-sm); background: rgba(29, 29, 31, 0.06); }
.segmented__btn {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  min-height: 2.25rem; padding: 0 var(--s5); border-radius: var(--r-xs);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); white-space: nowrap;
  transition: color var(--t-hover) var(--ease);
}
.segmented__btn::after { content: ""; position: absolute; inset: -4px 0; }
.segmented__btn:active { color: var(--text); }
.segmented__btn[aria-selected="true"] { color: var(--text); }
.segmented__thumb {
  position: absolute; top: var(--s1); bottom: var(--s1); left: 0; width: 0; border-radius: var(--r-xs); background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 320ms var(--ease), width 320ms var(--ease);
}
html:not(.js-ready) .segmented__thumb { display: none; }
html:not(.js-ready) .segmented__btn[aria-selected="true"] { background: #fff; }
/* clip sideways only, so the rubber band at the ends never widens the page */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--s12); overflow-x: clip; }
.panel { grid-area: 1 / 1; min-width: 0; transition: opacity var(--t-enter) var(--ease), visibility 0s; }
.panel:not(.is-active) { opacity: 0; visibility: hidden; transition: opacity var(--t-menu) var(--ease-in), visibility 0s linear var(--t-menu); }
.gallery__track {
  --item: clamp(13.75rem, 24vw, 18rem);
  display: flex; gap: var(--s6);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: var(--s2) calc(50% - var(--item) / 2) var(--s4);
  position: relative; user-select: none; -webkit-user-select: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-moving { scroll-snap-type: none; }
@media (pointer: fine) {
  .gallery__track { cursor: grab; }
  .gallery__track.is-dragging { cursor: grabbing; }
}
.gallery__item {
  flex: 0 0 var(--item); scroll-snap-align: center;
  transform: scale(calc(1 - var(--d, 0) * 0.1)); opacity: calc(1 - var(--d, 0) * 0.6);
}
.gallery__item img { width: 100%; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.gallery__controls { margin-top: var(--s5); display: flex; align-items: center; justify-content: center; gap: var(--s5); }
.round-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(29, 29, 31, 0.06); color: var(--text);
  transition: background-color var(--t-hover) var(--ease), transform var(--t-press) ease-out, opacity var(--t-hover) var(--ease);
}
.round-btn:active { transform: scale(0.94); }
.round-btn { position: relative; }
.round-btn::after { content: ""; position: absolute; inset: -2px; }
.round-btn[disabled] { opacity: 0.35; cursor: default; }
.dots { display: flex; }
.dots button { position: relative; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::after { content: ""; position: absolute; inset: -10px 0; }
.dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 4px; background: #c7c7cc;
  transition: width var(--t-enter) var(--ease), background-color var(--t-hover) var(--ease);
}
.dots button[aria-current="true"] { width: 2.25rem; }
.dots button[aria-current="true"]::before { width: 20px; background: var(--text); }

/* ---------- Dark CTA panel ---------- */
.cta-dark {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s8) var(--s12);
  padding: var(--s16); border-radius: var(--r-lg); background: var(--text); color: #fff;
}
.cta-dark h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 34rem; }
.cta-dark .btn--light { background: #fff; color: var(--text); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12) var(--s10); list-style: none; }
.feature { padding-top: var(--s6); border-top: 1px solid var(--hairline-strong); }
.feature__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); }
.feature__title .icon { color: var(--text-3); }
.feature p { margin-top: var(--s2); color: var(--text-2); }

/* ---------- Reports ---------- */
.reports { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s16); }
.reports__img { width: clamp(15rem, 21vw, 18.75rem); align-self: end; margin-bottom: calc(-1 * var(--section)); }
/* the report phone rises from the bottom edge like the hero phone, its lower part runs on below */
.reports__img img { width: 100%; transform: translateY(18%); }
.kicker { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.reports__block h3 { margin-top: var(--s3); font-size: var(--fs-2xl); line-height: 1.2; }
.reports__block p { margin-top: var(--s4); color: var(--text-2); }
.checklist { margin-top: var(--s5); display: grid; gap: var(--s3); list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist .icon { color: var(--text-3); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s10); list-style: none; }
.timeline li { position: relative; }
.timeline__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline-strong); font-size: var(--fs-sm); font-weight: 500;
}
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; top: 1.25rem; left: 3rem; right: calc(-1 * var(--s8)); height: 1px; background: var(--hairline-strong);
}
.timeline h3 { margin-top: var(--s5); font-size: var(--fs-lg); }
.timeline p { margin-top: var(--s2); color: var(--text-2); max-width: 20rem; }

/* ---------- Map ---------- */
.map img { width: 100%; }

/* ---------- Reviews: one quote leads, three follow ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); list-style: none; }
.reviews > li:first-child { grid-column: 1 / -1; }
.review {
  height: 100%; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s8);
  padding: var(--s8); border-radius: var(--r-md); background: var(--bg-alt);
}
.review blockquote { margin: 0; }
.reviews > li:first-child .review { padding: var(--s12); }
.reviews > li:first-child blockquote { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.4; max-width: 46rem; }
.review figcaption a { display: inline-flex; align-items: center; gap: var(--s3); }
.review figcaption a:active { opacity: 0.6; }
.review figcaption img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }
.review figcaption strong { display: block; font-weight: 500; font-size: var(--fs-sm); }
.review figcaption span span { display: block; font-size: var(--fs-xs); letter-spacing: 0.01em; color: var(--text-2); }

/* ---------- Pricing (one package: setup, then monthly) ---------- */
.package {
  max-width: 58rem; margin-inline: auto; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline);
}
.package__parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package__part { padding: var(--s10); }
.package__part + .package__part { border-left: 1px solid var(--hairline); }
.package__name { font-size: var(--fs-xl); }
.package__for { margin-top: var(--s1); color: var(--text-2); }
.package__price { margin-top: var(--s8); display: flex; align-items: baseline; gap: var(--s2); }
.package__price strong { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.package__price span { color: var(--text-2); }
.package__list { margin-top: var(--s8); display: grid; gap: var(--s3); list-style: none; }
.package__list li { display: flex; align-items: flex-start; gap: 10px; }
.package__list .icon { margin-top: 3px; color: var(--text-3); }
.package__cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4) var(--s8);
  padding: var(--s6) var(--s10); border-top: 1px solid var(--hairline);
}
.package__cta p { color: var(--text-2); }

/* ---------- FAQ (centered column) ---------- */
.faq { max-width: 47.5rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline-strong); }
.faq details:first-child { border-top: 1px solid var(--hairline-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s6);
  min-height: 4rem; padding: var(--s4) 0; cursor: pointer; list-style: none;
  font-weight: 500; line-height: 1.45;
  transition: color var(--t-press) ease-out;
}
.faq summary:active { color: var(--text-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-2); transition: transform var(--t-enter) var(--ease); }
.faq details[open]:not(.is-closing) summary .icon { transform: rotate(45deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 var(--s12) var(--s6) 0; color: var(--text-2); }

/* ---------- Own app ---------- */
.platforms { margin-top: var(--s8); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s4) var(--s8); list-style: none; color: var(--text-2); font-weight: 500; }
.platforms li { display: flex; align-items: center; gap: 10px; }
.platforms .icon { color: var(--text); }

/* ---------- Contact and form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s24); align-items: start; }
.contact__list { margin-top: var(--s10); display: grid; gap: var(--s4); list-style: none; }
.contact__list a, .contact__list li > span { display: inline-flex; align-items: center; gap: 10px; }
.contact__list a { transition: color var(--t-hover) var(--ease); }
.contact__list a:active { opacity: 0.6; }
.contact__list .icon { color: var(--text-3); }
.contact__list small { font-size: var(--fs-xs); letter-spacing: 0.01em; color: var(--text-2); }

.chat-card { padding: var(--s10); display: grid; gap: var(--s3); border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.chat-card__qr { display: none; }
.qr { display: block; width: 10.5rem; height: 10.5rem; margin-inline: auto; color: var(--text); }
.chat-card__qr p { margin: var(--s4) auto var(--s5); max-width: 15rem; text-align: center; font-size: var(--fs-xs); letter-spacing: 0.01em; color: var(--text-2); }
/* the QR only helps on a computer, a phone just taps the button */
@media (hover: hover) and (pointer: fine) and (min-width: 52.5rem) { .chat-card__qr { display: block; } }
.stack { margin-top: var(--s8); display: grid; gap: var(--s3); text-align: center; }
.stack__note { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: var(--fs-xs); letter-spacing: 0.01em; line-height: 1.5; padding-block: var(--s16) var(--s8); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s8); }
.footer__about p { margin-top: var(--s3); max-width: 18rem; }
.footer .brand { color: var(--text); letter-spacing: 0; }
.footer h2 { margin-bottom: var(--s3); font-size: var(--fs-xs); font-weight: 500; color: var(--text); }
.footer ul { display: grid; gap: var(--s2); list-style: none; }
.footer a, .linklike { transition: color var(--t-hover) var(--ease); }
.linklike { padding: 0; border: 0; background: none; cursor: pointer; font-size: inherit; letter-spacing: inherit; text-align: left; color: inherit; }
.footer__bottom { margin-top: var(--s12); padding-top: var(--s5); border-top: 1px solid var(--hairline-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); }
.footer--mini { padding-block: var(--s8); text-align: center; }
.footer--mini .footer__bottom { margin: 0; padding: 0; border: 0; justify-content: center; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: calc(var(--s5) + env(safe-area-inset-right)); bottom: calc(var(--s5) + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--text); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform-origin: 100% 100%;
  opacity: 0; transform: translateY(var(--rise)) scale(0.92); pointer-events: none;
  transition: opacity var(--t-menu) var(--ease-in), transform var(--t-menu) var(--ease-in);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease); }
.wa-float:active { transform: scale(0.94); transition-duration: var(--t-press); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Simple pages (form, app, pehlivan, 404) ---------- */
.page-form { background: var(--bg-alt); }
.page-form .footer--mini { background: transparent; }
.page-center { min-height: calc(100svh - 10rem); display: grid; place-items: center; padding-block: var(--s6) var(--s16); }
.card-narrow { width: min(100% - 2 * var(--gutter), 32.5rem); margin-inline: auto; }
.quiet { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.app-head { text-align: center; }
.app-head .app-icon { width: 5.5rem; height: 5.5rem; margin: 0 auto var(--s6); border-radius: 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06); }
.app-head h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.app-head .quiet + h1 { margin-top: var(--s3); }
.app-head p { margin-top: var(--s3); color: var(--text-2); font-size: var(--fs-lg); line-height: 1.5; }
.app-head .quiet { margin-top: 0; font-size: var(--fs-sm); }
.app-head .app-head__ask { margin-top: 0; font-size: var(--fs-md); }
.app-head__ask strong { font-weight: 500; color: var(--text); }
.app-head .app-head__link { margin-top: var(--s6); }
.store-buttons { margin-top: var(--s8); display: grid; gap: var(--s3); }
.store-btn { min-height: 3.25rem; }
.store-btn .icon { width: 20px; height: 20px; }
.store-btn.is-primary-os { order: -1; }
.notice { margin-top: var(--s6); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text); font-size: var(--fs-sm); text-align: center; }
.divider { height: 1px; background: var(--hairline-strong); margin-block: var(--s8); }
.tags { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); list-style: none; color: var(--text-2); font-size: var(--fs-sm); }
.tags li { display: inline-flex; align-items: center; gap: var(--s2); }
.tags .icon { color: var(--text-3); }
.credit { margin-top: var(--s8); text-align: center; font-size: var(--fs-xs); letter-spacing: 0.01em; color: var(--text-2); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal prose ---------- */
.prose { max-width: 45rem; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.01em; }
.prose .meta { margin-top: var(--s3); color: var(--text-2); }
.prose h2 { margin: var(--s12) 0 var(--s3); font-size: var(--fs-xl); line-height: 1.3; }
.prose p { margin-top: var(--s3); }
.prose ul, .prose ol { margin-top: var(--s3); padding-left: var(--s5); }
.prose li { margin-top: var(--s2); }
.prose li::marker { color: var(--text-3); }
.prose strong { font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Touch screens: small text links get finger sized rows ---------- */
@media (pointer: coarse) {
  .footer ul { gap: 0; }
  .footer ul a, .footer ul .linklike, .footer--mini a, .credit a { display: inline-block; padding-block: var(--s2); }
}

/* ---------- Hover, only for a real pointer (a tap on a phone never leaves a stuck hover) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--dark:hover { background: #000; }
  .btn--secondary:hover { background: var(--bg-alt); }
  .link-more:hover .icon { transform: translateX(2px); }
  .nav__links a:hover { color: var(--text); }
  .round-btn:hover { background: rgba(29, 29, 31, 0.1); }
  .cta-dark .btn--light:hover { background: #e8e8ed; }
  .contact__list a:hover { color: var(--accent); }
  .footer a:hover, .linklike:hover { color: var(--text); }
  .wa-float:hover { background: #000; }
  .credit a:hover { color: var(--text); }
}

/* ---------- Motion ---------- */
@keyframes enter { from { opacity: 0; transform: translate3d(0, var(--rise), 0); } to { opacity: 1; transform: none; } }

/* One entrance on load for the first screen, pure CSS so it paints at once */
[data-enter] { animation: enter var(--t-enter) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 40ms); }

/* Below the fold, each block fades and rises once as it arrives. Hidden only after the
   script is running, so nothing stays invisible if it fails */
html.js-ready [data-reveal] {
  opacity: 0; transform: translate3d(0, var(--rise), 0);
  transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms);
}
html.js-ready [data-reveal="fade"] { transform: none; }
html.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-enter] { animation: none; }
  html.js-ready [data-reveal] { transform: none; transition: opacity 200ms ease; }
  html.js-ready .reveal__phone img { clip-path: none; transform: none; }
  html.js-ready .reveal__title { transform: none !important; }
  .phone-stack img, .gallery__item, .menu, .menu__links a, .panel, .wa-float { transform: none !important; transition: opacity 200ms ease !important; }
  .btn:active, .round-btn:active, .wa-float:active { transform: none; }
}

/* Less transparency: the chrome turns solid */
@media (prefers-reduced-transparency: reduce) {
  .nav::before, .menu { background: #fbfbfd; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* More contrast: solid surfaces with a defined edge */
@media (prefers-contrast: more) {
  :root { --text-2: #424245; --text-3: #6e6e73; --hairline: rgba(0, 0, 0, 0.32); --hairline-strong: rgba(0, 0, 0, 0.5); }
  .nav::before, .menu { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--text); }
  .package, .chat-card, .review, .flow__card, .btn--secondary { box-shadow: inset 0 0 0 1px var(--text); }
}

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reports { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reports__block { grid-column: 1; }
  .reports__img { grid-column: 2; grid-row: 1 / span 2; justify-self: center; }
  .story, .split, .contact { gap: var(--s16); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews > li:last-child { grid-column: 1 / -1; }
}

@media (max-width: 53.75rem) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero__text { padding-block: var(--s12); }
  .h1 { letter-spacing: -0.02em; }
  /* the phone shows its top and runs on behind the next section, so the page invites a scroll */
  .hero__visual { padding-top: 0; max-height: 26rem; overflow: hidden; align-items: flex-start; }
  .hero__phone { width: min(78%, 18.75rem); margin-bottom: 0; }
  .reveal { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--s8); }
  .reveal__title--a, .reveal__title--b { justify-self: center; text-align: center; }
  .reveal__phone { width: min(64%, 16.25rem); }
  .cta-row { grid-template-columns: minmax(0, 1fr); margin-top: var(--s16); padding: var(--s6); }
  .cta-row h3 { font-size: var(--fs-xl); }
  .cta-row__side { justify-items: start; text-align: left; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: var(--s10); }
  .stat, .stat:first-child { padding: var(--s8) 0 0; border-left: 0; border-top: 1px solid var(--hairline-strong); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__visual { display: none; }
  html.js-ready .story__step h3 { opacity: 1; }
  html.js-ready .story__step.is-active .step-num { color: var(--text-2); }
  .story__step { min-height: 0; padding-bottom: var(--s20); }
  .story__step:last-child { padding-bottom: 0; }
  .story__step h3 { font-size: var(--fs-xl); }
  .story__img { display: block; width: min(64%, 16.25rem); margin: 0 auto var(--s8); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .split__media { order: 2; }
  .cta-dark { grid-template-columns: minmax(0, 1fr); padding: var(--s8); }
  .reports { grid-template-columns: minmax(0, 1fr); }
  .reports__block, .reports__img { grid-column: 1; }
  .reports__img { grid-row: auto; order: 3; width: min(64%, 16.25rem); justify-self: center; }
  .reports__block h3 { font-size: var(--fs-xl); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .timeline li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--s5); }
  .timeline li > :not(.timeline__dot) { grid-column: 2; }
  .timeline h3 { margin-top: var(--s2); }
  .timeline li:not(:last-child)::before { top: 3rem; bottom: calc(-1 * var(--s6)); left: 1.25rem; right: auto; width: 1px; height: auto; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .reviews > li:first-child .review { padding: var(--s8); }
  .reviews > li:first-child blockquote { font-size: var(--fs-lg); }
  .package__parts { grid-template-columns: minmax(0, 1fr); }
  .package__part { padding: var(--s8); }
  .package__part + .package__part { border-left: 0; border-top: 1px solid var(--hairline); }
  .package__cta { flex-direction: column; align-items: stretch; padding: var(--s6) var(--s8) var(--s8); text-align: center; }
  .chat-card { padding: var(--s6); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 35rem) {
  :root { --fs-md: 1rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta-row__side .btn, .cta-dark .btn { width: 100%; }
  .reveal__checks { display: grid; justify-content: center; text-align: left; gap: var(--s3); }
  .nav__inner { gap: var(--s4); }
  .segmented__for { display: none; }
  .cta-dark h2 { font-size: var(--fs-xl); line-height: 1.25; letter-spacing: 0; }
  .footer__top { grid-template-areas: "about about" "product legal" "contact contact"; row-gap: var(--s8); }
  .footer__about { grid-area: about; }
  .footer__top > :nth-child(2) { grid-area: product; }
  .footer__top > :nth-child(3) { grid-area: contact; }
  .footer__top > :nth-child(4) { grid-area: legal; }
  .faq__answer p { padding-right: var(--s2); }
  .segmented__btn { padding-inline: var(--s3); }
}

/* Very narrow phones (320 to 352 wide): the hero button sits right under the bar, so the bar
   keeps the logo and the menu only, and the headline steps down a size so each line fits */
@media (max-width: 25rem) {
  .nav__actions .btn--sm { padding-inline: var(--s3); }
}
@media (max-width: 22rem) {
  .nav__actions .btn--sm { display: none; }
  .h1 { font-size: 2.125rem; }
  .h2, .reveal__title { font-size: 1.75rem; }
}
/* Phones: a slightly smaller WhatsApp button that sits closer to the corner, so it covers less text */
@media (max-width: 35rem) {
  .wa-float { width: 3rem; height: 3rem; right: calc(var(--s3) + env(safe-area-inset-right)); bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
  .wa-float .icon { width: 24px; height: 24px; }
}
/* Phones held sideways: a shorter hero so the headline, text and button fit the short screen */
@media (max-height: 30rem) and (orientation: landscape) and (max-width: 64rem) {
  .h1 { font-size: 2.5rem; }
  .hero__text { padding-block: var(--s8); }
  .hero__lead { margin-top: var(--s4); }
  .hero__actions { margin-top: var(--s6); }
}
