/* tezgo.tj — the public site. Brand: yellow #FDDB04, ink #21201F, font Onest. */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(fonts/Onest-Regular.woff2) format('woff2'); }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(fonts/Onest-Medium.woff2) format('woff2'); }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url(fonts/Onest-Bold.woff2) format('woff2'); }
@font-face { font-family: Onest; font-weight: 800; font-display: swap; src: url(fonts/Onest-ExtraBold.woff2) format('woff2'); }

:root {
  --yellow: #FDDB04;
  --yellow-soft: #FFE85C;
  --cream: #FFF8D6;
  --ink: #21201F;
  --ink-soft: #4A4614;
  --muted: #6B6860;
  --paper: #FFFFFF;
  --sand: #F6F4EE;
  --line: #E9E6DC;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Onest, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.nav .logo img { height: 44px; width: auto; }
.nav-cta { text-decoration: none; font-weight: 700; background: var(--ink); color: var(--yellow); padding: 11px 20px; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: #000; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--yellow); padding-bottom: 72px; }
.hero::before { content: ''; position: absolute; width: 760px; height: 760px; right: -220px; top: -180px; background: var(--yellow-soft); border-radius: 50%; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(33, 32, 31, .08); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 18px 0 18px; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 12px 22px 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.store:hover { transform: translateY(-2px); background: #000; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; opacity: .72; font-weight: 500; }
.store b { font-size: 19px; font-weight: 700; }
.store.soon { background: rgba(33, 32, 31, .1); color: var(--ink); cursor: default; }
.store.soon:hover { transform: none; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-phones { position: relative; display: flex; justify-content: center; min-height: 480px; }
.phone { margin: 0; width: 260px; border: 10px solid var(--ink); border-radius: 44px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px rgba(90, 70, 0, .28); }
.phone img { width: 100%; height: auto; }
.hero-phones .phone-back { position: absolute; transform: translate(-46%, 34px) rotate(-6deg); width: 230px; opacity: .97; }
.hero-phones .phone-front { position: relative; transform: translateX(32%) rotate(3deg); }
.dish { position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 14px 30px rgba(90, 70, 0, .25); object-fit: cover; }
.dish-1 { left: 2%; bottom: 6%; }
.dish-2 { right: 0; top: 4%; width: 92px; height: 92px; }

/* Sections */
section { padding: 84px 0; }
h2 { font-weight: 800; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 40em; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--sand); border-radius: var(--radius); padding: 26px; }
.card .emoji { font-size: 34px; line-height: 1; display: block; margin-bottom: 16px; }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; background: var(--cream); border-radius: var(--radius); padding: 26px 26px 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-soft); }

.showcase { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.shot { margin: 0; text-align: center; }
.shot .phone { width: 240px; margin: 0 auto 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .14); }
.shot figcaption { font-weight: 700; font-size: 18px; }
.shot figcaption span { display: block; font-weight: 500; font-size: 15px; color: var(--muted); }

.partners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.partner { border-radius: var(--radius); padding: 30px; border: 2px solid var(--line); }
.partner h3 { margin: 0 0 8px; font-size: 22px; }
.partner p { margin: 0 0 18px; color: var(--muted); }
.partner a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }

.cta { background: var(--yellow); border-radius: 36px; padding: 48px 32px; text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--yellow-soft); right: -120px; bottom: -200px; }
.cta > * { position: relative; z-index: 1; }
.cta p { color: var(--ink-soft); font-size: 18px; margin: 0 0 26px; }
.cta .stores { justify-content: center; }

/* Footer */
footer { background: var(--ink); color: #fff; padding: 48px 0 40px; margin-top: 84px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot .logo img { height: 40px; width: auto; filter: invert(1); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { text-decoration: none; opacity: .85; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot small { display: block; opacity: .6; margin-top: 22px; width: 100%; }

/* Plain pages */
.page-head { background: var(--yellow); padding-bottom: 44px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.prose { max-width: 760px; padding-top: 48px; }
.prose h2 { font-size: 26px; margin-top: 36px; }
.prose p, .prose li { font-size: 17px; color: #3a3833; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.note { background: var(--cream); border-radius: 20px; padding: 18px 22px; }

.js-phone-wrap[hidden] { display: none !important; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-phones { min-height: 560px; }
  .phone { width: 280px; }
  .hero-phones .phone-back { width: 250px; }
}
@media (max-width: 560px) {
  .nav .logo img { height: 36px; }
  .nav-cta { padding: 9px 16px; font-size: 15px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .hero-phones { min-height: 430px; }
  .phone { width: 220px; border-width: 8px; border-radius: 36px; }
  .hero-phones .phone-back { width: 190px; }
  .dish { width: 84px; height: 84px; }
  .dish-2 { width: 70px; height: 70px; }
  section { padding: 64px 0; }
  .cta { padding: 40px 22px; border-radius: 28px; }
  .features { grid-template-columns: 1fr; }
  /* Three tall phones one under another make a long page: on a phone they become a strip to swipe. */
  .showcase { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 12px; gap: 18px; }
  .shot { flex: 0 0 auto; scroll-snap-align: center; }
  .shot .phone { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
