/* Kanezo — landing page. Dark look; brass (#B08D57) and navy (#14213D) from the app's brand. */

:root {
  --bg: #070b16;
  --bg-2: #0b1121;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --text: #eef1f8;
  --muted: #8d96ab;
  --brass: #d6ad6b;
  --brass-2: #f3d59d;
  --brass-deep: #b08d57;
  --blue: #5a74ff;
  --green: #4fbf8b;
  --red: #f07178;

  --sans: "Geist", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 20px;
  --grad: linear-gradient(135deg, var(--brass-2) 0%, var(--brass) 45%, #c98a4a 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ja"] body { line-height: 1.85; }
:lang(ja) { line-break: strict; }
:lang(ja) :is(h1, h2, h3, .highlights span) { word-break: keep-all; overflow-wrap: anywhere; }

::selection { background: rgba(214, 173, 107, .35); }

img { display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { line-height: 1.35; letter-spacing: -.01em; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }
html[lang="ja"] h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }

p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px;
  background: var(--grad); color: #1a1205; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

h1 > span { display: block; }
[hidden] { display: none !important; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20; padding-block: 12px;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, backdrop-filter .25s;
}
/* Once the page scrolls, the whole header strip gets a solid glass band so content never shows around the bar. */
.nav.scrolled {
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav.scrolled .nav-inner { box-shadow: none; }
.nav-inner {
  display: flex; align-items: center; gap: 28px; height: 60px;
  padding: 0 10px 0 20px;
  background: rgba(11, 17, 33, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand .seal { flex: none; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 6px 18px -6px rgba(176, 141, 87, .7); }
.brand .wordmark { width: auto; height: 15px; }
.footer .brand .seal { width: 24px; height: 24px; box-shadow: none; }
.footer .brand .wordmark { height: 12px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--muted);
  padding: 7px 12px; border-radius: 9px; transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .menu-only { display: none; }

.menu-btn {
  display: none; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.nav.open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn .l2 { opacity: 0; }
.nav.open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }

.lang {
  display: flex; padding: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.lang button {
  font: 500 .74rem var(--mono); letter-spacing: .06em;
  padding: 5px 10px; border: 0; border-radius: 7px;
  background: none; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--border-2) inset; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem var(--sans);
  padding: 13px 22px; border: 0; border-radius: 12px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease, filter .15s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: none; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn-brass {
  background: var(--grad); color: #1a1205;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 30px -10px rgba(214, 173, 107, .75);
}
.btn-brass:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 14px 40px -10px rgba(214, 173, 107, .9); }
.btn-navy { background: var(--text); color: var(--bg); }
.btn-navy:hover { background: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border-2) inset; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btn .arrow { transition: transform .15s; }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(3px); } }

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px);
  margin-top: -85px; padding-top: calc(85px + clamp(32px, min(8vw, 7vh), 110px));
}
/* Grid lines + glows */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 45% at 72% 38%, rgba(214, 173, 107, .22), transparent 70%),
    radial-gradient(35% 40% at 20% 20%, rgba(90, 116, 255, .18), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }

.stamp {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font: 500 .8rem var(--mono); letter-spacing: .04em;
  color: var(--text);
  padding: 6px 14px 6px 8px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px;
  backdrop-filter: blur(6px);
}
.stamp .dot { position: relative; width: 20px; height: 20px; border-radius: 50%; background: rgba(79, 191, 139, .15); }
.stamp .dot::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; } }

