/* JamBuddy site. Colours and type follow the app's design tokens
   (jambuddy-app lib/core/design/banddy_tokens.dart). */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0b0d10;
  --night: #181d26;
  --night-raised: #252c38;
  --amber: #ffb547;
  --violet: #9b8cff;
  --mint: #48d7b0;
  --paper: #f7f7f2;
  --mist: #aab2bf;
  --border: #343e4d;

  --brand: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;

  --radius: 20px;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

:lang(ja) body,
html:lang(ja) {
  line-height: 1.8;
}

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

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.site-header.is-solid {
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.brand img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 6px 14px rgba(155, 140, 255, 0.25));
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.nav a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.85;
}
.nav a:hover {
  opacity: 1;
}
.nav .lang {
  border: 1px solid rgba(247, 247, 242, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  opacity: 1;
}
@media (max-width: 720px) {
  .nav .nav-section {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 96px;
  background-color: var(--ink);
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center 35%;
  isolation: isolate;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero {
    background-image: image-set(
      url("../img/hero.webp") type("image/webp"),
      url("../img/hero.jpg") type("image/jpeg")
    );
  }
}
@media (max-width: 720px) {
  @supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .hero {
      background-image: image-set(
        url("../img/hero-960.webp") type("image/webp"),
        url("../img/hero.jpg") type("image/jpeg")
      );
    }
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0.35) 40%, rgba(11, 13, 16, 0.95) 100%),
    linear-gradient(135deg, rgba(255, 181, 71, 0.18), rgba(155, 140, 255, 0.18));
}

.eyebrow {
  display: inline-block;
  font-family: var(--brand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(40px, 7.2vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 14ch;
}
html:lang(ja) .hero h1 {
  font-family: var(--body);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.25;
  letter-spacing: 0;
  max-width: none;
}

.hero .lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--paper);
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 36em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.badges a {
  display: block;
  border-radius: 10px;
}
.badges img {
  height: 54px;
  width: auto;
}

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

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head h2 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
html:lang(ja) .section-head h2 {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}
.section-head p {
  color: var(--mist);
  margin: 0;
  font-size: 18px;
}

/* Steps: three phones in a row */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 64px;
    max-width: 420px;
    margin: 0 auto;
  }
  .phone {
    max-width: 250px;
  }
}
.step {
  counter-increment: step;
}
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
  margin: 28px 0 8px;
}
.step h3::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--brand);
  font-weight: 800;
  font-size: 16px;
  transform: translateY(-2px);
}
.step p {
  margin: 0;
  color: var(--mist);
}

.phone {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #2b3240, #12161d);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(155, 140, 255, 0.45);
}
.phone img {
  width: 100%;
  border-radius: 31px;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  background: var(--night);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: var(--night);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(155, 140, 255, 0.14);
  color: var(--violet);
}
.feature:nth-child(3n + 2) .icon {
  background: rgba(72, 215, 176, 0.14);
  color: var(--mint);
}
.feature:nth-child(3n) .icon {
  background: rgba(255, 181, 71, 0.14);
  color: var(--amber);
}
.feature .icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.feature h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--mist);
  font-size: 16px;
}

/* Download band */
.cta {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 181, 71, 0.16), transparent 60%),
    radial-gradient(70% 120% at 50% 100%, rgba(155, 140, 255, 0.16), transparent 60%),
    var(--ink);
}
.cta .section-head {
  margin: 0 auto 36px;
}
.cta .badges {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-size: 15px;
  color: var(--mist);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a {
  color: var(--paper);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer small {
  display: block;
  font-size: 14px;
}

/* ---------- Document pages (legal, 404) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.doc .doc-meta {
  color: var(--mist);
  font-size: 15px;
  margin: 0 0 40px;
}
.doc h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.doc h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  color: #dfe2e6;
}
.doc ul,
.doc ol {
  padding-left: 1.4em;
}
.doc li + li {
  margin-top: 6px;
}
.doc strong {
  color: var(--paper);
}
.doc .doc-lang {
  font-size: 15px;
}

.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}
.notfound h1 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--amber);
}
.button {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 22px;
  margin-top: 12px;
}
