/* TauLeap homepage — Sindre-inspired app hub.
   Scoped to body.home so legal / namecard / thanks keep site.css. */

:root {
  color-scheme: light dark;

  --gray-50: #f8f8fa;
  --gray-100: #f0f0f3;
  --gray-200: #e4e4e9;
  --gray-300: #cfcfd6;
  --gray-400: #9b9ba8;
  --gray-500: #6f6f7c;
  --gray-600: #555563;
  --gray-700: #3d3d4a;
  --gray-800: #2a2a33;
  --gray-900: #16161d;

  --primary: #0d7a6a;
  --primary-deep: #063f38;
  --primary-soft: rgba(13, 122, 106, 0.14);
  --glow-a: rgba(13, 122, 106, 0.28);
  --glow-b: rgba(52, 168, 140, 0.22);
  --glow-c: rgba(180, 220, 190, 0.35);

  --page-bg: light-dark(#ffffff, #0f1117);
  --text: light-dark(var(--gray-900), #ffffff);
  --text-2: light-dark(var(--gray-600), var(--gray-300));
  --text-3: light-dark(var(--gray-500), var(--gray-400));
  --card: light-dark(rgba(0, 0, 0, 0.035), rgba(255, 255, 255, 0.065));
  --card-hover: light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.12));
  --separator: light-dark(var(--gray-200), rgba(255, 255, 255, 0.1));
  --badge-bg: light-dark(var(--gray-100), rgba(255, 255, 255, 0.08));
  --badge-text: light-dark(var(--gray-600), var(--gray-300));

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo,
    "Noto Sans", Arial, sans-serif;
  --shell: 56rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: clamp(1rem, 0.92rem + 0.2vw, 1.0625rem);
  scrollbar-gutter: stable;
}

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

body.home {
  margin: 0;
  min-height: 100vh;
  color: var(--text-2);
  font-family: var(--font);
  line-height: 1.5;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home a {
  color: inherit;
  text-decoration: none;
}

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

body.home :focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--page-bg);
  }
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  gap: 1rem;
}

.mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mark .glyph {
  color: var(--primary);
  margin-right: 0.15em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.site-header nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.site-header nav a:hover {
  background: var(--card);
  color: var(--text);
}

.site-header nav a.is-active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

.header-sep {
  display: block;
  width: 1px;
  height: 1.25rem;
  margin: 0 0.45rem;
  background: var(--separator);
  border-radius: 999px;
}

/* Hero */

.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 0 2.75rem;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 18rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 32% 42%, light-dark(rgba(13, 122, 106, 0.26), rgba(52, 211, 153, 0.22)), transparent 58%),
    radial-gradient(ellipse at 68% 48%, light-dark(rgba(110, 180, 150, 0.32), rgba(13, 122, 106, 0.28)), transparent 55%),
    radial-gradient(ellipse at 50% 70%, light-dark(rgba(223, 238, 240, 0.7), rgba(6, 63, 56, 0.45)), transparent 60%);
  filter: blur(10px);
  z-index: 0;
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-name {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
  background: linear-gradient(
    105deg,
    var(--text) 15%,
    light-dark(#0d7a6a, #34d399) 78%,
    light-dark(#34a88c, #6ee7b7) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero-name {
    color: var(--text);
    background: none;
  }
}

.hero-tag {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-tag-ja {
  margin: 0.45rem auto 0;
  max-width: 36rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* body.home a { color: inherit } outranks plain .btn-*, so pin colors here */
body.home a.btn-primary,
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 122, 106, 0.28);
}

body.home a.btn-primary:hover,
.btn-primary:hover {
  background: var(--primary-deep);
  color: #fff;
  transform: translateY(-1px);
}

body.home a.btn-dark,
.btn-dark {
  background: light-dark(var(--gray-900), #ffffff);
  color: light-dark(#ffffff, var(--gray-900));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.home a.btn-dark:hover,
.btn-dark:hover {
  transform: translateY(-1px);
  color: light-dark(#ffffff, var(--gray-900));
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* Sections */

.band {
  padding: 1.25rem 0 3rem;
}

.section-label {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* App grid */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.app-card {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: var(--card);
  color: inherit;
  transition: background-color 0.2s ease;
  min-height: 5.5rem;
}

a.app-card:hover {
  background: var(--card-hover);
  color: inherit;
}

.app-card.is-soon {
  opacity: 0.72;
}

.app-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 22%;
  object-fit: cover;
  background: light-dark(#fff, rgba(255, 255, 255, 0.04));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.app-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.app-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.4;
}

.app-card-desc-ja {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.4;
}

.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge svg {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
}

.badge-soon {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

/* Contact */

.contact {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  border-top: 1px solid var(--separator);
  margin-top: 1rem;
}

.contact h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact p {
  margin: 0.55rem auto 0;
  max-width: 34rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.contact .mail {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.contact .mail:hover {
  color: var(--primary-deep);
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--separator);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.site-foot .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.foot-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.support-link:hover {
  background: var(--card-hover);
  color: var(--text);
}

.support-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

@media (max-width: 480px) {
  .hero {
    padding: 3.25rem 0 2rem;
  }

  .site-header nav a {
    padding: 0.35rem 0.5rem;
  }

  .header-sep {
    display: none;
  }

  .app-icon {
    width: 3rem;
    height: 3rem;
  }
}


/* ---------- About page ---------- */

.about-hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 0 1.5rem;
  overflow: clip;
}

.about-hero .hero-glow {
  inset: -30% 5% auto;
  height: 14rem;
}

.about-hero .shell {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(
    105deg,
    var(--text) 15%,
    light-dark(#0d7a6a, #34d399) 78%,
    light-dark(#34a88c, #6ee7b7) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .about-hero h1 {
    color: var(--text);
    background: none;
  }
}

.about-hero .lede {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  color: var(--text-2);
  font-size: 1.05rem;
}

.about-hero .lede-ja {
  margin: 0.35rem auto 0;
  max-width: 36rem;
  color: var(--text-3);
  font-size: 0.95rem;
}

.about-prose {
  padding: 1.25rem 0 0.5rem;
}

.about-prose .shell {
  max-width: 40rem;
}

.about-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--separator);
}

.about-block h2 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.about-block p {
  margin: 0 0 0.45rem;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
}

.about-block p.ja {
  color: var(--text-3);
  font-size: 0.95rem;
}

.about-block ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.15rem;
  color: var(--text-2);
}

.about-block li {
  margin: 0.25rem 0;
}

.about-block li .ja {
  display: block;
  color: var(--text-3);
  font-size: 0.9rem;
}

.about-block a.inline {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about-block a.inline:hover {
  color: var(--primary-deep);
}

.about-address {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-3);
  line-height: 1.55;
}


.about-teaser {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.about-teaser p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.about-teaser p.ja {
  margin-top: 0.25rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

.about-teaser a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about-teaser a:hover {
  color: var(--primary-deep);
}


/* Platform groups (Mac vs Chrome) */

.platform-group {
  margin-top: 2.75rem;
}

.platform-group:first-child {
  margin-top: 0;
}

.platform-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
}

.platform-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  color: var(--text);
  opacity: 0.88;
}

.platform-heading-text {
  text-align: left;
}

.platform-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.platform-heading-ja {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
  text-transform: none;
}

.section-label-sub {
  margin: 1.75rem 0 0.85rem;
}

.app-grid-single {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .app-grid-single {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }
}


/* Header support link (same Polar URL as footer) */

.site-header nav a.nav-support {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text-2);
}

.site-header nav a.nav-support:hover {
  background: var(--card);
  color: var(--text);
}

.nav-support-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .nav-support-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-header nav a.nav-support {
    padding: 0.4rem 0.55rem;
  }

  .site-header nav {
    gap: 0.05rem;
    font-size: 0.8rem;
  }

  .site-header nav a {
    padding: 0.35rem 0.45rem;
  }
}
