/* ===================== Fonts ===================== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/67a15fdd.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/744630ba.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===================== Design tokens ===================== */
/* Colors mirror the live site's :root variables (Figma Variables export). */
:root {
  --teal-50: rgb(232,252,251);
  --teal-100: rgb(203,232,230);
  --teal-200: rgb(175,212,209);
  --teal-300: rgb(147,193,188);
  --teal-400: rgb(119,174,168);
  --teal-600: rgb(59,136,129);
  --teal-700: rgb(15,118,110);
  --teal-800: rgb(16,84,78);
  --teal-900: rgb(13,52,48);

  --border-primary: rgb(226,232,240);   /* darkgray-200 */
  --darkgray-400: rgb(148,163,184);
  --text-caption: rgb(148,163,184);     /* darkgray-400 */
  --text-secondary: rgb(100,116,139);   /* darkgray-500 */
  --text-primary: rgb(30,41,59);        /* darkgray-800 */
  --text-emphasis: rgb(0,0,0);          /* neutral-black */

  --background-primary: rgb(251,251,250); /* lightgray-50 */
  --background-secondary: rgb(243,244,246); /* lightgray-200 */
  --neutral-white: rgb(255,255,255);
  --text-link: var(--teal-700);
  --text-error: rgb(190,18,60);
}

/* ===================== Reset / base ===================== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.28px;
  color: var(--text-primary);
  background: var(--background-primary);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ===================== Header ===================== */
/* Inner content pages (this one included) always render the header in its
   "scrolled" state: solid white background, dark nav text. Only the
   homepage hero gets the transparent/overlay header treatment. */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2);
  box-shadow: inset 0 -1px 0 var(--border-primary);
}
.hdr-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hdr-logo { height: 44px; width: auto; display: block; }
.hdr-nav { display: flex; align-items: center; gap: 28px; }
.hdr-link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 220ms ease;
}
.hdr-link:hover { color: var(--teal-700); }
.hdr-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--teal-700);
  color: var(--neutral-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 220ms ease;
}
.hdr-cta:hover { background: var(--teal-800); }
.hdr-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hdr-mobile-menu {
  display: none;
  box-shadow: inset 0 1px 0 var(--border-primary);
  background: var(--neutral-white);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 2px;
}
.hdr-mobile-menu a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: inset 0 -1px 0 var(--border-primary);
}
.hdr-mobile-menu .hdr-mobile-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  background: var(--teal-700);
  color: var(--neutral-white);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
@media (max-width: 767px) {
  .hdr-nav { display: none; }
  .hdr-menu-btn { display: flex; }
  .hdr-mobile-menu.is-open { display: flex; }
}

/* ===================== Main content ===================== */
main { padding-top: 72px; } /* clears the fixed header */

.page-section { padding: clamp(56px,7vw,96px) 24px; }
.page-section-inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
h1 {
  margin: 0 0 24px;
  font-size: clamp(28px,3.6vw,40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-emphasis);
}
.body-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.body-text:last-child { margin-bottom: 0; }
.body-text a { font-weight: 600; color: inherit; }

/* ===================== Footer ===================== */
footer { background: var(--neutral-white); padding: clamp(24px,3vw,32px) 16px; }
.footer-card {
  max-width: 1360px;
  margin: 0 auto;
  background: var(--background-primary);
  box-shadow: inset 0 0 0 1px var(--border-primary);
  border-radius: 24px;
  color: var(--text-emphasis);
  padding: clamp(48px,6vw,72px) clamp(36px,5vw,56px) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 46px; width: auto; display: block; margin: 0 0 14px; }
.footer-col-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal-700);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-emphasis); }
.footer-links a:hover { color: var(--teal-800); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-emphasis); }
.footer-contact .small { font-size: 13px; color: var(--text-secondary); }
.footer-disclaimer { margin: 0 0 24px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.footer-bottom {
  padding-top: 24px;
  box-shadow: inset 0 1px 0 var(--border-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a { color: var(--text-secondary); }
.footer-bottom-links a:hover { color: var(--teal-800); }

/* ===================== Cookie banner ===================== */
#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(8,38,35,0.55);
  color: var(--teal-100);
  border-radius: 16px;
  padding: 20px 48px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(3,23,21,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.16);
}
#cookie-banner.is-hidden { display: none; }
#cookie-dismiss {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--teal-200);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#cookie-banner p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--teal-100); max-width: 380px; flex: 1 1 260px; }
#cookie-banner p a { color: var(--neutral-white); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.cookie-btn {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cookie-btn-accept { border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.92); color: var(--teal-900); }
.cookie-btn-accept:hover { background: var(--neutral-white); }
.cookie-btn-decline { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); color: var(--neutral-white); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.16); }

/* ===================== Inner-page hero / shared motion ===================== */
@keyframes arb-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes arb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arb-wipe { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes arb-slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes arb-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 480px) { .arb-hero-pad { padding-top: 88px !important; } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22,0.61,0.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 760ms ease, transform 760ms cubic-bezier(0.22,0.61,0.36,1); }
[data-stagger].is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--neutral-white) !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 4px var(--teal-700) !important;
}

