/* Colours come from the app: icon blue #174A94, beam amber #FFC857. */
:root {
  color-scheme: light dark;
  --night: #123a75; --amber: #ffc857;
  --paper: #f4f5f7; --ink: #16191f; --muted: #3d434f; --rule: #d5d9e0; --link: #174a94;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #10141b; --ink: #eef0f4; --muted: #c3c8d2; --rule: #2a303b; --link: #a9c6ff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-wrap: anywhere; }
::selection { background: var(--amber); color: #16191f; }
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
h1:lang(ja), h2:lang(ja) { line-break: strict; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1.5rem; }
p { margin: 0; max-width: 62ch; }

.hero { background: var(--night); color: #fff; overflow: hidden; }
nav, .hero-body, main > section, footer { width: min(68rem, 100% - 3rem); margin-inline: auto; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 2rem; }
.brand { display: flex; gap: .6rem; align-items: center; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px #ffffff55; }
.langs { display: flex; gap: 1.1rem; font-size: .95rem; }
.langs a { color: #dbe7ff; text-decoration: none; padding-block: .35rem; }
.langs a[aria-current] { color: #fff; border-bottom: 2px solid var(--amber); }

.hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 5rem; align-items: center; padding-block: 3.5rem 0; }
.beams { position: absolute; left: -8%; bottom: -2%; width: 85%; pointer-events: none; fill: none; stroke: url(#light); stroke-width: 34; stroke-linecap: round; transform-origin: left center; }
.near { stop-color: var(--amber); stop-opacity: .34; }
.far { stop-color: var(--amber); stop-opacity: .02; }
@media (prefers-reduced-motion: no-preference) {
  .beams { animation: switch-on 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes switch-on { from { transform: scaleX(.35); opacity: .04; } }
}
.pitch { position: relative; padding-bottom: 6rem; }
.lead { margin-top: 2rem; font-size: 1.2rem; color: #e3ecff; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.actions a { border-radius: 999px; padding: .8rem 1.5rem; font-weight: 700; text-decoration: none; border: 2px solid var(--amber); }
.primary { background: var(--amber); color: #1b1400; }
.secondary { color: #fff; }
.actions a:hover { filter: brightness(1.08); }
.secondary:hover { background: #ffffff1a; }
.req { margin-top: 1.5rem; font-size: .9rem; color: #c9dbff; }

.phone { display: block; width: 100%; max-width: 19rem; height: auto; justify-self: center; border-radius: 1.75rem; border: 7px solid #0b1424; box-shadow: 0 24px 60px -20px #00000080; }
/* the phone rises out of the bottom edge of the hero */
.hero .phone { position: relative; align-self: end; margin-bottom: -5rem; border-bottom: 0; border-radius: 1.75rem 1.75rem 0 0; }

main > section { padding-block: clamp(6rem, 11vw, 9rem); border-bottom: 1px solid var(--rule); }
main > section:last-child { border-bottom: 0; }
main p { color: var(--muted); font-size: 1.1rem; }
.plans { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 5rem; align-items: center; }
.tries { list-style: none; padding: 0; margin: 3rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.tries a { display: block; padding: .8rem 1.4rem; border: 2px solid var(--link); border-radius: .75rem; font-weight: 700; text-decoration: none; }
.tries a:hover { background: var(--link); color: var(--paper); }
main .note { font-size: .95rem; }
.features { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); column-gap: 5rem; }
.features li { border-top: 1px solid var(--rule); padding-block: 1.75rem; font-size: 1.2rem; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-block: 3rem 4rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); }
footer p { width: 100%; max-width: none; }
footer div { display: flex; flex-wrap: wrap; gap: 1.5rem; }

@media (max-width: 46rem) {
  .hero-body, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero-body { gap: 2rem; padding-top: 2rem; }
  .pitch { padding-bottom: 2rem; }
  .plans { gap: 4rem; }
  .hero .phone { margin-bottom: -8rem; max-width: 16rem; }
  main > section:first-child { padding-top: 6rem; }
  .beams { width: 150%; bottom: 18%; }
}

/* privacy policy, generated from PRIVACY.md */
.doc { width: min(46rem, 100% - 3rem); margin-inline: auto; padding-block: 3rem 6rem; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.5rem; }
.doc section { margin-top: 5rem; }
.doc h3 { font-size: 1.15rem; margin: 2.5rem 0 .75rem; }
.doc p, .doc ul { margin: 0 0 1rem; max-width: none; color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; color: var(--muted); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--rule); }
