/* jiro.life (ADR-0031). One stylesheet for the Persian and English pages: logical
   properties only, so the same rules lay out right to left and left to right. */

@font-face {
  font-family: 'Vazirmatn';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 500;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic-500-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 500;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 800;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic-800-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 800;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Jiro's palette (mobile/src/design/tokens.ts). */
:root {
  color-scheme: light dark;
  --bg: #f5faf6;
  --bg-wash: #e6f4ec;
  --surface: #ffffff;
  --surface-muted: #eaf5ed;
  --mint: #d8f3e6;
  --warm: #faebd5;
  --sky: #e2f0f7;
  --lilac: #ece9f8;
  --text: #102d29;
  --muted: #47665e;
  --accent: #076653;
  --accent-strong: #04493c;
  --accent-bright: #12a083;
  --on-accent: #ffffff;
  --on-accent-muted: #c4ebdd;
  --highlight: #f2b865;
  --border: #d5e7dd;
  --shadow: 0 1px 2px rgb(16 45 41 / 0.06), 0 12px 32px rgb(16 45 41 / 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --page: min(1120px, 100% - 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1c18;
    --bg-wash: #0f2722;
    --surface: #12302a;
    --surface-muted: #163a33;
    --mint: #17403a;
    --warm: #3a2c1a;
    --sky: #16323d;
    --lilac: #2a2740;
    --text: #e8f4ef;
    --muted: #a7c4ba;
    --accent: #5cc7b2;
    --accent-strong: #0a5a4a;
    --accent-bright: #5cc7b2;
    --on-accent: #ffffff;
    --on-accent-muted: #c4ebdd;
    --border: #23463f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.25);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

:lang(en) body,
body:lang(en) {
  line-height: 1.6;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -100px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  inset-block-start: 16px;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

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

.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

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

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

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

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.lang:hover {
  border-color: var(--accent);
}

.lang svg {
  width: 16px;
  height: 16px;
}

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

/* The wash fades out inside the hero, so no edge shows where the section ends. */
.hero {
  position: relative;
  padding-block: 56px 72px;
  background:
    radial-gradient(55% 55% at 80% 30%, var(--bg-wash), transparent 70%),
    radial-gradient(35% 40% at 12% 45%, var(--bg-wash), transparent 70%);
}

[dir='rtl'] .hero {
  background:
    radial-gradient(55% 55% at 20% 30%, var(--bg-wash), transparent 70%),
    radial-gradient(35% 40% at 88% 45%, var(--bg-wash), transparent 70%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(en) h1 {
  line-height: 1.1;
  letter-spacing: -0.025em;
}

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

.lead {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  text-wrap: pretty;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 20px 10px 18px;
  border-radius: 18px;
  background: var(--text);
  color: var(--bg);
}

.store svg {
  flex: none;
  width: 26px;
  height: 26px;
}

.store span {
  display: grid;
  line-height: 1.3;
}

.store small {
  font-size: 12px;
  opacity: 0.75;
}

.store strong {
  font-size: 17px;
  font-weight: 700;
}

.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.assure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assure svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 500px;
  justify-self: center;
  width: 100%;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 6% 4% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgb(255 255 255 / 0.35), transparent 60%),
    linear-gradient(160deg, #0b8a6e, #076653 55%, #04493c);
  box-shadow: 0 40px 80px -30px rgb(7 102 83 / 0.55);
}

.stage .neko {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 3%;
  width: 52%;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgb(4 40 34 / 0.35));
}

[dir='rtl'] .stage .neko {
  transform: translateX(50%);
}

.float {
  position: absolute;
  width: 23%;
  padding: 12px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.float.a {
  inset-block-start: 4%;
  inset-inline-end: 2%;
  transform: rotate(6deg);
}

.float.b {
  inset-block-start: 38%;
  inset-inline-start: -2%;
  transform: rotate(-7deg);
}

.float.c {
  inset-block-end: 6%;
  inset-inline-end: -1%;
  transform: rotate(4deg);
}

.bubble {
  position: absolute;
  inset-block-start: 10%;
  inset-inline-start: 4%;
  max-width: 46%;
  padding: 12px 16px;
  border-radius: 20px;
  border-end-start-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

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

section {
  scroll-margin-block-start: 80px;
}

.section {
  padding-block: 88px;
}

.section-head {
  max-width: 640px;
  margin-block-end: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

:lang(en) .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 800;
  text-wrap: balance;
}

:lang(en) h2 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

/* Features: pastel tiles with the 3D objects, as on the app's home screen. */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.feature .art {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-block-end: 22px;
  border-radius: 30px;
  background: var(--tint, var(--mint));
}

.feature .art img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.t-mint {
  --tint: var(--mint);
}
.t-warm {
  --tint: var(--warm);
}
.t-sky {
  --tint: var(--sky);
}
.t-lilac {
  --tint: var(--lilac);
}

/* Neko: the green gradient band. */

.neko-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 40px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgb(255 255 255 / 0.12), transparent 60%),
    linear-gradient(150deg, #0b8a6e, #076653 45%, #04392f);
  color: var(--on-accent);
  overflow: hidden;
}

.neko-band .kicker {
  color: var(--highlight);
}

.neko-band p {
  margin: 16px 0 0;
  color: var(--on-accent-muted);
  font-size: 18px;
}

.neko-band .tagline {
  display: inline-block;
  margin-block-start: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: var(--on-accent);
  font-weight: 700;
}

.poses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pose {
  margin: 0;
  padding: 16px 10px 10px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.1);
  text-align: center;
}

.pose img {
  width: 100%;
  max-width: 120px;
  margin-inline: auto;
}

.pose figcaption {
  margin-block-start: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-accent-muted);
}

/* Principles. */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.principle {
  padding: 26px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.principle .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: 18px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--accent);
}

.principle .icon svg {
  width: 24px;
  height: 24px;
}

.principle p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Closing call to action. */

.closing {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 44px 56px;
  border-radius: 40px;
  background: var(--surface-muted);
}

.closing img {
  width: 170px;
}

.closing .stores {
  margin-block-start: 22px;
}

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

.foot {
  padding-block: 40px 56px;
  border-block-start: 1px solid var(--border);
  color: var(--muted);
  font-size: 14.5px;
}

.foot .note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.foot .note svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-block-start: 3px;
  color: var(--accent);
}

.foot .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot .row a {
  color: var(--muted);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---- Link fallback page (/r/…, /open/…) ------------------------------------------ */

.link-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--bg-wash), transparent 70%), var(--bg);
}

