/* ==========================================================================
   Scandio landing page — scandio.app
   Static, no cookies, no analytics, no third-party requests.
   ========================================================================== */

/* --- Inter, self-hosted (latin + latin-ext) ------------------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --blue: #2F6FED;
  --blue-dark: #1C4EBE;
  --blue-soft: #EDF3FE;
  --ink: #16223A;
  --ink-2: #5B6478;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --line: #E3E7EF;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(22, 34, 58, .05), 0 6px 16px rgba(22, 34, 58, .05);
  --shadow-md: 0 2px 4px rgba(22, 34, 58, .06), 0 18px 40px rgba(22, 34, 58, .10);
  --container: 1160px;
  --header-h: 72px;
}

/* --- Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section[id],
#top { scroll-margin-top: calc(var(--header-h) + 20px); }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.section__title {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
}
.section__lead {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 111, 237, .28);
}
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.store-badge {
  display: inline-block;
  height: 52px;
  transition: transform .18s ease, filter .18s ease;
}
.store-badge img { height: 100%; width: auto; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.04); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 3px rgba(22, 34, 58, .06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.nav__link:hover { color: var(--blue); text-decoration: none; }

/* Language pill inside the nav (EN default at /, TR at /tr/) */
.nav-lang { display: flex; align-items: center; }
.nav-lang__group {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
}
.nav-lang__opt {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.nav-lang__opt:hover { color: var(--blue); text-decoration: none; }
.nav-lang__opt.is-active,
.nav-lang__opt[aria-current='page'] {
  background: var(--blue);
  color: #fff;
}

.header-cta { margin-left: 8px; }
.header-cta .btn { min-height: 42px; padding: 10px 20px; font-size: .9rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }

  /* Without JS the toggle cannot work: show the links inline instead. */
  html:not(.js) .nav-toggle { display: none !important; }
  html:not(.js) .nav[hidden] {
    display: block;
    position: static;
    order: 3;
    flex-basis: 100%;
    border-bottom: 0;
    box-shadow: none;
  }
  html:not(.js) .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 0 0 14px;
  }
  html:not(.js) .nav__link { padding: 6px 0; border-bottom: 0; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav-lang { justify-content: center; padding-top: 14px; }
  .nav-lang__opt { padding: 6px 14px; font-size: .85rem; }
}

@media (min-width: 881px) {
  .nav[hidden] { display: block; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 420px at 78% -8%, var(--blue-soft), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #FBFCFF 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--blue-soft);
  border: 1px solid #D8E4FD;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: .84rem;
  font-weight: 600;
}
.hero__badge svg { width: 16px; height: 16px; }

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.hero__title em {
  font-style: normal;
  color: var(--blue);
}

.hero__text {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
}
.assurances svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex: none;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { order: 2; margin-top: 8px; }
}

/* --- Phone mockup -------------------------------------------------------- */
.phone {
  position: relative;
  width: min(300px, 74vw);
  padding: 10px;
  background: linear-gradient(160deg, #1B2540, #0D1425);
  border-radius: 46px;
  box-shadow:
    0 2px 4px rgba(13, 20, 37, .18),
    0 30px 60px -18px rgba(22, 34, 58, .45);
}
.phone::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 43px;
  pointer-events: none;
}
.phone__screen {
  overflow: hidden;
  border-radius: 37px;
  background: #fff;
}
.phone__screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 1456;
  object-fit: cover;
  object-position: top center;
}
.phone--tilt { transform: rotate(-2deg); }

/* --- Cards --------------------------------------------------------------- */
.card {
  position: relative;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #D6DEF0;
  box-shadow: var(--shadow-md);
}
.card__title {
  margin-top: 18px;
  font-size: 1.125rem;
  font-weight: 600;
}
.card__text {
  margin-top: 8px;
  font-size: .965rem;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}
.icon-tile svg { width: 22px; height: 22px; }

/* Featured three */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured .card { padding: 30px; }
.featured .card__title { font-size: 1.2rem; font-weight: 700; }
.featured .card__num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: .85rem;
  font-weight: 700;
  color: #C4CEE2;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
}

/* All-features grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-3 .card { padding: 24px; }
.grid-3 .card__title { margin-top: 16px; font-size: 1.05rem; }

/* Use-case grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.usecase {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.usecase__title {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
}
.usecase__text { margin-top: 6px; font-size: .95rem; }

/* --- How it works -------------------------------------------------------- */
.steps-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 28px 62px;
  counter-increment: step;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.steps li::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; font-weight: 700; }
.steps p { margin-top: 4px; font-size: .975rem; }

.steps-layout__visual { display: flex; justify-content: center; }

@media (max-width: 900px) {
  .steps-layout { grid-template-columns: 1fr; }
  .steps-layout__visual { order: 2; }
}

/* --- Premium ------------------------------------------------------------- */
.premium {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.premium h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.premium p { margin-top: 8px; }
.premium__actions { display: flex; }

@media (max-width: 820px) {
  .premium { grid-template-columns: 1fr; text-align: left; }
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] {
  border-color: #D6DEF0;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__answer {
  padding: 0 22px 20px;
  font-size: .975rem;
}
.faq__answer a { word-break: break-word; }

/* --- Final CTA ----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.cta p {
  max-width: 34em;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .9);
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.cta__note {
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: #101A2E;
  color: #A8B1C6;
  padding-block: 48px 32px;
  font-size: .93rem;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.site-footer .brand img { height: 28px; }
.site-footer__tag { margin-top: 10px; color: #C6CDE0; }

/* Inline footer links sit on the dark footer: use a light colour (contrast) and
   underline them so they are not distinguishable by colour alone. */
.site-footer__tag a,
.site-footer__bottom a {
  color: #E7EBF5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__tag a:hover,
.site-footer__bottom a:hover { color: #fff; }

/* In-text links in answers and body copy: underline + a darker blue that keeps
   a passing contrast ratio on the tinted #F5F7FB sections. */
.faq__answer a,
.prose section a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: #DCE1EE; }
.footer-links a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: .87rem;
  color: #8B94AC;
}

/* --- Prose (privacy page) ------------------------------------------------ */
.prose { max-width: 760px; margin-inline: auto; }
.prose section + section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.prose h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2 { margin-top: 28px; font-size: 1.15rem; }
.prose p { margin-top: 12px; font-size: .985rem; }
.prose .meta { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.prose strong { color: var(--ink); }

.back-link { margin-bottom: 20px; font-size: .93rem; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.lang-switch a {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
}
.lang-switch a:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* --- Reveal on scroll ---------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .btn, .card, .store-badge { transition: none; }
}
