/* ── Fonts: Barlow, self-hosted from @fontsource (scripts/build.ts) ── */
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-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: "Barlow";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-latin-ext-400-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-latin-600-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: "Barlow";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-600-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: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-condensed-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: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ── */
:root {
  --night: #1f2160;
  --ink: #17182b;
  --ink-soft: #45465c;
  --ink-muted: #5d5e73;
  --ground: #f4f3f8;
  --surface: #ffffff;
  --line: #dddbe8;
  --line-soft: #e3e1ec;
  --accent: #3f3aa6;
  --accent-hover: #2a2675;
  --peach: #ffd2b0;
  --on-dark: #ece9ff;
  --on-dark-muted: #c9c6ec;
  --open: #cfe0f5;
  --blocked: #23265c;
  --call: #e8793f;
  --meeting: #8fb8e8;
  --heading: "Barlow Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
/* Barlow has no Japanese glyphs; condensed Latin leading would crowd kanji. */
:root:lang(ja) {
  --heading:
    "Barlow Condensed", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo,
    system-ui, sans-serif;
  --body:
    "Barlow", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui,
    sans-serif;
  line-break: strict;
  word-break: auto-phrase;
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
:lang(ja) :is(h1, h2, h3) {
  line-height: 1.25;
  letter-spacing: 0;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus {
  top: 16px;
}
.kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
:lang(ja) .kicker {
  letter-spacing: 0.04em;
}

/* ── Dark header: dusk sky, navigation ── */
.hero,
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
:is(.hero, .page-header, .privacy) a {
  color: #d9d6ff;
}
:is(.hero, .page-header, .privacy) a:hover {
  color: #fff;
}
.hero .kicker,
.page-header .kicker,
.privacy .kicker {
  color: var(--peach);
}
/* Darkens the top of the sky so the navigation stays legible over the sunset. */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(20 20 64 / 0.6),
    rgb(20 20 64 / 0) 160px
  );
}
.sky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.site-nav {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
}
:is(.hero, .page-header) .wordmark {
  color: #fff;
}
.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 22.37%;
  box-shadow: 0 6px 16px rgb(20 10 60 / 0.4);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
}
.site-nav ul a {
  display: inline-block;
  padding-block: 10px;
  text-decoration: none;
}
.site-nav ul a[aria-current="page"] {
  text-decoration: underline;
}

/* ── Hero ── */
.hero-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px 56px;
  padding-top: clamp(32px, 6vw, 64px);
}
.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: clamp(48px, 9vw, 112px);
}
.hero h1 {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
:lang(ja) .hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.15;
}
.lead {
  max-width: 540px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.45;
  color: var(--on-dark);
  text-shadow: 0 2px 18px rgb(20 16 60 / 0.45);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgb(255 255 255 / 0.35);
  color: #fff;
}
.badge span {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.badge small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #d6d6dd;
}
.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.45);
  text-decoration: none;
  font-weight: 600;
}
.hero-note {
  font-size: 14px;
}
.hero-phone {
  flex: 0 1 340px;
  margin-inline: auto;
}
.hero-phone .phone {
  border-radius: 52px 52px 0 0;
  border-bottom: 0;
  box-shadow: 0 30px 80px rgb(8 6 30 / 0.55);
}
.hero-phone .phone img {
  border-radius: 40px 40px 0 0;
  aspect-ratio: 600 / 1000;
  object-fit: cover;
  object-position: top;
}

/* A screenshot in a simple iPhone frame. */
.phone {
  padding: 11px;
  border-radius: 52px;
  background: #0b0b12;
  box-shadow: 0 24px 60px rgb(40 24 90 / 0.25);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 41px;
}