.lede { margin-top: 24px; font-size: 1.15rem; color: var(--muted); max-width: 33em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-cta .btn { padding: 14px 24px; }
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.how-cta { margin-top: 36px; display: flex; justify-content: center; }
.how-cta .btn { padding: 14px 24px; }
.form-note { flex-basis: 100%; font-size: .86rem; color: var(--muted); }
.form-note.ok { color: var(--green); }
.form-note.bad { color: var(--red); }

input, textarea {
  width: 100%;
  font: inherit; color: var(--text);
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5f6880; }
input:focus, textarea:focus { outline: none; border-color: rgba(214, 173, 107, .7); box-shadow: 0 0 0 4px rgba(214, 173, 107, .12); }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Highlights strip */
.highlights {
  list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  overflow: hidden;
}
.highlights li { display: flex; align-items: center; gap: 12px; padding: 20px 22px; font-size: .95rem; font-weight: 500; }
.highlights li + li { border-left: 1px solid var(--border); }
.highlights svg {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px;
  color: var(--brass-2); background: rgba(214, 173, 107, .1); border: 1px solid rgba(214, 173, 107, .22);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- App screens ---------- */

/* The phone frames and app screens live in phones.css. */

/* Two phones: the Home screen in front, the Ledger tucked behind on the left. */
.hero-art {
  --front: min(clamp(220px, calc((100vh - 180px) * .47), 290px), 62vw);
  position: relative; justify-self: center;
  width: calc(var(--front) * 1.5); max-width: 100%;
  padding-bottom: 28px;
}
.hero-art::before {
  content: ""; position: absolute; inset: 10% -10% 0 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(214, 173, 107, .35), transparent);
  filter: blur(30px);
}
.hero-art .screen-front { --w: var(--front); margin-left: auto; z-index: 1; }
.hero-art .screen-back {
  --w: calc(var(--front) * .82);
  position: absolute; left: 0; bottom: 0;
  transform: rotate(-6deg); opacity: .92;
}

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

.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.band { background: var(--bg-2); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-lede { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-top: clamp(56px, 8vw, 96px);
}
.feature.flip .feature-copy { order: 2; }
.feature-num {
  display: inline-block; margin-bottom: 18px;
  font: 500 .78rem var(--mono); color: var(--brass-2);
  padding: 4px 10px; border-radius: 7px;
  background: rgba(214, 173, 107, .1); border: 1px solid rgba(214, 173, 107, .25);
}
.feature-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.03em; }
.feature-copy p { margin-top: 16px; color: var(--muted); }

/* Glowing panel the phone sits on */
.feature-art {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(28px, 5vw, 56px) 20px;
  border: 1px solid var(--border); border-radius: 28px;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(214, 173, 107, .16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.feature-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.feature-art.cool { background:
    radial-gradient(60% 50% at 50% 45%, rgba(90, 116, 255, .18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; color: #d3d8e4; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(79, 191, 139, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fbf8b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(79, 191, 139, .3);
}

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: border-color .2s, transform .2s;
}
@media (hover: hover) { .steps li:hover { border-color: rgba(214, 173, 107, .4); transform: translateY(-2px); } }
.steps li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 173, 107, .7), transparent);
}
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  font: 600 .9rem var(--mono); color: #1a1205;
  background: var(--grad); border-radius: 11px;
  box-shadow: 0 8px 24px -8px rgba(214, 173, 107, .7);
}
.steps p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px;
  transition: border-color .2s, background-color .2s;
}
.faq details:hover { border-color: var(--border-2); }
.faq details[open] { background: var(--surface-2); border-color: rgba(214, 173, 107, .35); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 0; font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  font: 500 1.1rem/1 var(--mono); color: var(--brass);
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq-more { margin-top: 20px; }
.faq-more a { color: var(--brass-2); font-weight: 500; text-decoration: none; text-underline-offset: 3px; }
.faq-more a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.form { margin-top: 36px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.err { display: none; margin-top: 6px; font-size: .86rem; color: var(--red); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot .form-note { flex: 1 1 200px; }

/* ---------- Legal pages ---------- */

.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-meta { margin-top: 12px; font: 500 .85rem var(--mono); color: var(--muted); }
.legal h1 + .legal-meta + p { margin-top: 28px; }
.legal h2 { margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 1.35rem; letter-spacing: -.02em; }
.legal h3 { margin: 22px 0 6px; font-size: 1.02rem; color: var(--brass-2); letter-spacing: 0; }
.legal p, .legal li { color: #c3c9d6; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--brass); }
.legal ul + p { margin-top: 16px; }
.legal .faq { margin-top: 0; }

.support-card { display: grid; gap: 20px; margin-top: 32px; }
.legal .support-card h2 { margin: 0 0 8px; padding: 0; border: 0; }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.legal .support-actions a { color: inherit; text-decoration: none; }
.legal .support-actions .btn-brass { color: #1a1205; }
.support-mail { font: 500 .9rem var(--mono); }
.legal strong { color: var(--text); }
.legal a { color: var(--brass-2); text-underline-offset: 3px; }

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

.footer { border-top: 1px solid var(--border); padding-block: 36px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .muted { color: var(--muted); font-size: .88rem; margin-right: auto; }
.footer a { color: var(--brass-2); font-size: .9rem; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights li:nth-child(3) { border-left: 0; }
  .highlights li:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 860px) {
  .nav { padding-inline: 12px; }
  .nav-inner { position: relative; gap: 10px; }
  .menu-btn { display: grid; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px; margin: 0;
    background: rgba(11, 17, 33, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-2); border-radius: 16px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; color: var(--text); }
  .lang { margin-left: auto; }
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .hero-art { margin-top: 12px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .lang button { min-height: 34px; padding-inline: 11px; }
  .footer a { padding: 8px 0; }
  .back-btn { width: 40px; height: 40px; padding: 0; }
  .back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-inner { gap: 12px; padding-left: 14px; }
  .nav-cta { display: none; }
  .nav-links .menu-only { display: block; }
  .row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .highlights { grid-template-columns: 1fr; }
  .highlights li + li { border-left: 0; border-top: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .steps li { transition: none; }
  .stamp .dot::after { animation: none; }
}
