/* shiftak.net (phase 8). Rebuilt with the VectorLab visual-taste rules:
   black canvas, one neutral step for surfaces, depth by 1px borders (no glass, no glow stacks),
   one accent (sky) for actions, shift colours only where shifts are shown, 8pt spacing,
   three weights (400/500/700), body 16px. */
@font-face { font-family: 'Peyda'; src: url('/assets/PeydaWeb-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('/assets/PeydaWeb-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('/assets/PeydaWeb-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* surfaces: L0 canvas, L1 sections/cards, L2 raised, L3 overlays */
  --l0: #000000;
  --l1: #0c0d10;
  --l2: #14161b;
  --l3: #1b1e24;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ink: #f5f6f7;
  --ink-2: #a3a7b0;
  --ink-3: #737782;
  /* one accent for actions, links and focus */
  --accent: #38bdf8;
  --accent-ink: #001520;
  /* feature hues: icons only */
  --sky: #38bdf8;
  --emerald: #34d399;
  --lime: #a3e635;
  --violet: #a78bfa;
  --rose: #f43f5e;
  --pink: #f472b6;
  --amber: #fbbf24;
  /* shift colours: data only */
  --morning: #eab308;
  --evening: #c2410c;
  --night: #06b6d4;
  /* type scale 1.25 from 16px */
  --t-meta: 0.75rem;
  --t-2: 0.875rem;
  --t-body: 1rem;
  --t-h4: 1.25rem;
  --t-h3: 1.5625rem;
  --t-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.4375rem);
  --t-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.8125rem);
  --wide: 1152px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-c="sky"] { --c: var(--sky); }
[data-c="emerald"] { --c: var(--emerald); }
[data-c="lime"] { --c: var(--lime); }
[data-c="violet"] { --c: var(--violet); }
[data-c="rose"] { --c: var(--rose); }
[data-c="pink"] { --c: var(--pink); }
[data-c="amber"] { --c: var(--amber); }
[data-c="android"] { --c: #3ddc84; }
[data-c="ios"] { --c: #f5f6f7; }
[data-c="bazaar"] { --c: #8ccf41; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--l0); color: var(--ink);
  font: 400 var(--t-body)/1.6 'Peyda', Tahoma, sans-serif;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 50; padding: 8px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.skip:focus { top: 16px; }

/* Buttons: pill like the reference, solid accent for the one primary action */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding-inline: 24px; border-radius: 999px;
  font: 500 var(--t-body)/1 'Peyda', sans-serif; white-space: nowrap; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5cc9fa; }
.btn-secondary { background: var(--l2); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.28); }
.btn-quiet { color: var(--ink); border: 1px solid var(--border-strong); }
.btn-quiet:hover { border-color: rgba(255, 255, 255, 0.28); }
.btn-disabled { background: var(--l2); color: var(--ink-3); border: 1px dashed var(--border-strong); cursor: default; }
.btn-sm { min-height: 44px; padding-inline: 20px; font-size: var(--t-2); }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--l0); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: var(--t-h4); }
.logo:hover { text-decoration: none; }
.logo img { border-radius: 8px; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--ink-2); font-size: var(--t-2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { margin-inline-start: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Hero */
.hero { position: relative; overflow: clip; padding-block: 48px 64px; }
.hero::before {
  /* the calendar grid the whole product lives on, fading out */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 96px 96px; background-position: center -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 70%);
  opacity: 0.6;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-text { text-align: center; }
.hero-icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 20px; border: 1px solid var(--border); }
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lead { margin: 16px auto 0; max-width: 38em; color: var(--ink-2); font-size: var(--t-body); line-height: 1.75; }

.quick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin: 32px auto 0; padding: 8px; max-width: 512px;
  border-radius: 20px; background: var(--l1); border: 1px solid var(--border);
}
.quick li {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px;
  border-radius: 12px; background: var(--l2); box-shadow: var(--edge);
  font-size: var(--t-2); font-weight: 500; line-height: 1.4; text-align: start;
}
.qi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex: none; }
.qi svg { width: 20px; height: 20px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; color: var(--ink-3); font-size: var(--t-meta); }
@media (max-width: 420px) { .actions .btn { flex: 1 1 0; padding-inline: 16px; } }

