/* BerdisDev — page-specific pieces (pricing, work, about, contact) */

/* ---------- centred page heroes ---------- */
.page-hero { display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(36px, 5vw, 72px); }
.page-hero.center { align-items: center; text-align: center; }
.page-hero h1 { margin-top: 26px; }
.page-hero .lede { margin-top: 24px; max-width: 640px; }
.crumb { display: flex; align-items: center; gap: 10px; padding-top: 36px; font-size: 14px; color: var(--faint); }
.crumb span:last-child { color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin-top: 36px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tabs a { display: flex; align-items: center; justify-content: center; padding: 0 20px; height: 46px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs a.on, .tabs a:hover { background: var(--card); box-shadow: var(--shadow-soft); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.plan.dark { background: var(--ink); color: var(--on-ink); border-color: transparent; box-shadow: var(--shadow); }
.plan.dark .small, .plan.dark .plan-was { color: var(--on-ink-soft); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--glow-a); color: #10131f; font-size: 12px; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.plan-price b { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.035em; }
.plan-was { font-size: 20px; color: var(--faint); text-decoration: line-through; }
.plan-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.plan.dark .plan-list { border-color: var(--on-ink-line); }
.plan-list li { display: flex; gap: 10px; }
.plan-list li svg { flex-shrink: 0; margin-top: 2px; }
.plan .btn { width: 100%; margin-top: 24px; }

/* ---------- comparison table ---------- */
.compare { margin-top: 0; padding: clamp(16px, 2vw, 26px) clamp(16px, 2.4vw, 32px) 16px; border-radius: 30px; background: var(--glass); border: 1px solid var(--line); overflow-x: auto; }
.compare-grid { min-width: 720px; }
.crow { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; }
.crow > span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; font-size: 14px; text-align: center; }
.crow > span:first-child { justify-content: flex-start; color: var(--soft); text-align: left; }
.chl { background: color-mix(in srgb, var(--glow-a) 24%, var(--ground)); }
.chead { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; }
.chead b { font-family: var(--display); font-weight: 400; font-size: 19px; }
.compare-grid.folded .crow-extra { display: none; }
.compare-grid.folded.open .crow-extra { display: grid; }
.compare-more { display: block; margin: 14px auto 0; }

/* ---------- work page ---------- */
.reel { margin: 56px calc(50% - 50vw) 0; width: 100vw; overflow: hidden; padding: 30px 0 46px; }
.reel .marquee-track { animation-duration: 70s; }
.reel-card { width: clamp(280px, 34vw, 520px); flex-shrink: 0; margin-right: 24px; padding: 7px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.reel-card:nth-child(odd) { transform: rotate(-2deg); }
.reel-card:nth-child(even) { transform: rotate(2deg); }
.reel-card img { border-radius: 12px; }

.project { display: flex; flex-direction: column; padding: 10px 10px 20px; border-radius: 30px; background: var(--glass); border: 1px solid var(--line); }
.project .stage { position: relative; height: clamp(230px, 17vw, 250px); border-radius: 20px; overflow: hidden; }
.project .stage .browser { position: absolute; left: 7%; top: 22px; width: 80%; }
.project .stage .phone-pos { position: absolute; right: 5%; top: 44%; width: clamp(84px, 8.5vw, 124px); }
.project .txt { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 16px 12px 0; }
.project .row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.project .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.demo-badge { position: absolute; left: 20px; top: 20px; z-index: 2; display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }

.featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(20px, 3vw, 48px); border-radius: 36px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.featured .stage { position: relative; height: clamp(300px, 34vw, 520px); border-radius: 26px; background: var(--tint-a); overflow: hidden; }
.featured .stage .browser { position: absolute; left: 5%; top: 44px; width: 84%; }
.featured .stage .phone-pos { position: absolute; right: 4%; top: 130px; width: 175px; }

/* ---------- about ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; height: 640px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.mosaic-col { overflow: hidden; }
.mosaic-track { display: flex; flex-direction: column; animation: vmarquee 46s linear infinite; }
.mosaic-col:nth-child(2) .mosaic-track { animation-direction: reverse; animation-duration: 54s; }
.mosaic-col:nth-child(3) .mosaic-track { animation-duration: 62s; }
.mosaic-tile { margin-bottom: 14px; padding: 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.mosaic-tile img { border-radius: 13px; }
@keyframes vmarquee { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hello-band { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 40px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.hello-band .glowfx { position: absolute; inset: -30%; background: radial-gradient(28% 50% at 18% 50%, var(--glow-a) 0%, transparent 70%), radial-gradient(26% 50% at 82% 40%, var(--glow-b) 0%, transparent 70%); opacity: .55; animation: drift 14s ease-in-out infinite; }
.hello-band > * { position: relative; }
.rot { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top; }
.rot-track { display: flex; flex-direction: column; animation: rot2 8s cubic-bezier(.75, 0, .2, 1) infinite; }
.rot-track > span { display: block; height: 1.1em; line-height: 1.1em; white-space: nowrap; }
@keyframes rot2 { 0%, 42% { transform: translateY(0); } 50%, 92% { transform: translateY(-1.1em); } 100% { transform: translateY(-2.2em); } }

.planet-wrap { position: relative; width: min(480px, 90%); aspect-ratio: 1; margin: 0 auto; }
.planet-glow { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, var(--glow-a) 0%, transparent 65%); opacity: .8; }
.planet { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background-color: var(--card);
  background-image: radial-gradient(circle, var(--faint) 1.3px, transparent 1.7px), radial-gradient(circle at 34% 30%, var(--card) 0%, var(--panel) 70%, color-mix(in srgb, var(--glow-a) 80%, var(--ground)) 100%);
  background-size: 14px 14px, 100% 100%; animation: planet 24s linear infinite; box-shadow: var(--shadow); }
@keyframes planet { to { background-position: -420px 0, 0 0; } }
.planet-ring { position: absolute; inset: -4%; border-radius: 50%; border: 1px dashed var(--line); animation: spin 40s linear infinite; }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: ping 2.2s ease-out infinite; }

.srow { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 56px; align-items: center; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.srow:last-child { border-bottom: 1px solid var(--line); }
.srow b { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.srow .go { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; padding-top: clamp(36px, 5vw, 72px); }
.timeline { position: relative; margin-top: 26px; }
.timeline .line { position: absolute; left: 17px; top: 18px; bottom: 56px; width: 2px; background: var(--line); }
.timeline .fillline { position: absolute; left: 17px; top: 18px; bottom: 56px; width: 2px; background: linear-gradient(180deg, var(--glow-a), var(--ink)); transform-origin: top center; animation: vfill 7s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes vfill { 0% { transform: scaleY(0); opacity: 1; } 70%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.tl-step { position: relative; display: flex; gap: 18px; padding-bottom: 20px; }
.tl-step b { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--ground); font-size: 14px; font-weight: 500; flex-shrink: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 18px; border: 1px solid var(--line); background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.opt.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.step-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.step-head b { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; }
.step-head span { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.qcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mosaic { height: 460px; }
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qcards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .plans.swipe, .qcards.swipe { grid-template-columns: none; }
  .project .stage .phone-pos { display: none; }
  .project .stage .browser { left: 6%; width: 88%; }
  .featured .stage .phone-pos { display: none; }
  .srow { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .srow > :nth-child(3) { display: none; }
  .srow .go { width: 44px; height: 44px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
}
