/* Tuntun landing page (English, desktop 1440 and mobile). Values come from Figma node 48:2 and brand-brief.md section 11. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400 700; font-display: swap; src: url("fonts/Lora-wght.woff2") format("woff2"); }

:root {
  --ink: #141413;
  --cream: #faf9f5;
  --gray-300: #e8e6dc;
  --gray-500: #b0aea5;
  --muted: #5e5d59;
  --accent: #d97757;
  --accent-strong: #c15f3c;
  --gov: #0b3d91;
  --gov-dark: #08285e;
  --line: rgba(20, 20, 19, 0.12);
  --head: "Poppins", Arial, sans-serif;
  --body: "Lora", Georgia, serif;
  --mock: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.06), 0 8px 24px rgba(20, 20, 19, 0.08);
  --px: 120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

a { color: inherit; }

p { margin: 0; }

/* Layout */

.section {
  display: flex;
  flex-direction: column;
  padding-inline: var(--px);
}

.eyebrow {
  font: 600 16px/1.2 var(--head);
  color: var(--muted);
}

.h2 {
  margin: 0;
  font: 400 44px/1.18 var(--body);
  letter-spacing: -0.44px;
  max-width: 900px;
}

.lead {
  font: 400 20px/1.5 var(--body);
  color: var(--muted);
  max-width: 720px;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font: 600 16px/1 var(--head);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 18px;
}

.btn:focus-visible,
.nav a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding-inline: var(--px);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font: 600 27px/1 var(--head);
  letter-spacing: -0.54px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font: 500 16px/1 var(--head);
  color: var(--muted);
  text-decoration: none;
}

/* Hero */

.hero {
  align-items: center;
  gap: 28px;
  padding-top: 96px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font: 400 64px/1.12 var(--body);
  letter-spacing: -0.64px;
  max-width: 980px;
}

.hero .lead {
  font-size: 22px;
  max-width: 720px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.install > p {
  font: 400 16px/1.4 var(--body);
  color: var(--muted);
}

.steps {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  text-align: left;
}

.step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 250px;
  font: 400 16px/1.45 var(--body);
  color: var(--muted);
}

.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--gray-300);
  color: var(--ink);
  font: 600 14px/1 var(--head);
}

/* Mock JPN portal (shared by hero and pain point) */

.mock {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1.12px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 9px 27px rgba(20, 20, 19, 0.08), 0 1px 2px rgba(20, 20, 19, 0.06);
  font-family: var(--mock);
  color: #1f2937;
  text-align: left;
}

.mock-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 45px;
  padding-left: 17px;
  background: var(--gray-300);
}

.mock-bar img { width: 11px; height: 11px; }

.mock-url {
  margin-left: 12px;
  padding: 4px 16px;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 14.5px;
  white-space: nowrap;
}

.gov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 67px;
  padding-inline: 35px;
  background: var(--gov);
  color: #fff;
}

.gov-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  font-size: 16.8px;
}

.gov-brand img { width: 29px; height: 29px; }

.gov-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15.7px;
}

.gov-nav .login {
  padding: 6px 13px;
  border: 1.12px solid #fff;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 700;
}

.gov-foot {
  display: flex;
  align-items: center;
  height: 45px;
  padding-inline: 35px;
  background: var(--gov-dark);
  color: #fff;
  font-size: 13.4px;
}

/* Hero product shot */

.product {
  margin: 40px 0 0;
  width: 1120px;
  max-width: 100%;
}

.product-body {
  position: relative;
  display: grid;
  grid-template-columns: 672px 340px;
  gap: 36px;
  padding: 35px 37px 40px 35px;
}

.product-body h3 {
  margin: 0 0 12px;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 700;
}

.crumb { color: #4b5563; font-size: 14.5px; }

.intro { color: #4b5563; font-size: 15.7px; line-height: 1.5; margin-bottom: 26px !important; }

.panel {
  border: 1.12px solid #d1d5db;
  border-radius: 9px;
  background: #f9fafb;
  padding: 24px 27px 28px;
}

.panel h4 {
  margin: 0 0 22px;
  font-size: 17.9px;
  font-weight: 700;
}

.panel label {
  display: block;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 700;
}

.field {
  height: 40px;
  margin-bottom: 20px;
  border: 1.12px solid #d1d5db;
  border-radius: 4.5px;
  background: #fff;
}

.mock-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 25px;
  border-radius: 7px;
  background: var(--gov);
  color: #fff;
  font-size: 15.7px;
  font-weight: 700;
}

.quick-links a {
  display: block;
  margin-bottom: 15px;
  color: #1d4ed8;
  font-size: 15.7px;
  text-decoration: underline;
  white-space: nowrap;
}

.target { position: relative; display: inline-block; }

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 1px var(--cream));
}