/* Phone frames around real screenshots */
.phone { position: relative; padding: 8px; border-radius: 40px; background: var(--l3); border: 1px solid var(--border-strong); box-shadow: var(--edge), 0 24px 64px rgba(0, 0, 0, 0.6); }
.phone img { width: 100%; border-radius: 32px; background: #000; }

.hero-visual { position: relative; width: min(256px, 64vw); margin-inline: auto; }
.hero-visual::before {
  /* one soft light behind the product, the only ornament on the page */
  content: ''; position: absolute; inset: 10% -40% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.16), transparent);
}
.phone-lg { animation: rise 0.9s var(--ease) both; }
.note {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 16px; white-space: nowrap;
  background: var(--l3); border: 1px solid var(--border-strong); box-shadow: var(--edge), 0 12px 32px rgba(0, 0, 0, 0.55);
  animation: rise 0.9s var(--ease) both;
}
.note span { display: grid; line-height: 1.4; }
.note b { font-size: var(--t-2); }
.note small { font-size: var(--t-meta); color: var(--ink-2); }
.note-num { font-size: var(--t-h3); font-weight: 700; line-height: 1; color: var(--accent); }
.note-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.note-a { top: 8%; inset-inline-start: -20%; animation-delay: 0.25s; }
.note-b { top: 44%; inset-inline-end: -22%; animation-delay: 0.4s; }
.note-c { bottom: 8%; inset-inline-start: -16%; animation-delay: 0.55s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-text { text-align: start; }
  .hero-icon { margin: 0 0 24px; }
  .lead, .quick { margin-inline: 0; }
  .actions { justify-content: flex-start; }
  .hero-visual { width: 304px; }
  .note-a { inset-inline-start: -44%; }
  .note-b { inset-inline-end: -40%; }
  .note-c { inset-inline-start: -36%; }
}

/* Facts band */
.facts { border-block: 1px solid var(--border); background: var(--l1); }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts-row div { display: grid; gap: 4px; padding: 24px 16px; border-inline-start: 1px solid var(--border); }
.facts-row div:nth-child(2n+1) { border-inline-start: 0; }
.facts-row div:nth-child(n+3) { border-top: 1px solid var(--border); }
.facts-row b { font-size: var(--t-body); }
.facts-row span { color: var(--ink-2); font-size: var(--t-2); line-height: 1.5; }
@media (min-width: 860px) {
  .facts-row { grid-template-columns: repeat(4, 1fr); }
  .facts-row div { padding: 32px 24px; border-inline-start: 1px solid var(--border); }
  .facts-row div:first-child { border-inline-start: 0; }
  .facts-row div:nth-child(n+3) { border-top: 0; }
}

/* Sections */
.section { padding-block: 80px; }
.section-alt { background: var(--l1); border-block: 1px solid var(--border); }
.section-head { max-width: 40rem; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.25; }
.section-head p { margin-top: 12px; color: var(--ink-2); }
h3 { font-size: var(--t-h4); font-weight: 700; line-height: 1.35; }
@media (min-width: 960px) { .section { padding-block: 112px; } }

/* Steps */
.steps { display: grid; gap: 48px; }
.step { display: grid; justify-items: center; text-align: center; }
.step .phone { width: min(232px, 64vw); margin-bottom: 24px; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--accent); font-weight: 700; }
.step p { margin-top: 8px; max-width: 24em; color: var(--ink-2); font-size: var(--t-2); line-height: 1.7; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } .step .phone { width: 100%; max-width: 232px; } }

/* Feature cards */
.card { padding: 24px; border-radius: 20px; background: var(--l2); border: 1px solid var(--border); box-shadow: var(--edge); }
.card p { margin-top: 8px; color: var(--ink-2); font-size: var(--t-2); line-height: 1.7; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 24%, transparent); }
.grid-lead { display: grid; gap: 16px; }
.card-lead { padding: 32px; }
.card-lead h3 { font-size: var(--t-h3); }
.card-lead p { font-size: var(--t-body); max-width: 32em; }
.grid-rest { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .grid-rest { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-lead { grid-template-columns: repeat(2, 1fr); } .grid-rest { grid-template-columns: repeat(3, 1fr); } }

.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 24px; max-width: 336px; }
.strip i { aspect-ratio: 1; border-radius: 8px; background: var(--l3); border: 1px solid var(--border); }
.strip .m, .handover .m { background: var(--morning); border-color: transparent; }
.strip .e, .handover .e { background: var(--evening); border-color: transparent; }
.strip .n, .handover .n { background: var(--night); border-color: transparent; }
.strip .l { background: linear-gradient(135deg, var(--morning) 50%, var(--evening) 50%); border-color: transparent; }
.strip .mn { background: linear-gradient(135deg, var(--morning) 50%, var(--night) 50%); border-color: transparent; }
.handover { display: grid; gap: 8px; margin-top: 24px; }
.handover li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--l3); border: 1px solid var(--border); font-size: var(--t-2); color: var(--ink-2); }
.handover b { color: var(--ink); }
.handover i { width: 12px; height: 12px; border-radius: 4px; flex: none; }