/* ===================== Pricing: comparison table & photo band ===================== */
.arb-photo-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1px; background-color: rgba(255,255,255,0.55); background-clip: content-box; border-radius: 12px; }
.arb-pricing-hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; }
@media (max-width: 760px) { .arb-pricing-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 719px) {
  .arb-photo-band { grid-template-columns: 1fr; }
  .arb-photo-band > :first-child { border-radius: 12px 12px 0 0 !important; }
  .arb-photo-band > :last-child { border-radius: 0 0 12px 12px !important; }
  .arb-band-cap { font-size: 16px !important; }
}
.arb-cmp-head, .arb-cmp-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; }
@media (max-width: 719px) {
  .arb-cmp-head { display: none; }
  .arb-cmp-row { grid-template-columns: 1fr; }
  .arb-cmp-row > * { box-shadow: none !important; }
  .arb-cmp-row > .arb-cmp-topic { padding: 22px 20px 4px !important; font-size: 16px !important; }
  .arb-cmp-row > .arb-cmp-us { padding: 14px 20px 16px !important; }
  .arb-cmp-row > .arb-cmp-jp { padding: 14px 18px 16px !important; margin: 0 20px 18px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--teal-200) !important; }
  .arb-cmp-row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
  .arb-cmp-row > .arb-cmp-jp[data-label]::before { color: var(--teal-700); }
}

/* ===================== Why Japan: stat tickers & split rows ===================== */
.arb-q-ticker { display: grid; grid-template-columns: repeat(3, 1fr); }
.arb-q-ticker > * + * { padding-left: clamp(16px,2vw,28px); box-shadow: inset 1px 0 0 rgba(255,255,255,0.22); }
@media (max-width: 639px) {
  .arb-q-ticker { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .arb-q-ticker > :nth-child(odd) { padding-left: 0 !important; box-shadow: none !important; }
}
.arb-p-ticker { display: grid; grid-template-columns: repeat(3, 1fr); }
.arb-p-ticker > * + * { padding-left: clamp(16px,2vw,28px); box-shadow: inset 1px 0 0 rgba(255,255,255,0.22); }
@media (max-width: 639px) { .arb-p-ticker { grid-template-columns: 1fr; row-gap: 20px; } .arb-p-ticker > * + * { padding-left: 0 !important; box-shadow: none !important; } }
.arb-q-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (min-width: 860px) { .arb-q-split-narrow-photo { grid-template-columns: minmax(0,0.95fr) minmax(0,1.05fr) !important; } }
@media (max-width: 859px) { .arb-q-split { grid-template-columns: minmax(0,1fr); } }
.arb-spec-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
@media (max-width: 759px) { .arb-spec-grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } }

/* ===================== Trust & Safety: quote block & story photo ===================== */
.arb-cq { position: relative; overflow: hidden; min-height: clamp(280px,34vw,420px); display: flex; align-items: stretch; }
@media (max-width: 680px) {
  .arb-cq { display: block !important; min-height: auto !important; }
  .arb-cq-img { position: relative !important; inset: auto !important; aspect-ratio: 4 / 3; }
  .arb-cq-scrim { display: none !important; }
  .arb-cq-text { position: relative !important; max-width: none !important; padding: 28px 24px !important; background: var(--teal-50); }
}
@media (max-width: 640px) {
  .arb-story-photo-row { grid-template-columns: 1fr !important; }
  .arb-story-photo-row > div:first-child { text-align: left !important; margin-top: 12px; order: 2; }
  .arb-story-photo-row > div:last-child { order: 1; }
}

/* ===================== Apply form ===================== */
.arb-field { display: flex; flex-direction: column; gap: 8px; }
.arb-field label { display: flex; gap: 2px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.arb-field .arb-required { color: var(--text-error); }
.arb-field input[type="text"], .arb-field input[type="email"], .arb-field select {
  height: 48px; border-radius: 8px; border: none; box-shadow: inset 0 0 0 1px var(--border-primary);
  padding: 0 14px; font-size: 15px; color: var(--text-primary); background-color: var(--neutral-white);
  font-family: inherit;
}
/* Full-name / Email fields are a ported design-system FormField: 40px wrapper, 14px type. */
.arb-field-component label { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.arb-field-component .arb-required { font-size: 12px; font-weight: 600; }
.arb-field-component input[type="text"], .arb-field-component input[type="email"] {
  height: 40px; padding: 0 12px; font-size: 14px; font-weight: 400;
}
.arb-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.arb-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.arb-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--teal-700); }
.arb-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 8px;
  background: var(--teal-700); color: var(--neutral-white); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; width: 100%; white-space: nowrap;
}
.arb-btn-primary:hover { background: var(--teal-800); }
.arb-btn-primary:disabled { opacity: 0.6; cursor: default; }
#arb-apply-success { display: none; }
#arb-apply-success.is-visible { display: block; }

/* ===================== FAQ accordion ===================== */
.arb-faq-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 14px 16px; border: none; border-radius: 8px; background: none; color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
}
.arb-faq-cat:hover { background: var(--background-primary); color: var(--text-emphasis); }
.arb-faq-cat.is-active { background: var(--teal-800); color: var(--neutral-white); font-weight: 600; }
.arb-faq-cat.is-active:hover { background: var(--teal-800); }
.arb-faq-cat-count { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.arb-faq-cat.is-active .arb-faq-cat-count { color: var(--teal-200); }
.arb-faq-item { box-shadow: inset 0 -1px 0 var(--border-primary); }
.arb-faq-q {
  width: 100%; display: flex; gap: 20px; align-items: flex-start; justify-content: space-between;
  padding: 24px 0; background: none; border: none; text-align: left; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.arb-faq-q-text { flex: 1; font-size: clamp(17px,1.8vw,20px); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--text-emphasis); }
.arb-faq-icon {
  flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--background-secondary);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.arb-faq-item.is-open .arb-faq-icon { background: var(--teal-700); color: var(--neutral-white); }
.arb-faq-a { display: none; padding: 0 60px 26px 48px; animation: arb-fade-in 160ms ease both; }
.arb-faq-item.is-open .arb-faq-a { display: block; }
.arb-faq-a p:first-child { margin: 0 0 12px; font-size: 16px; line-height: 1.8; color: var(--text-secondary); text-wrap: pretty; }
.arb-faq-a p:last-child { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700); }
