/* Benday – one stylesheet for the whole site. Colours are Benday's dark look (BendayTheme.kt). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0E0E11;
  --sunk: #141418;
  --surface: #1C1C22;
  --raised: #24242B;
  --rule: #2E2E36;
  --outline: #5A5A62;
  --ink: #F2F0EA;
  --ink-soft: #D6D3CC;
  --muted: #A8A6A0;
  --yellow: #FFC83D;
  --yellow-light: #FFD873;
  --on-yellow: #141414;
  --wide: 112%;
  --widest: 125%;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--yellow); }
a:hover { color: var(--yellow-light); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.02; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; border-radius: 6px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.yellow { color: var(--yellow); }

/* Buttons */

.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--on-yellow);
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 15px;
  white-space: nowrap;
}
.button:hover { background: var(--yellow-light); color: var(--on-yellow); }
.button-big { padding: 18px 26px; font-size: 18px; box-shadow: 0 10px 30px rgba(255, 200, 61, 0.25); }

/* Header */

.site-header { position: relative; z-index: 3; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.wordmark { font-weight: 900; font-stretch: var(--widest); font-size: 24px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a:not(.button) { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:not(.button):hover { color: var(--ink); }

/* Hero */

.hero { position: relative; overflow: hidden; margin-top: -84px; padding-top: 84px; }
.wall {
  position: absolute; inset: -120px -200px auto -200px; height: 900px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
  transform: rotate(-8deg); opacity: 0.28;
}
.wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 17, 0.55) 0%, rgba(14, 14, 17, 0.85) 55%, var(--ground) 92%);
}
.dots {
  background-image: radial-gradient(circle, var(--yellow) 34%, transparent 37%);
  background-size: 14px 14px;
}
.hero-dots {
  position: absolute; right: -40px; top: 0; width: 420px; height: 100%;
  transform: rotate(-15deg) scale(1.4); transform-origin: right top;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 75%);
  mask-image: linear-gradient(to left, #000 0%, transparent 75%);
  opacity: 0.9;
}
.hero-grid {
  position: relative; padding-top: 96px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px; align-items: end;
}
.hero-text { padding-bottom: 120px; }
.tag {
  display: inline-block; margin-bottom: 20px;
  background: var(--yellow); color: var(--on-yellow);
  font-weight: 800; font-size: 13px; letter-spacing: 0.12em;
  padding: 6px 10px; border-radius: 4px; transform: rotate(-2deg);
}
.hero h1 { font-weight: 900; font-stretch: var(--wide); font-size: 84px; line-height: 0.98; letter-spacing: -0.01em; }
.lede { margin-top: 28px; font-size: 21px; color: var(--ink-soft); max-width: 520px; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.price-note { color: var(--muted); font-size: 15px; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone img {
  width: 100%; max-width: 400px; transform: rotate(4deg);
}

/* Sources */

.sources { position: relative; z-index: 2; background: var(--ground); padding: 40px 0 24px; }
.kicker { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.source {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.source-icon {
  flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--raised);
  display: flex; align-items: center; justify-content: center;
}
.source-icon svg { width: 22px; height: 22px; stroke: var(--yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.source h3 { font-size: 19px; font-weight: 800; }
.source p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Feature rows */

.features { padding: 120px 0 40px; overflow-x: clip; }   /* the clean-up's wide picture never scrolls the page sideways */
.features .wrap { display: flex; flex-direction: column; gap: 140px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.eyebrow { color: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pro-mark { border: 1.5px solid var(--yellow); border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.h2 { font-weight: 900; font-stretch: var(--wide); font-size: 56px; }
.h2-small { font-size: 40px; }
.feature-text > p { margin-top: 22px; color: var(--ink-soft); font-size: 19px; }
.points { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.feature-shot { display: flex; justify-content: center; }
.feature-shot img { width: 100%; max-width: 420px; }
.tilt-left img { transform: rotate(-5deg); }
.tilt-right img { transform: rotate(5deg); }
/* The clean-up's phone is half its picture's width (the printed page and loupe beside it), the others' three quarters,
   and sits 60% across: the picture 1.5 times as wide, moved left so its phone is as large and placed as theirs. */
.shot-cleanup img { flex: none; width: calc(min(100%, 420px) * 1.5); max-width: none; }
.tilt-left.shot-cleanup img { transform: translateX(-10.5%) rotate(-5deg); }

/* Tablet row */

.tablets { position: relative; overflow: hidden; padding: 110px 0 80px; }
.tablets-dots {
  position: absolute; left: 0; right: 0; top: 46%; height: 420px; opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%);
}
.tablets-head { position: relative; text-align: center; }
.tablets-head .eyebrow { justify-content: center; }
.tablets-head > p:last-child { margin: 22px auto 0; color: var(--ink-soft); font-size: 19px; max-width: 640px; }
.tablets-shot { position: relative; margin-top: 56px; }
.tablets-shot img { width: 100%; max-width: 1100px; margin: 0 auto; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7)); }
.tablets-points {
  position: relative; margin-top: 56px; max-width: 1100px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.tablets-points h3 { font-size: 19px; font-weight: 800; }
.tablets-points p { margin-top: 6px; color: var(--muted); }

/* Small cards */

.more { padding: 60px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 12px; padding: 28px; }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { margin-top: 10px; color: var(--muted); }

/* Formats */

.formats { padding: 60px 0; }
.formats h2 { margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1.5px solid var(--outline); border-radius: 6px; padding: 8px 14px; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; }
.formats p { margin-top: 18px; color: var(--muted); }

/* Servers */

.servers { padding: 60px 0; }
.servers-box { background: var(--sunk); border: 1px solid var(--rule); border-radius: 16px; padding: 48px; position: relative; overflow: hidden; }
.servers-dots {
  position: absolute; right: 0; top: 0; width: 280px; height: 100%; opacity: 0.5;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
}
.servers-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: center; }
.servers-text { position: relative; max-width: 720px; }
.servers-phones { position: relative; display: flex; justify-content: center; }
.servers-phones img { width: 52%; max-width: 200px; transform: rotate(-4deg) translateX(6%); }
.servers-phones img + img { margin-top: 48px; transform: rotate(4deg) translateX(-6%); }
.servers-text p { margin-top: 16px; color: var(--ink-soft); }
.servers-text p + p { margin-top: 14px; color: var(--muted); }

/* Pro */

.pro { padding: 80px 0; }
.pro .h2 { text-align: center; margin-bottom: 32px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.plan { border-radius: 16px; padding: 36px; position: relative; overflow: hidden; }
.plan h3 { font-size: 26px; font-weight: 900; font-stretch: var(--wide); }
.plan ul { margin: 24px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-free { background: var(--surface); border: 1px solid var(--rule); }
.plan-free .plan-sub { margin-top: 6px; color: var(--muted); }
.plan-free ul { color: var(--ink-soft); }
.plan-pro { background: var(--yellow); color: var(--on-yellow); }
.plan-pro a { color: var(--on-yellow); }
.plan-pro .plan-sub { margin-top: 6px; font-weight: 700; }
.plan-pro .plan-foot { margin-top: 20px; font-size: 15px; }
.plan-dots {
  position: absolute; right: 0; top: 0; width: 200px; height: 100%; opacity: 0.5;
  background-image: radial-gradient(circle, var(--on-yellow) 30%, transparent 33%); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
}
.plan-pro > *:not(.plan-dots) { position: relative; }

/* Privacy */

.privacy { padding: 40px 0 80px; text-align: center; }
.privacy .wrap { max-width: 760px; }
.privacy p { margin-top: 16px; color: var(--ink-soft); font-size: 19px; }

/* FAQ */

.faq { padding: 40px 0 100px; }
.faq .wrap { max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border-radius: 12px; padding: 20px 24px; }
.faq summary { font-weight: 800; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-weight: 400; font-size: 26px; line-height: 0.9; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.credits { margin-top: 20px; font-size: 13px; color: #8A8880; max-width: 900px; }
.credits a { color: inherit; }

.footer-navs { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.footer-nav a[aria-current="page"] { color: var(--yellow); }
.footer-langs a { color: var(--muted); font-size: 14px; }

/* "Read more" links under a section */

.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; text-decoration: none; }
.more-link::after { content: "\2192"; transition: transform 0.15s; }
.more-link:hover::after { transform: translateX(3px); }
.more-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.card .more-link { margin-top: 14px; font-size: 15px; }

/* Guide pages */

.guide-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.guide-hero .hero-dots { opacity: 0.6; }
.guide-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.guide-grid.no-shot { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.guide-hero h1 { font-weight: 900; font-stretch: var(--wide); font-size: 64px; line-height: 1; letter-spacing: -0.01em; }
.guide-shot img { width: 100%; max-width: 340px; margin: 0 auto; transform: rotate(4deg); }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { padding: 40px 0 20px; }
.prose .wrap { max-width: 820px; }
.prose section + section { margin-top: 56px; }
.prose h2 { font-weight: 900; font-stretch: var(--wide); font-size: 34px; margin-bottom: 16px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); }
.prose .chips { margin: 6px 0 28px; padding-left: 0; flex-direction: row; gap: 10px; }
.related { padding: 40px 0 20px; }
.related .grid-3 { margin-top: 20px; }
.related a.card { text-decoration: none; color: var(--ink); display: block; }
.related a.card:hover { background: var(--raised); }
.cta-band { padding: 60px 0 40px; text-align: center; }
.cta-band .actions { justify-content: center; }

/* 404 */

.lost { min-height: 70vh; display: flex; align-items: center; }
.lost p { margin-top: 18px; color: var(--ink-soft); font-size: 19px; }
.lost .actions { margin-top: 30px; }

/* Narrow screens */

@media (max-width: 960px) {
  .hero h1 { font-size: 64px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { gap: 40px; }
}

@media (max-width: 1120px) {
  .tilt-left.shot-cleanup img { transform: translateX(-3%) rotate(-5deg); }   /* less room beside the text */
}

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .nav a:not(.button) { display: none; }
  .hero-grid, .feature, .plans { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 48px; }
  .hero-text { padding-bottom: 0; }
  .hero h1 { font-size: 52px; }
  .hero-phone img { max-width: 300px; margin-top: 20px; }
  .hero-dots { width: 260px; }
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .features { padding-top: 80px; }
  .features .wrap { gap: 90px; }
  .feature-shot { order: -1; }
  .feature-shot img { max-width: 300px; }
  .shot-cleanup img { width: calc(min(100%, 300px) * 1.5); max-width: none; }
  .tilt-left.shot-cleanup img { transform: rotate(-5deg); }   /* not moved left: its two labels stay on screen */
  .h2 { font-size: 40px; }
  .h2-small { font-size: 32px; }
  .servers-box { padding: 32px 24px; grid-template-columns: 1fr; }
  .servers-phones { max-width: 360px; width: 100%; margin: 0 auto; }
  .tablets { padding: 70px 0 50px; }
  .tablets-shot { margin-top: 40px; }
  .tablets-points { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .plan { padding: 28px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-hero { padding-top: 40px; }
  .guide-hero h1 { font-size: 42px; }
  .guide-shot img { max-width: 260px; }
  .prose h2 { font-size: 28px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 19px; }
  .button-big { padding: 16px 22px; }
  .header-inner .button { display: none; }
  .plan-dots { width: 110px; opacity: 0.35; }
}
