/* CardTijori site. Self-hosted fonts, no third-party scripts or trackers. */
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('fonts/SpaceGrotesk_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('fonts/SpaceGrotesk_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('fonts/DMSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('fonts/DMSans_600SemiBold.ttf') format('truetype'); }

:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --paper: #fafaf7;
  --paper-2: #f0f0ec;
  --violet: #5b3df5;
  --violet-soft: #8b76ff;
  --lime: #c6ff3d;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --line: #ffffff1a;
  --radius: 28px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 99px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: #0b0b0cb3; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--lime); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 22px; font: 600 16px var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #ffffff40; }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.store { background: #fff; color: var(--ink); padding: 10px 22px 10px 18px; border-radius: 16px; }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.7; }
.store strong { font: 700 19px var(--display); letter-spacing: -0.01em; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% 0; z-index: -1; background: radial-gradient(40% 50% at 78% 40%, #5b3df58c, transparent 70%), radial-gradient(30% 30% at 10% 10%, #c6ff3d1f, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #ffffff12; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); font-style: normal; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
.hero h1 { font-size: clamp(56px, 8vw, 100px); margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.lede { font-size: clamp(18px, 2vw, 21px); color: #c9c9cf; max-width: 30ch; margin: 0 0 32px; }
.lede strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { font-size: 14px; color: var(--muted); margin-top: 14px; }

.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 270px; border-radius: 46px; padding: 9px; background: #2a2a2e; box-shadow: 0 40px 80px #0009, inset 0 0 0 1.5px #ffffff22; }
.phone img { border-radius: 38px; width: 100%; }
.phone.p1 { left: 4%; top: 40px; transform: rotate(-7deg); }
.phone.p2 { right: 4%; top: 0; transform: rotate(6deg); background: #e9e9ee; }
.sticker { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 16px; font: 700 15px var(--display); letter-spacing: -0.01em; box-shadow: 0 14px 30px #0006; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.s1 { background: var(--lime); color: var(--ink); left: -2%; top: 8%; transform: rotate(-6deg); }
.s2 { background: var(--violet); color: #fff; right: 0; bottom: 18%; transform: rotate(5deg); animation-delay: -1.6s; }
.s3 { background: #fff; color: var(--ink); left: 22%; bottom: 2%; transform: rotate(-3deg); animation-delay: -3.2s; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* Marquee */
.marquee-clip { overflow: hidden; padding: 24px 0; margin-top: 16px; }
.marquee { background: var(--lime); color: var(--ink); overflow: hidden; transform: rotate(-1.5deg); margin: 0 -2%; border-block: 2px solid var(--ink); }
.marquee div { display: flex; gap: 40px; width: max-content; padding: 16px 0; font: 700 22px var(--display); letter-spacing: -0.01em; text-transform: uppercase; animation: slide 28s linear infinite; }
.marquee span::after { content: '✦'; margin-left: 40px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 110px 0; }
.kicker { font: 700 14px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin: 0 0 16px; }
.section-head h2 { font-size: clamp(40px, 6vw, 72px); max-width: 14ch; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 18px 0 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); padding: 30px; min-height: 280px; }
.tile h3 { font-size: 30px; margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0; max-width: 34ch; }
.tile .shot { position: absolute; width: 230px; border-radius: 30px; border: 7px solid #2a2a2e; right: 26px; bottom: -140px; box-shadow: 0 30px 60px #0008; transition: transform 0.3s ease; }
.tile:hover .shot { transform: translateY(-10px) rotate(-2deg); }
.t-copy { grid-column: span 4; min-height: 420px; background: linear-gradient(135deg, #1a1440, var(--ink-2) 60%); }
.t-face { grid-column: span 2; background: var(--violet); border: 0; }
.t-face p { color: #e4deff; }
.t-offline { grid-column: span 2; background: var(--lime); color: var(--ink); border: 0; }
.t-offline p { color: #2b3510; }
.t-backup { grid-column: span 4; min-height: 420px; }
.t-theme { grid-column: span 3; min-height: 380px; }
.t-stack { grid-column: span 3; min-height: 380px; }
.big-emoji { font-size: 64px; line-height: 1; margin-bottom: 18px; }
.duo { position: absolute; right: 24px; bottom: -120px; display: flex; gap: 12px; }
.duo img { width: 170px; border-radius: 26px; border: 6px solid #2a2a2e; }
.duo img:first-child { transform: rotate(-5deg); border-color: #e9e9ee; }
.duo img:last-child { transform: rotate(5deg) translateY(-20px); }
.nets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 52%; }
.t-stack p { max-width: 26ch; }
.nets span { padding: 8px 14px; border-radius: 12px; font: 700 14px var(--display); color: #fff; }

/* Receipts */
.receipts { background: var(--paper); color: var(--ink); border-radius: 48px; margin-inline: 16px; }
.receipts .kicker { color: var(--violet); }
.receipts .section-head p { color: #5c5c61; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; counter-reset: s; }
.step { background: #fff; border: 1px solid #e4e4df; border-radius: var(--radius); padding: 30px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--lime); font: 700 22px var(--display); margin-bottom: 22px; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { margin: 0; color: #5c5c61; }
.specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.specs span { padding: 10px 16px; border-radius: 999px; background: var(--paper-2); border: 1px solid #e4e4df; font-weight: 600; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 48px; max-width: 820px; }
.faq details { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; }
.faq summary { cursor: pointer; font: 700 21px var(--display); letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 28px; line-height: 0.8; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 14px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final .box { border-radius: 48px; padding: 90px 24px; background: radial-gradient(60% 80% at 50% 0%, #5b3df5, #2a1c86 60%, var(--ink-2)); border: 1px solid var(--line); }
.final h2 { font-size: clamp(44px, 7vw, 88px); }
.final h2 em { font-style: normal; color: var(--lime); }
.final p { color: #d9d4ff; font-size: 19px; margin: 18px auto 34px; max-width: 40ch; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Doc pages (privacy, support) */
.doc { max-width: 720px; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 14px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc p, .doc li { color: #d4d4d8; }
.doc a { color: var(--lime); }
.doc strong { color: var(--text); }
.doc h3 { font-size: 21px; margin: 28px 0 6px; letter-spacing: -0.02em; }
.doc code { background: var(--ink-3); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; }
.tldr { background: var(--lime); color: var(--ink); border-radius: 24px; padding: 24px 28px; font-size: 18px; }
.tldr strong, .tldr p { color: var(--ink); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.cards a { display: block; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 24px; color: var(--text); }
.cards a strong { display: block; font: 700 22px var(--display); margin-bottom: 6px; }
.cards a span { color: var(--muted); font-size: 15px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 520px; margin-inline: auto; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-copy, .t-backup, .t-theme, .t-stack { grid-column: span 2; }
  .t-face, .t-offline { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 44px; }
  .phones { height: 470px; }
  .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .phone.p1 { left: 0; }
  .phone.p2 { right: 0; }
  .sticker { font-size: 13px; padding: 8px 12px; }
  section { padding: 76px 0; }
  .bento { grid-template-columns: 1fr; }
  .t-face, .t-offline { grid-column: span 2; }
  .tile { padding: 24px; }
  .tile .shot { width: 180px; bottom: -150px; }
  .t-copy, .t-backup { min-height: 460px; }
  .duo img { width: 130px; }
  .receipts { margin-inline: 8px; border-radius: 32px; }
  .final .box { border-radius: 32px; padding: 64px 20px; }
  .cards { grid-template-columns: 1fr; }
  .nets { max-width: 100%; }
  .t-stack { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee div, .sticker { animation: none; }
  .btn, .tile .shot { transition: none; }
}
