/* PlingIt website. Colors come from theme/index.ts. No framework, no build step. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #0e1014;
  --surface: #1a1d24;
  --surface2: #222631;
  --border: #2c313d;
  --text: #f4f5f7;
  --soft: #c9cdd6;
  --muted: #a3a9b6;
  --accent: #ff6b4a;
  --safety: #36d1b0;
  --on-accent: #1a0e0a;
  --divider: #22262f;
  --input-border: #343a47;
  --link: #ff8a6e;
  --heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--link);
}

a:hover {
  color: #ffb09d;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--verified, #6aa8ff);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 24px;
}

.brand img {
  width: 36px;
  height: 38px;
}

.brand span span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav a {
  color: var(--soft);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 28px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: #ff8466;
  color: var(--on-accent);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 22px;
}

.nav a.btn {
  color: var(--on-accent);
}

.btn-danger {
  background: transparent;
  color: var(--danger, #ff5c5c);
  border: 2px solid #ff5c5c;
}

.btn-danger:hover {
  background: #2a1517;
  color: #ff7d7d;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 28px;
  border: 1px solid var(--input-border);
  color: var(--soft);
  font-size: 15px;
}

.tag {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--soft);
}

/* Home */
.hero {
  display: flex;
  align-items: center;
  gap: 40px 56px;
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 56px;
}

.hero-text {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(38px, 9vw, 72px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 540px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.fine {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.hero-art {
  flex: 0 1 360px;
  display: flex;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.phone {
  width: 280px;
  height: 570px;
  border-radius: 42px;
  background: #0a0c10;
  border: 1px solid var(--input-border);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #262d3a;
}

.screen svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pling {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.map-pling::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--accent);
}

.map-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-card strong {
  font-family: var(--heading);
  font-size: 15px;
}

.map-card small {
  font-size: 12px;
  color: var(--muted);
}

.map-card span {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}

.hero-pip {
  position: absolute;
  left: -6px;
  bottom: 40px;
  width: 92px;
}

.section {
  padding-top: 40px;
  padding-bottom: 56px;
}

.section h2 {
  font-size: clamp(28px, 6vw, 44px);
  margin-bottom: 24px;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 21px;
}

.card p {
  margin: 0;
  color: var(--soft);
}

.num {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #2a1a15;
  color: #ffb09d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
}

.band {
  background: #121519;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.band .section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.band .intro {
  max-width: 640px;
  margin: -8px 0 28px;
  color: var(--soft);
  font-size: 17px;
}

.features {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #13221e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature strong {
  display: block;
  font-size: 17px;
}

.feature span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
}

.venues {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 56px;
  padding-bottom: 56px;
}

.venues > div:first-child {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.venues h2 {
  font-size: clamp(28px, 6vw, 44px);
}

.venues p {
  margin: 0;
  color: var(--soft);
  font-size: 17px;
}

.sticker {
  width: 200px;
  height: 200px;
  border-radius: 100px;
  background: var(--text);
  color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  margin: 0 auto;
}

.sticker img {
  width: 86px;
}

.cta {
  padding: 48px 24px;
  border-radius: 32px;
  background: #1f1714;
  border: 1px solid #4a2a20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 64px;
}

.cta h2 {
  font-size: clamp(28px, 6vw, 46px);
}

.cta p {
  margin: 0;
  color: #e3c9c0;
  font-size: 17px;
}

.cta .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  flex-shrink: 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Text pages: privacy, terms, delete account */
.doc {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(32px, 7vw, 46px);
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: var(--soft);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.doc .summary {
  font-size: 18px;
  color: var(--text);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.table-scroll:focus-visible {
  outline: 3px solid #6aa8ff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--text);
  background: var(--surface2);
  font-weight: 600;
  white-space: nowrap;
}

td {
  color: var(--soft);
}

.panel {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 0 18px;
}

.panel h2 {
  margin-top: 0;
}

.panel ul {
  margin-bottom: 0;
}

/* Invite and 404 */
.center {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.center img.big {
  width: 120px;
}

.center h1 {
  font-size: clamp(28px, 7vw, 40px);
}

.center p {
  margin: 0;
  color: var(--soft);
}

.code {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(34px, 11vw, 56px);
  letter-spacing: 6px;
  padding: 14px 24px 14px 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  overflow-wrap: anywhere;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }

  .cta {
    padding: 56px 32px;
  }

  .doc h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.p1 { left: 30px; top: 200px; }
.p2 { left: 140px; top: 290px; }
.p3 { left: 50px; top: 390px; }
.btn.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--input-border); }
.btn.btn-ghost:hover { background: var(--surface); color: var(--text); }
