/* SenseiSnap website. Colours follow the app (app/src/main/java/app/senseisnap/ui/DesignSystem.kt). */
@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito.woff") format("woff");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --surface-2: #F2ECE1;
  --text: #1E2230;
  --muted: #5C6170;
  --primary: #2E3B6E;
  --on-primary: #FFFFFF;
  --primary-soft: #E6EAF7;
  --honey: #F2BC5E;
  --on-honey: #3A2604;
  --honey-text: #8A5512;
  --honey-soft: #FDEDCB;
  --line: #E9E1D3;
  --shadow: 0 18px 40px -18px rgba(46, 59, 110, .35);
  --radius: 22px;
  --heading: "Nunito", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10131C;
    --surface: #191D29;
    --surface-2: #1E2230;
    --text: #ECEEF4;
    --muted: #A9AFBF;
    --primary: #B6C3F4;
    --on-primary: #16214A;
    --primary-soft: #29345E;
    --honey: #F2BC5E;
    --on-honey: #402A04;
    --honey-text: #F2BC5E;
    --honey-soft: #453414;
    --line: #2B3143;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--body);
  overflow-wrap: break-word;
}
:lang(ja) { line-break: strict; word-break: auto-phrase; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.2; letter-spacing: -.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: var(--body); letter-spacing: 0; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; min-height: 64px; padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; order: 1; margin-right: auto; }
.lang-switch { order: 2; }
.main-nav { order: 3; flex-basis: 100%; min-width: 0; }
@media (min-width: 64rem) {
  .main-nav { order: 2; flex-basis: auto; margin: 0 auto; }
  .lang-switch { order: 3; }
  .brand { margin-right: 0; }
}
.brand img { width: 150px; height: auto; display: block; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.site-header nav a:hover { background: var(--surface-2); }
.lang-switch a { font-size: .85rem; font-weight: 600; color: var(--muted); }
.lang-switch a[aria-current="page"] { background: var(--primary-soft); color: var(--text); }
.main-nav ul { overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav li:first-child a { padding-left: 0; }
@media (min-width: 64rem) { .main-nav li:first-child a { padding-left: .7rem; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.3rem; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.button:hover { border-color: var(--primary); }
.button.primary { background: var(--honey); border-color: var(--honey); color: var(--on-honey); }
.button.primary:hover { filter: brightness(.97); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding: 2.5rem 0 3.5rem; background:
  radial-gradient(60rem 30rem at 85% 10%, var(--honey-soft), transparent 60%),
  radial-gradient(40rem 26rem at 0% 100%, var(--primary-soft), transparent 70%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; } .hero { padding: 4.5rem 0 5rem; } }
.kicker { margin: 0 0 .75rem; color: var(--honey-text); font-weight: 700; font-size: .95rem; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 900; }
:lang(ja) .hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4.8vw, 3.1rem); line-height: 1.3; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.hero .lead { margin: 1.2rem 0 0; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 1.5rem 0 0; padding: .45rem .9rem; border-radius: 999px; background: var(--primary-soft); font-weight: 700; font-size: .95rem; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px color-mix(in srgb, var(--honey) 30%, transparent); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: 1rem 0 0; color: var(--muted); font-weight: 600; }
.facts li::before { content: "✓"; color: var(--honey-text); margin-right: .35rem; font-weight: 800; }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 26rem; }
.phone { display: block; width: 15rem; border-radius: 30px; border: 7px solid #1E2230; background: #1E2230; box-shadow: var(--shadow); }
.hero-art .back { transform: translateX(-3.6rem) rotate(-5deg); }
.hero-art .front { position: absolute; top: 2.5rem; transform: translateX(4.2rem) rotate(4deg); }
.hero-owl { position: absolute; z-index: 2; left: 50%; bottom: -1.5rem; width: 7rem; transform: translateX(-9.5rem); filter: drop-shadow(0 10px 14px rgba(0,0,0,.15)); }
@media (max-width: 30rem) {
  .phone { width: 12.5rem; }
  .hero-art { min-height: 22rem; }
  .hero-art .back { transform: translateX(-2.6rem) rotate(-5deg); }
  .hero-art .front { transform: translateX(3rem) rotate(4deg); }
  .hero-owl { width: 5.5rem; transform: translateX(-8rem); }
}

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--surface-2); }
.section-title { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.step { position: relative; text-align: center; padding-top: 1rem; }
.step img { width: 7.5rem; height: 7.5rem; }
.step-number { position: absolute; top: 1rem; left: 1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-family: var(--heading); }
.feature { border-top: 4px solid var(--honey); }

/* Screenshot gallery */
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.5rem 0 1rem; scrollbar-color: var(--line) transparent; }
.gallery ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0 max(1rem, calc((100vw - 72rem) / 2 + 2rem)); width: max-content; }
.gallery li { scroll-snap-align: center; }
.gallery figure { margin: 0; width: 13.5rem; }
.gallery .phone { width: 100%; border-width: 6px; border-radius: 26px; }
.gallery figcaption { margin-top: .8rem; font-weight: 700; text-align: center; font-size: .95rem; }

/* Languages */
.chips, .legend { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; font-weight: 600; border: 1.5px solid var(--line); background: var(--surface); }
.chip.both { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); }
.chip.ai { border-style: dashed; }
.legend .chip { font-size: .85rem; }

/* AI notice */
.notice { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--honey-soft); border-radius: var(--radius); padding: 1.5rem; }
.notice img { flex: none; width: 5rem; height: 5rem; }
.notice h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.notice p { margin: .3rem 0 0; }
@media (max-width: 30rem) { .notice { flex-direction: column; } }

/* Legal documents */
.doc { max-width: 48rem; padding-top: 2rem; padding-bottom: 4rem; }
.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; margin: .5rem 0 1rem; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin: .3rem 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); border-radius: 5px; padding: .05em .3em; }
.doc .note { background: var(--honey-soft); border-radius: 14px; padding: .9rem 1.1rem; margin: 0 0 1rem; }
.doc .note p { margin: 0; }
.doc nav.langs { color: var(--muted); font-size: .95rem; }
.doc nav.langs a, .doc nav.langs span { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .1rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.center { text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-owl { width: 4rem; height: 4rem; }
.footer-title { font-size: 1rem; margin: 0 0 .5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: .3rem 0; min-height: 36px; }
.copyright { margin-top: 2rem; }

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