.corner.tl { top: -7px; left: -7px; }
.corner.tr { top: -7px; right: -7px; }
.corner.bl { bottom: -7px; left: -7px; }
.corner.br { bottom: -7px; right: -7px; }

.target .bubble {
  top: -22px;
  right: calc(100% + 30px);
}

.bubble {
  position: absolute;
  z-index: 2;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 4px 6px rgba(20, 20, 19, 0.1), 0 1px 1px rgba(20, 20, 19, 0.1);
  font: 600 20px/1.4 var(--head);
  color: var(--ink);
  white-space: nowrap;
}

.dock {
  position: absolute;
  top: 335px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 72px;
  border-radius: 0 13px 13px 0;
  background: var(--ink);
}

.dock img { width: 20px; height: 20px; }

/* Pain point */

.pain { gap: 20px; padding-top: 160px; }

.pain-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 20px;
}

.dense {
  position: relative;
  flex: 0 0 760px;
  height: 471px;
  overflow: hidden;
  background: #fff;
  border: 0.76px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  font-family: var(--mock);
  color: #1f2937;
  text-align: left;
}

.dense .mock-bar { height: 30px; padding-left: 11px; gap: 14px; }

.dense .mock-bar img { width: 8px; height: 8px; }

.dense .mock-url { font-size: 10px; padding: 3px 11px; margin-left: 5px; }

.dense .gov-head { height: 46px; padding-inline: 24px; }

.dense .gov-brand { font-size: 11.4px; gap: 10px; }

.dense .gov-brand img { width: 20px; height: 20px; }

.dense .gov-nav { gap: 13px; font-size: 9.1px; }

.notice {
  padding: 7px 24px;
  background: #f5c542;
  font-size: 9.1px;
  color: #1f2937;
}

.dense-body { padding: 16px 24px; }

.dense-body h3 { margin: 0 0 14px; font-size: 16.7px; font-weight: 700; }

.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 0.76px solid #d1d5db;
  font-size: 9.1px;
  color: #4b5563;
}

.tabs .on { color: var(--gov); font-weight: 700; }

.dense-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.dense-cols h4 { margin: 0 0 9px; font-size: 9.9px; font-weight: 700; }

.dense-cols a {
  display: block;
  margin-bottom: 7px;
  color: #1d4ed8;
  font-size: 9.1px;
  text-decoration: underline;
  white-space: nowrap;
}

.dense-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  height: 30px;
  padding-inline: 24px;
  background: var(--gov-dark);
  color: #fff;
  font-size: 9.1px;
}

.dense-path {
  position: absolute;
  left: 11.9%;
  top: 48.2%;
  width: 70%;
  height: 17.9%;
}

.dense-cursor {
  position: absolute;
  left: 82.1%;
  top: 67.3%;
  width: 14px;
  height: 21px;
}

.pain-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 400px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.card h3 {
  margin: 0 0 8px;
  font: 600 20px/1.2 var(--head);
}

.card p {
  font: 400 18px/1.45 var(--body);
  color: var(--muted);
}

.pain-close {
  margin-top: 20px;
  font: 400 24px/1.4 var(--body);
  max-width: 900px;
}

/* What Tuntun does */

.what { gap: 20px; padding-top: 160px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 282px);
  gap: 24px;
  padding-top: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-300);
}

.tile-text { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 28px; }

.tile-text .n { font: 600 16px/1 var(--head); color: var(--muted); }

.tile-text h3 { margin: 0; font: 600 20px/1.2 var(--head); }

.tile-text p { font: 400 18px/1.45 var(--body); color: var(--muted); }

.speak {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: 500 16px/1 var(--head);
  white-space: nowrap;
}

.speak .done { width: 44px; height: 44px; }

.wave { display: flex; align-items: center; gap: 3px; }

.wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.tile-quote {
  position: absolute;
  top: 40px;
  left: 16px;
  margin: 0;
  font: 400 16px/1.2 var(--body);
  color: var(--ink);
}

.tile-card {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 250px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 8px 12px rgba(20, 20, 19, 0.08), 0 1px 1px rgba(20, 20, 19, 0.06);
}

.tile-card .k { font: 600 16px/1.2 var(--head); color: var(--muted); }
.tile-card .big { font: 600 28px/1.2 var(--head); }
.tile-card .src { font: 400 16px/1.2 var(--body); color: var(--muted); }

.mini-blue {
  position: absolute;
  left: 30px;
  top: 36px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--gov);
  color: #fff;
  font: 700 14px/1 var(--mock);
  white-space: nowrap;
}

.mini-paper {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 250px;
  height: 160px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
}

.mini-link {
  position: absolute;
  left: 36px;
  color: #1d4ed8;
  font: 400 14px/1 var(--mock);
  text-decoration: underline;
  white-space: nowrap;
}

.bubble-small {
  position: absolute;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 4px 6px rgba(20, 20, 19, 0.1), 0 1px 1px rgba(20, 20, 19, 0.1);
  font: 600 20px/1.4 var(--head);
  white-space: nowrap;
}

/* Trust */

.trust { gap: 20px; padding-top: 160px; }

.columns {
  display: grid;
  grid-template-columns: repeat(3, 384px);
  gap: 24px;
  padding-top: 20px;
}

.column { display: flex; flex-direction: column; gap: 12px; }

.column .visual-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.column h3 { margin: 0; font: 600 20px/1.2 var(--head); }

.column p { font: 400 18px/1.45 var(--body); color: var(--muted); }

.source-chip {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gray-300);
  font: 400 16px/1 var(--body);
}

.redact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 16px/1 var(--mock);
}

.redact .k { font: 600 16px/1 var(--head); color: var(--muted); }

.built {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  font-size: 18px;
}

.built strong { font: 600 18px/1.2 var(--head); }

.built span { font: 400 18px/1.45 var(--body); color: var(--muted); max-width: 900px; }

/* Final CTA */

.final {
  align-items: center;
  gap: 24px;
  padding-top: 160px;
  padding-bottom: 120px;
  text-align: center;
}

.final .lockup { font-size: 34px; letter-spacing: -0.68px; gap: 11px; }

.final .lockup img { width: 36px; height: 36px; }

.final h2 {
  margin: 0;
  font: 400 56px/1.12 var(--body);
  letter-spacing: -0.56px;
  max-width: 900px;
}

.final .sub { font: 400 20px/1.4 var(--body); color: var(--muted); }

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--px) 48px;
  border-top: 1px solid var(--line);
}

.footer .lockup { font-size: 19px; letter-spacing: -0.38px; gap: 6px; }

.footer .lockup img { width: 20px; height: 20px; }

.footer a.repo {
  font: 400 16px/1 var(--body);
  color: var(--muted);
}

/* Narrow screens */

@media (max-width: 1260px) {
  .section, .nav, .footer { --px: 48px; }
  .tiles { grid-template-columns: repeat(2, 282px); }
  .pain-row, .columns { flex-wrap: wrap; }
  .columns { grid-template-columns: repeat(auto-fit, minmax(300px, 384px)); }
}

@media (max-width: 800px) {
  :root { --px: 24px; }
  .nav { height: 72px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 40px; line-height: 1.15; }
  .hero .lead { font-size: 18px; }
  .steps { flex-direction: column; }
  .product-body { display: block; padding: 24px; }
  .product-body > * + * { margin-top: 20px; }
  .panel { margin-top: 20px; }
  .dock, .bubble { display: none; }
  .pain, .what, .trust { padding-top: 96px; }
  .h2 { font-size: 32px; }
  .pain-row { flex-direction: column; }
  .dense { flex: none; width: 100%; }
  .pain-cards { flex: none; width: 100%; }
  .tiles { grid-template-columns: 1fr; }
  .tile { width: 100%; }
  .columns { grid-template-columns: 1fr; }
  .column { width: 100%; }
  .final { padding-top: 96px; padding-bottom: 72px; }
  .final h2 { font-size: 36px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