/* Header entrance: the sky fades in from night, then nav, copy and phone. */
@keyframes sky {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@keyframes phone {
  from {
    opacity: 0;
    transform: translateY(140px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .sky img {
    transform-origin: 70% 100%;
    animation: sky 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .site-nav {
    animation: drop 0.8s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .d1 {
    animation-delay: 0.4s;
  }
  .d2 {
    animation-delay: 0.52s;
  }
  .d3 {
    animation-delay: 0.64s;
  }
  .d4 {
    animation-delay: 0.85s;
  }
  .d5 {
    animation-delay: 1s;
  }
  .d6 {
    animation-delay: 1.15s;
  }
  .hero-phone {
    animation: phone 1.4s 0.75s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  }
}

/* Parallax: while the first screen scrolls away, the sky moves down at a
   fraction of the scroll speed. The image is 20% taller than its header, so
   the 15% drift never shows an edge. Scroll-driven animations only; other
   browsers keep a still sky. */
@keyframes parallax {
  to {
    translate: 0 15%;
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .sky img {
      top: -20%;
      height: 120%;
      animation: parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .hero .sky img {
      animation:
        sky 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both,
        parallax linear both;
      animation-timeline: auto, scroll(root);
      animation-range:
        normal,
        0 100vh;
    }
  }
}

/* ── Sections ── */
.section {
  padding-block: clamp(64px, 9vw, 112px) 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head h2 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
:lang(ja) .section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
}
.section-head p:not(.kicker) {
  max-width: 640px;
  color: var(--ink-soft);
}
.section-head .intro {
  font-size: 19px;
}
.section-head.split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.section-head.split > div {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head.split > p {
  flex: 1 1 300px;
  max-width: 440px;
}

/* ── Example week ── */
.week {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.swatch-open,
.segment-open {
  background: var(--open);
}
.swatch-blocked {
  background: var(--blocked);
}
.swatch-call,
.segment-call {
  background: var(--call);
}
.swatch-meeting,
.segment-meeting {
  background: var(--meeting);
}
.days {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.days li,
.hours {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.day {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.day small,
.hours {
  font-size: 12px;
  color: var(--ink-muted);
}
.bar {
  position: relative;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blocked);
}
.segment {
  position: absolute;
  inset-block: 0;
  left: var(--from);
  right: calc(100% - var(--to));
}
.hours {
  margin: 12px 0 0;
}
.hours > span:last-child {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 560px) {
  .days li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .day {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  .hours {
    grid-template-columns: minmax(0, 1fr);
  }
  .hours > span:first-child {
    display: none;
  }
}

/* ── Features ── */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
}
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px clamp(40px, 8vw, 120px);
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}
.feature:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-copy {
  flex: 1 1 380px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  font: 13px var(--mono);
  color: var(--accent);
}
.feature h3,
.card h3 {
  font-size: 15px;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.feature p {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
:lang(ja) .feature p {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
}
.feature .phone {
  flex: 0 1 300px;
}

/* ── Cards, privacy, closing ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.card p {
  font-size: 19px;
  color: var(--ink-soft);
}
#features,
#privacy {
  scroll-margin-top: 24px;
}
.privacy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 28px;
  background: var(--night) url(/img/sky-wide-1600.webp) 50% 100% / cover;
  color: #fff;
}
.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(20 20 64 / 0.85),
    rgb(20 20 64 / 0.45)
  );
}
.privacy > * {
  position: relative;
  max-width: 720px;
}
.privacy h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
:lang(ja) .privacy h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
}
.privacy p:not(.kicker) {
  font-size: 19px;
  color: var(--on-dark);
}
.privacy a {
  font-weight: 600;
}
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(72px, 10vw, 120px);
  text-align: center;
}
.closing-icon {
  width: 112px;
  height: 112px;
  border-radius: 22.37%;
  box-shadow: 0 18px 40px rgb(40 24 90 / 0.3);
}
.closing h2 {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
:lang(ja) .closing h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
}
.closing p {
  max-width: 560px;
  font-size: 19px;
  color: var(--ink-soft);
}

/* ── Support and privacy pages ── */
.page-header .sky::after {
  background:
    linear-gradient(90deg, rgb(20 20 64 / 0.7), rgb(20 20 64 / 0.25) 70%),
    linear-gradient(180deg, rgb(20 20 64 / 0.4), rgb(20 20 64 / 0) 160px);
}
.page-header {
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: clamp(24px, 5vw, 56px);
}
.page-title h1 {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.policy {
  max-width: 880px;
  padding-block: clamp(40px, 6vw, 64px) clamp(64px, 9vw, 96px);
}
.policy-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.policy-summary {
  font-size: 21px;
  line-height: 1.5;
}
.policy-meta {
  font-size: 14px;
  color: var(--ink-muted);
}
.policy-body section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.policy-body h2 {
  font-size: 26px;
}
.policy-body div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
}
.policy-body ol,
.policy-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.3em;
}
.policy-body ol {
  list-style: decimal;
}
.policy-body ul {
  list-style: disc;
}
.policy-body strong {
  color: var(--ink);
}
@media (max-width: 640px) {
  .policy-body section {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 32px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer-links a {
  display: inline-block;
  padding-block: 8px;
}
.languages {
  position: relative;
}
.languages summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.languages summary::-webkit-details-marker {
  display: none;
}
.languages summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.languages ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(40 24 90 / 0.18);
}
.languages a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.languages a:hover,
.languages a[aria-current="page"] {
  background: var(--ground);
}
.languages a[aria-current="page"] {
  font-weight: 600;
}
