/* ============================================================
   Toecan design system
   ------------------------------------------------------------
   Light, calm, brand-authentic. Toecan blue as the single
   accent. Moderate radius scale. Subtle motion.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — light, warm-white base */
  --canvas: #FFFFFF;
  --wash:   #F5F7FA;
  --wash-blue: #EEF3FB;
  --surface: #FFFFFF;

  /* Ink — deep navy family, no pure black */
  --ink:      #0B1B34;
  --ink-2:    #3A4A63;
  --ink-3:    #6B7A90;
  --muted:    #94A0B4;

  /* Brand — real Toecan palette */
  --brand:     #0078FF;
  --brand-600: #0067DB;
  --brand-100: #E6F0FF;
  --brand-50:  #F0F6FF;

  /* Borders + shadows */
  --border:    #E4E9F0;
  --border-2:  #D3DAE5;
  --shadow-xs: 0 1px 2px rgba(11, 27, 52, 0.05);
  --shadow-sm: 0 2px 6px rgba(11, 27, 52, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 27, 52, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 52, 0.12);

  /* Radius — moderate, consistent */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* Motion */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:    180ms;
  --t-base:    360ms;
  --t-slow:    560ms;

  /* Layout */
  --content: 1160px;
  --content-tight: 900px;
  --content-wide:  1280px;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-100); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.display {
  font-size: clamp(2.5rem, 3.5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.h1 { font-size: clamp(2rem, 2.4vw + 0.75rem, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.h2 { font-size: clamp(1.5rem, 1.5vw + 0.5rem, 2rem);   line-height: 1.2;  letter-spacing: -0.02em; }
.h3 { font-size: 1.25rem; line-height: 1.3; }

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.accent { color: var(--brand); }

/* ---------- Layout primitives ---------- */
.container       { width: min(100% - 48px, var(--content));       margin-inline: auto; }
.container-tight { width: min(100% - 48px, var(--content-tight)); margin-inline: auto; }
.container-wide  { width: min(100% - 32px, var(--content-wide));  margin-inline: auto; }

.section        { padding: 96px 0; }
.section-lg     { padding: 128px 0; }
.section-tight  { padding: 64px 0; }
@media (max-width: 720px) {
  .section     { padding: 64px 0; }
  .section-lg  { padding: 80px 0; }
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lede { margin-top: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 32px; width: auto; }

.nav__links { display: none; gap: 4px; }
@media (min-width: 900px) { .nav__links { display: inline-flex; } }
.nav__link {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--wash); }
.nav__link.is-active { color: var(--ink); }

.nav__cta { display: inline-flex; align-items: center; gap: 8px; }

.nav__menu {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: #fff;
}
@media (min-width: 900px) { .nav__menu { display: none; } }

.nav-drawer {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 49;
  display: none;
  padding: 96px 32px 32px;
  overflow-y: auto;
}
.nav-drawer.is-open { display: block; }
.nav-drawer a {
  display: block;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,120,255,0.35), inset 0 -1px 0 rgba(0,0,0,0.06);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,120,255,0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-2); background: var(--wash); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--wash); }

.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Cards + panels ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.card-hover:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}

/* ---------- Phone mockup (shared) ---------- */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0;
  perspective: 1600px;
}
.phone {
  position: relative;
  width: 300px;
  height: 610px;
  background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
  border-radius: 46px;
  padding: 8px;
  box-shadow:
    0 24px 80px rgba(0, 120, 255, 0.18),
    0 12px 36px rgba(15, 23, 42, 0.20),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 600ms var(--ease);
  animation: phone-float 6s ease-in-out infinite;
}
.phone:hover { transform: rotateY(-4deg) rotateX(2deg) translateY(-4px); }
@keyframes phone-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-8deg) rotateX(4deg) translateY(-8px); }
}
.phone__notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #F4F6F8;
}
.phone__slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: phone-slides 16s infinite;
}
.phone__slide img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.phone__slide:nth-child(1) { animation-delay: 0s; }
.phone__slide:nth-child(2) { animation-delay: 4s; }
.phone__slide:nth-child(3) { animation-delay: 8s; }
.phone__slide:nth-child(4) { animation-delay: 12s; }
@keyframes phone-slides {
  0%, 1%   { opacity: 0; }
  4%, 22%  { opacity: 1; }
  25%, 99% { opacity: 0; }
  100%     { opacity: 0; }
}
.phone__dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 3;
}
.phone__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  animation: phone-dots 16s infinite;
  transition: width 300ms var(--ease), background 300ms var(--ease);
}
.phone__dot:nth-child(1) { animation-delay: 0s; }
.phone__dot:nth-child(2) { animation-delay: 4s; }
.phone__dot:nth-child(3) { animation-delay: 8s; }
.phone__dot:nth-child(4) { animation-delay: 12s; }
@keyframes phone-dots {
  0%, 1%   { background: rgba(15, 23, 42, 0.18); width: 6px; }
  4%, 22%  { background: var(--brand); width: 18px; }
  25%, 100%{ background: rgba(15, 23, 42, 0.18); width: 6px; }
}
@media (max-width: 900px) {
  .phone { width: 260px; height: 528px; border-radius: 40px; }
  .phone__notch { width: 96px; height: 22px; top: 14px; }
  .phone__screen { border-radius: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .phone__slide { animation: none; }
  .phone__slide:nth-child(1) { opacity: 1; }
  .phone__dot { animation: none; }
  .phone__dot:nth-child(1) { background: var(--brand); width: 18px; }
}

/* ---------- Store badges ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.store-badge:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.store-badge__icon { width: 24px; height: 24px; display: grid; place-items: center; }
.store-badge__labels { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge__small  { font-size: 0.6875rem; color: var(--ink-3); letter-spacing: 0.02em; }
.store-badge__big    { font-size: 0.9375rem; font-weight: 600; }

/* ---------- Motion helpers ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Skip link + focus ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 200; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px;
  background: #0B1B34;
  color: #B4C0D3;
}
.footer a { color: #DDE3EE; transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: #fff; }
.footer__top {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .footer__brand-block { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand-block { max-width: 340px; }
.footer__brand-block img {
  height: 28px; width: auto;
  margin-bottom: 16px;
}
.footer__brand-block p { margin: 0 0 20px; font-size: 0.9375rem; line-height: 1.55; }

.footer__col-title {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #7A8AA4;
  margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }

.footer__socials { display: inline-flex; gap: 8px; }
.footer__social {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  color: #B4C0D3;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.footer__social:hover { background: rgba(255,255,255,0.14); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
  color: #7A8AA4;
}

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

.center-text { text-align: center; }
.mx-auto     { margin-inline: auto; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
