/* Pinhole site. Colours follow the app's theme (Color.kt): Ink, the lime P500 ramp and the iOS-style labels. */
@font-face { font-family: "Inter"; src: url(/fonts/inter_regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter_semibold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter_bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url(/fonts/vazirmatn_regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url(/fonts/vazirmatn_bold.ttf) format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #0B0B0C;
  --lime: #D6F53C;
  --lime-soft: rgba(214, 245, 60, .14);
  --bg: #0B0B0C;
  --surface: #161618;
  --line: rgba(255, 255, 255, .09);
  --text: #FFFFFF;
  --muted: rgba(235, 235, 245, .62);
  --radius: 22px;
  --page: min(1120px, 100% - 32px);
}
@media (prefers-color-scheme: light) {
  :root { --bg: #F2F2F7; --surface: #FFFFFF; --line: rgba(60, 60, 67, .14); --text: #000000; --muted: rgba(60, 60, 67, .68); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
}
html[lang="ar"] body { font-family: "Vazirmatn", "Inter", system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }

.mark { width: 30px; height: 30px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 18px; }

.top, .foot { width: var(--page); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top { padding: 18px 0; }
.top nav, .foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a, .foot nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.top nav a:hover, .foot nav a:hover { color: var(--text); }
.top .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

main { width: var(--page); margin-inline: auto; }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 40px; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--lime-soft); color: var(--lime); font-weight: 600; font-size: 14px; }
@media (prefers-color-scheme: light) { .kicker { color: #596619; } }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; }
.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 18px 0 28px; }
.cta { display: inline-block; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 700; padding: 15px 26px; border-radius: 999px; }
.cta:hover { filter: brightness(1.06); }
.gestures { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.gestures li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }

.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 10px; background: #1C1C1E; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px #2C2C2E; }
.screen { position: relative; height: 100%; border-radius: 37px; background: radial-gradient(120% 70% at 50% 0%, #1f2410 0%, #0B0B0C 60%); overflow: hidden; }
.hole { position: absolute; top: 18px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(214, 245, 60, .9); z-index: 2; }
.ring { position: absolute; top: 25px; left: 50%; width: 14px; height: 14px; border: 1.5px solid var(--lime); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; animation: pulse 2.6s ease-out infinite; }
.r2 { animation-delay: .5s; } .r3 { animation-delay: 1s; }
@keyframes pulse { 0% { width: 14px; height: 14px; opacity: .9; } 100% { width: 150px; height: 150px; opacity: 0; } }
.island { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 64%; height: 38px; border-radius: 999px; background: #000; display: flex; align-items: center; gap: 10px; padding: 0 12px; box-shadow: inset 0 0 0 1px #222; }
.island .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); flex: none; }
.island .bar { height: 6px; flex: 1; border-radius: 3px; background: linear-gradient(90deg, var(--lime) 55%, #333 55%); }
.tiles { position: absolute; inset: auto 18px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles i { aspect-ratio: 1; border-radius: 18px; background: #1C1C1E; box-shadow: inset 0 0 0 1px #262628; }
.tiles i:nth-child(2) { background: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(214, 245, 60, .4); }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } html { scroll-behavior: auto; } }

h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; margin-bottom: 28px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid h3 { font-size: 19px; margin-bottom: 8px; }
.grid p { margin: 0; color: var(--muted); font-size: 15.5px; }

.privacy p, .pro p { max-width: 42em; }
.privacy p { color: var(--muted); font-size: 18px; }
.text-link { color: var(--lime); font-weight: 600; text-underline-offset: 4px; }
@media (prefers-color-scheme: light) { .text-link { color: #596619; } }
.pro { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 44px; margin-bottom: 72px; }
.badge { display: inline-block; background: var(--text); color: var(--bg); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.pro h2 { margin-bottom: 14px; }
.muted { color: var(--muted); }
.pro .cta { margin-top: 12px; }

.doc { max-width: 760px; padding: 32px 0 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text); opacity: .92; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc.center { text-align: center; margin-inline: auto; }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; width: 100%; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .pro { padding: 28px 20px; }
  .top nav a:not(.lang) { display: none; }
}
