/* NoriTap website. Colors follow the app (lib/ui/theme.dart). */
:root {
  --bg: #F6F8F5;
  --surface: #FFFFFF;
  --tint: #ECF3EF;
  --mint: #DCEDE6;
  --ink: #1C2421;
  --muted: #5B6661;
  --line: #DFE6E1;
  --accent: #146C63;
  --accent-deep: #0E4F48;
  --accent-ink: #FFFFFF;
  --shadow: 0 30px 60px -28px rgba(14, 79, 72, .45), 0 10px 24px -12px rgba(28, 36, 33, .18);
  --radius: 22px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Songti SC", "Songti TC", "Noto Serif CJK JP", "Noto Serif JP", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang SC", "PingFang TC", "Yu Gothic", "Noto Sans CJK JP", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: .01em; }
:lang(en) h2 { letter-spacing: -.01em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.brand span { display: flex; flex-direction: column; font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand small { font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); background: var(--tint); }

/* Hero */
.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 72px 0 88px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: var(--accent-deep); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5.6vw, 64px); letter-spacing: .01em; }
:lang(en) .hero h1 { letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 17px; margin: 22px 0 0; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 176px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.2; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-weight: 500; font-size: 12px; opacity: .72; }
.store.is-soon { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.points li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }

.hero-art { position: relative; height: 600px; }
.glow { position: absolute; inset: 8% 0 4% 6%; border-radius: 48% 52% 46% 54%; background: radial-gradient(circle at 40% 40%, #CFE6DD, #E7F1EC 58%, transparent 72%); }
.phone { margin: 0; }
.phone-screen { position: relative; border-radius: 38px; padding: 9px; background: #12201C; box-shadow: var(--shadow); }
.phone-screen::before { content: ""; position: absolute; z-index: 1; top: 19px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #0B1310; }
.phone-screen img { width: 100%; height: auto; aspect-ratio: 570 / 1240; border-radius: 30px; background: var(--bg); }
.phone-front { position: absolute; width: 265px; left: 10%; bottom: 0; }
.phone-back { position: absolute; width: 235px; right: 4%; top: 0; transform: rotate(4deg); opacity: .96; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-last { padding-bottom: 104px; }
.section h2 { text-align: center; }

.features { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 1px 0 var(--line); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 28px; height: 28px; color: var(--accent); }
.feature .icon { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--tint); }

.screens { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.screens li { text-align: center; }
.screens p { margin: 18px 0 0; font-weight: 600; font-size: 15px; }
.phone-sm .phone-screen { border-radius: 30px; padding: 7px; }
.phone-sm .phone-screen::before { top: 15px; height: 15px; }
.phone-sm .phone-screen img { border-radius: 24px; }

.privacy-band { display: flex; gap: 28px; align-items: flex-start; padding: 44px; border-radius: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); }
.privacy-band h2 { text-align: left; color: inherit; }
.privacy-band p { margin: 12px 0 0; opacity: .9; max-width: 40em; }
.privacy-band .icon-lg { width: 56px; height: 56px; flex: none; color: inherit; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.privacy-band .more { color: inherit; border-bottom: 1px solid rgba(255, 255, 255, .5); }

.notes { margin: 32px 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 2px var(--accent); }

/* Documents: privacy, support */
.doc { padding: 64px 0 96px; }
.doc h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc h2 { text-align: left; font-size: 24px; margin: 48px 0 8px; }
.doc h3 { font-size: 18px; margin: 32px 0 6px; }
.doc p { margin: 8px 0; }
.doc .lead { margin-top: 8px; }
.updated { color: var(--muted); font-size: 14px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.mail { font-weight: 600; font-size: 18px; }

/* Footer */
.foot { background: #E9EFEB; color: var(--muted); font-size: 14px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; padding: 40px 0 36px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.foot-brand img { border-radius: 7px; }
.foot-links, .langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover, .langs a[aria-current] { color: var(--accent); }
.langs a[aria-current] { font-weight: 600; }
.disclaimer { grid-column: 1 / -1; margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
.copy { grid-column: 1 / -1; margin: 0; font-size: 13px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .hero-art { height: 520px; max-width: 460px; width: 100%; margin-inline: auto; }
  .phone-front { width: 230px; left: 4%; }
  .phone-back { width: 205px; right: 2%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a:first-child { display: none; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .brand small { display: none; }
  .section { padding: 64px 0; }
  .hero-art { height: 440px; }
  .phone-front { width: 196px; }
  .phone-back { width: 172px; }
  .features { grid-template-columns: 1fr; }
  .screens { gap: 20px; }
  .privacy-band { flex-direction: column; padding: 32px 24px; }
  .store { min-width: 0; flex: 1 1 150px; }
}