.who { margin-top: 48px; text-align: center; color: var(--ink-2); line-height: 1.8; }
.who b { color: var(--ink); }

/* Install */
.installs { display: grid; gap: 16px; }
.install { display: flex; flex-direction: column; gap: 16px; }
.install-top { display: flex; align-items: center; gap: 16px; }
.install-top small { color: var(--ink-2); font-size: var(--t-2); }
.badge-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); flex: none; }
.badge-ic svg { width: 28px; height: 28px; }
.install ol { counter-reset: s; display: grid; gap: 12px; }
.install ol li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; font-size: var(--t-2); line-height: 1.6; }
.install ol li::before {
  content: counter(s, persian); flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 8px; background: var(--l3); border: 1px solid var(--border); color: var(--ink-2); font-size: var(--t-meta); font-weight: 500; translate: 0 2px;
}
.install p { color: var(--ink-2); font-size: var(--t-2); line-height: 1.7; }
.install .btn { margin-top: auto; }
@media (min-width: 960px) { .installs { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq-grid { display: grid; gap: 0; }
.faq { display: grid; gap: 8px; }
details { border-radius: 16px; background: var(--l2); border: 1px solid var(--border); }
details[open] { border-color: var(--border-strong); }
summary { position: relative; min-height: 56px; padding: 16px 24px 16px 56px; font-weight: 500; cursor: pointer; list-style: none; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; left: 24px; top: 50%; width: 8px; height: 8px; translate: 0 -75%;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); rotate: 45deg; transition: rotate 0.25s var(--ease), translate 0.25s var(--ease);
}
details[open] summary::after { rotate: -135deg; translate: 0 -25%; }
details p { padding: 0 24px 24px; color: var(--ink-2); font-size: var(--t-2); line-height: 1.8; max-width: 65ch; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .section-head-start { margin: 0; text-align: start; position: sticky; top: 112px; }
}

/* Closing */
.closing {
  display: grid; gap: 32px; align-items: end; overflow: clip;
  padding: 48px 24px 0; border-radius: 24px; text-align: center;
  background: var(--l1); border: 1px solid var(--border);
}
.closing h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.25; }
.closing p { margin: 12px 0 24px; color: var(--ink-2); }
.phone-peek { width: min(240px, 64vw); height: 280px; margin: 0 auto; overflow: clip; border-radius: 40px 40px 0 0; border-bottom: 0; padding-bottom: 0; }
.phone-peek img { border-radius: 32px 32px 0 0; }
@media (min-width: 860px) {
  .closing { grid-template-columns: 1.2fr 0.8fr; padding: 0 64px; text-align: start; }
  .closing-text { padding-block: 64px; }
  .phone-peek { width: 256px; height: 320px; }
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 48px 32px; }
.footer-row { display: grid; gap: 32px; }
.footer-brand p { margin-top: 8px; color: var(--ink-2); font-size: var(--t-2); max-width: 24em; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { font-size: var(--t-2); font-weight: 700; }
.footer-col a { color: var(--ink-2); font-size: var(--t-2); }
.footer-col a:hover { color: var(--ink); }
.footer-copy { margin-top: 32px; color: var(--ink-3); font-size: var(--t-meta); text-align: center; }
@media (min-width: 768px) { .footer-row { grid-template-columns: 2fr 1fr 1fr; } }

/* Terms page (scripts/build-site.mjs) */
.top { position: sticky; top: 0; z-index: 20; background: var(--l0); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; height: 64px; }
.top-row .btn { margin-inline-start: auto; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 784px; }
.legal h1 { font-size: var(--t-h2); margin-bottom: 8px; }
.legal h2 { font-size: var(--t-h4); font-weight: 700; margin: 32px 0 8px; }
.legal p, .legal li { color: #d6d8de; font-size: var(--t-body); line-height: 1.8; margin-bottom: 8px; }
.legal ul { list-style: disc; padding-inline-start: 24px; }
.legal .muted { color: var(--ink-2); font-size: var(--t-2); }
.toc { margin: 24px 0; padding: 16px 24px; border-radius: 16px; background: var(--l1); border: 1px solid var(--border); }
.toc ol { list-style: decimal; padding-inline-start: 24px; }
.copy { text-align: center; color: var(--ink-2); font-size: var(--t-2); }

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