/* Padel Buddy landing page. Colours follow the app (static/style.css). */
:root {
  --bg: #0c1315;
  --surface: #152024;
  --surface-2: #1b292e;
  --line: #2a3c42;
  --text: #f4f2ea;
  --muted: #b3bdb8;
  --accent: #d9f24a;
  --accent-ink: #141a05;
  --turf: #2f6b3a;
  --radius: 18px;
  --head: "Barlow Condensed", "Heebo", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Heebo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: "Heebo", var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 19, 21, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-inline-end: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 0.5px; text-transform: uppercase; }
.brand b { color: var(--accent); font-weight: 700; }
.lang { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); cursor: default; border: 1px dashed var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding: 36px 0 28px; background: radial-gradient(ellipse at 70% 0%, rgba(47, 107, 58, 0.45), transparent 60%); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-family: var(--head); color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 11vw, 68px); font-weight: 700; text-transform: uppercase; }
h1 em { font-style: normal; color: var(--accent); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { text-transform: none; font-family: "Heebo", var(--head); font-weight: 800; }
.lead { color: var(--muted); font-size: 18px; margin: 14px 0 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* Phone mock-up */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: min(270px, 72vw); aspect-ratio: 9 / 19.5;
  border-radius: 38px; padding: 10px; background: #050809;
  box-shadow: 0 0 0 2px #2a3c42, 0 30px 60px rgba(0, 0, 0, 0.55);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #050809; border-radius: 12px; z-index: 2; }
.phone .screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: var(--turf); display: flex; align-items: center; }
.phone .screen img { width: 100%; height: auto; animation: breathe 9s ease-in-out infinite; transform-origin: 50% 40%; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .phone .screen img { animation: none; } html { scroll-behavior: auto; } }
.chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 12px; font-size: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); white-space: nowrap;
}
.chip b { color: var(--accent); font-family: var(--head); font-size: 20px; display: block; line-height: 1; }
.chip-a { inset-inline-start: 0; top: 18%; }
.chip-b { inset-inline-end: 0; bottom: 16%; }

/* Sections */
section { padding: 44px 0; }
.sec-head { margin-bottom: 22px; }
h2 { font-size: clamp(32px, 8vw, 46px); text-transform: uppercase; }
.sec-head p { color: var(--muted); margin: 8px 0 0; }

.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow: hidden; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(217, 242, 74, 0.12); display: grid; place-items: center; margin-bottom: 12px; }
.card .ico svg { width: 26px; height: 26px; color: var(--accent); }
.card h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }
.card .pic { margin: 16px -20px -20px; background: var(--turf); }
.card .pic img { width: 100%; }
.cut-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 14px; background: #34474d; }
.cut-bar i { display: block; background: var(--accent); }
.cut-bar b { display: block; }
.cut-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 6px; }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.names span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.map-svg { margin-top: 14px; width: 100%; height: auto; max-height: 260px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 24px;
}
.steps h3 { font-size: 22px; text-transform: uppercase; margin: 2px 0 4px; }
.steps p { color: var(--muted); margin: 0; }

/* Join */
.join { background: linear-gradient(160deg, #1d3b25, var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px; text-align: center; }
.join h2 { margin-bottom: 8px; }
.join p { color: var(--muted); margin: 0 auto 20px; max-width: 32em; }
.join .cta { justify-content: center; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
footer a { color: var(--muted); }
footer .copy { margin-inline-end: auto; }
.todo { font-size: 11px; color: var(--bg); background: #ffd24a; border-radius: 4px; padding: 1px 5px; margin-inline-start: 4px; vertical-align: middle; }

/* Privacy page */
.doc { max-width: 720px; padding-top: 30px; padding-bottom: 50px; }
.doc h1 { font-size: clamp(34px, 9vw, 52px); margin-bottom: 10px; }
.doc h2 { font-size: 26px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.draft { background: #3a3210; border: 1px solid #ffd24a; color: #ffe89a; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 14px 0 6px; }

/* Wider screens */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .join { padding: 40px; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
  section { padding: 64px 0; }
}
/* Phone held sideways: keep the hero short */
@media (orientation: landscape) and (max-height: 500px) {
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
  .hero { padding: 20px 0; }
  h1 { font-size: 40px; }
  .phone { width: 170px; }
  .chip { display: none; }
}