.link-card {
  width: min(560px, 100%);
  padding: 36px 32px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.link-card > img {
  width: 140px;
  margin: -8px auto 8px;
}

.link-card h1 {
  font-size: clamp(26px, 6vw, 32px);
  line-height: 1.4;
}

.link-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.link-card .stores {
  justify-content: center;
}

.link-card hr {
  margin: 32px 0 24px;
  border: 0;
  border-block-start: 1px solid var(--border);
}

.code {
  display: inline-block;
  margin-block-start: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--surface-muted);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  direction: ltr;
  unicode-bidi: isolate;
}

[hidden] {
  display: none !important;
}

/* ---- Responsive ------------------------------------------------------------------ */

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
  .neko-band {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-block: 32px 56px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .stage {
    max-width: 420px;
  }
  .nav {
    display: none;
  }
  .lang {
    margin-inline-start: auto;
  }
  .section {
    padding-block: 64px;
  }
  .closing {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 36px 24px;
  }
  .closing .stores {
    justify-content: center;
  }
  .closing img {
    width: 140px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .features,
  .principles {
    grid-template-columns: 1fr;
  }
  .feature {
    min-height: 0;
    padding: 24px;
  }
  .neko-band {
    padding: 28px 20px;
    border-radius: 28px;
  }
  .poses {
    gap: 8px;
  }
  .pose {
    padding: 10px 4px 6px;
  }
  .pose figcaption {
    font-size: 12.5px;
  }
  .store {
    flex: 1 1 100%;
  }
  .bubble {
    font-size: 13px;
  }
  .float.b {
    inset-inline-start: 0;
  }
  .float.c {
    inset-inline-end: 0;
  }
}

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