:root {
  --ink: #172f38;
  --ink-soft: #526772;
  --accent: #07566a;
  --paper: #fff;
  --wash: #f2f6f7;
  --line: #dbe4e7;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bd7909; outline-offset: 5px; }
::selection { background: #cce7eb; color: var(--accent); }
.container { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 18px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding: 18px max(48px, calc((100vw - var(--max)) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 5px 24px #172f3808; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; line-height: 1.25; }
.brand-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: contain; background: white; }
.brand small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 10px; letter-spacing: .06em; font-weight: 500; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent); border-radius: 50%; font-size: 22px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 650; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.nav-contact { display: flex; align-items: center; gap: 20px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 5px; }
.header-back { display: flex; align-items: center; gap: 16px; color: var(--accent); text-decoration: none; font-size: 12px; white-space: nowrap; }
.header-back:hover { text-decoration: underline; }
.menu-button { display: none; }
.hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; column-gap: 28px; padding-top: 64px; }
.eyebrow { display: flex; align-items: center; gap: 20px; margin: 0 0 25px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.eyebrow > span { color: var(--ink-soft); font-size: 10px; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(38px, 4.6vw, 65px); font-weight: 750; line-height: 1.45; letter-spacing: -.06em; }
.hero h1 > span { color: var(--accent); }
.hero-lead { margin: 28px 0 32px; color: var(--ink-soft); font-size: 16px; line-height: 2.05; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; padding: 14px 22px; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 650; transition: background .2s, transform .2s; }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: #113e4a; transform: translateY(-2px); }
.hero-art { position: relative; margin: 0; padding: 40px 28px 20px; }
.hero-art img { width: 100%; height: auto; }
.art-coordinate { position: absolute; top: 10px; right: 28px; color: #788c93; font-size: 9px; letter-spacing: .15em; }
.hero-art figcaption { margin-top: 22px; color: var(--ink-soft); text-align: center; font-size: 12px; letter-spacing: .12em; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 58px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); }
.hero-bottom a { text-decoration: none; }
.hero-bottom a span { margin-left: 20px; color: var(--accent); }
.section-pad { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
h2 { margin: 0; font-size: clamp(29px, 3.3vw, 44px); font-weight: 700; line-height: 1.55; letter-spacing: -.045em; }
.section-intro { margin: 0 0 6px; color: var(--ink-soft); font-size: 13px; }
.apps-section { background: var(--wash); }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; }
.app-card { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; }
.app-visual { position: relative; display: grid; place-items: center; height: 300px; overflow: hidden; }
.visual-label { position: absolute; top: 24px; left: 28px; font-size: 9px; font-weight: 650; letter-spacing: .17em; }
.visual-index { position: absolute; bottom: 14px; right: 24px; font-size: 64px; font-weight: 200; line-height: 1; opacity: .16; }
.driving-visual { color: #dbeaf3; background: #152f47; background-image: radial-gradient(ellipse at top right, #375f83, transparent 70%); }
.driving-visual img { width: 196px; height: 196px; border-radius: 40px; box-shadow: 0 20px 35px #081c3a66; transform: rotate(-6deg); }
.calc-visual { color: var(--accent); background-color: #e3efed; background-image: linear-gradient(#07566a08 1px, transparent 1px), linear-gradient(90deg,#07566a08 1px,transparent 1px); background-size: 28px 28px; }
.engineering-art { position: absolute; width: 280px; height: 210px; top: 53px; right: -12px; opacity: .55; transform: rotate(-9deg); }
.calc-wordmark { position: absolute; left: 42px; bottom: 52px; font-size: 43px; letter-spacing: -.055em; line-height: 1.02; font-weight: 800; }
.calc-wordmark span { display: block; }
.app-card-body { flex: 1; display: flex; flex-direction: column; padding: 32px; }
.app-category { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 650; }
.app-card h3 { margin: 0; font-size: clamp(21px,2.2vw,27px); line-height: 1.45; letter-spacing: -.025em; }
.app-subtitle { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.app-tagline { margin: 20px 0 12px; font-size: 15px; font-weight: 650; }
.app-description { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 2; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.app-tags li { padding: 4px 10px; border-radius: 4px; color: var(--accent); background: var(--wash); font-size: 10px; }
.app-notice { margin: 0 0 28px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 650; text-decoration: none; }
.card-link span { font-size: 20px; }
.card-link:hover { text-decoration: underline; }
.app-card-actions { margin-top: auto; }
.appstore-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 8px; color: white; background: var(--ink); text-decoration: none; line-height: 1.3; transition: background .2s, transform .2s; }
.appstore-link svg { flex: none; width: 20px; height: 24px; fill: currentColor; }
.appstore-link strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.appstore-link small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .1em; opacity: .8; }
.appstore-link:hover { background: #000; transform: translateY(-2px); }
.page-hero .appstore-link { margin-top: 28px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-copy > p { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; line-height: 2.1; }
.studio-data { margin: 38px 0 0; border-top: 1px solid var(--line); }
.studio-data > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.studio-data dt { color: var(--ink-soft); }
.studio-data dd { margin: 0; }
.documents-section { border-top: 1px solid var(--line); }
.document-directory { border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.directory-row h3 { margin: 0; font-size: 18px; }
.directory-row nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.directory-row a { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.directory-row a span { margin-left: 6px; color: var(--accent); }
.directory-row a:hover { color: var(--accent); text-decoration: underline; }
.contact-section { color: white; background: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-section .eyebrow, .contact-section .eyebrow > span { color: #c6e0e4; }
.contact-section h2 { font-size: clamp(29px,3vw,40px); }
.contact-section p { font-size: 13px; color: #d9eaed; }
.contact-options { align-self: center; }
.contact-options a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid #ffffff40; text-decoration: none; }
.contact-options a:first-child { border-top: 1px solid #ffffff40; }
.contact-options a:hover strong { text-decoration: underline; }
.contact-options small { display: block; margin-bottom: 5px; color: #d9eaed; font-size: 11px; }
.contact-options strong { font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.contact-options > p { margin: 22px 0 0; font-size: 11px; }
.site-footer { background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-block: 36px; }
.footer-brand { font-size: 17px; }
.footer-brand .brand-logo { width: 46px; height: 46px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 11px; color: var(--ink-soft); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { color: var(--ink-soft); font-size: 10px; }
/* Shared layouts for app information and existing document pages. */
.page-hero { max-width: 900px; margin: auto; padding: 70px 28px 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-size: clamp(34px,5vw,56px); line-height: 1.5; letter-spacing: -.045em; }
.page-hero h1 .app-subtitle { margin-top: 10px; font-size: 18px; letter-spacing: 0; }
.page-hero p:not(.eyebrow) { max-width: 640px; margin-top: 24px; margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.document { max-width: 900px; margin: auto; padding: 48px 28px 90px; }
.document section { margin-bottom: 45px; }
.document h2 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 21px; }
.document h3 { font-size: 17px; }
.document p, .document li { color: var(--ink-soft); font-size: 14px; }
.document a { color: var(--accent); }
.document .updated { font-size: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; font-size: 14px; font-weight: 650; cursor: pointer; }
.faq details p { padding-bottom: 15px; }
.support-contact { padding: 28px; border-radius: 8px; background: var(--wash); }
.info-links { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.info-links a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.info-links a:hover { text-decoration: underline; }
.app-page .site-footer, .legacy-page .site-footer { border-top: 1px solid var(--line); }
.site-footer > .footer-brand, .site-footer > nav, .site-footer > p { margin: 20px 28px; }
.reveal.visible { animation: rise-in .65s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 1050px) {
  .site-nav { gap: 18px; font-size: 11px; }
  .container { width: calc(100% - 64px); }
  .site-header { padding-inline: 32px; }
  .brand { font-size: 18px; }
  .about-grid, .contact-grid { gap: 48px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 88px; }
  .site-header { min-height: 82px; padding-block: 12px; }
  .brand-logo { width: 46px; height: 46px; }
  .menu-button { display: grid; gap: 6px; align-content: center; justify-items: center; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); background: white; }
  .menu-button span:not(.sr-only) { width: 20px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 32px 24px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 16px 22px #172f3810; font-size: 14px; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 14px 0; }
  .site-nav .nav-contact { justify-content: space-between; margin-top: 6px; padding-inline: 14px; }
  .hero { padding-top: 40px; gap: 10px; }
  .hero h1 { font-size: clamp(31px,4.8vw,42px); }
  .hero-lead { font-size: 13px; }
  .hero-art { padding-inline: 0; }
  .art-coordinate { right: 0; }
  .hero-art figcaption { font-size: 10px; }
  .section-pad { padding-block: 72px; }
  .section-heading { align-items: start; gap: 28px; }
  .app-card-body { padding: 24px; }
  .apps-grid { gap: 20px; }
  .app-visual { height: 240px; }
  .driving-visual img { width: 150px; height: 150px; border-radius: 31px; }
  .calc-wordmark { left: 24px; font-size: 35px; bottom: 42px; }
  .engineering-art { right: -40px; width: 210px; top: 22px; }
  .directory-row { grid-template-columns: 1fr; gap: 18px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { row-gap: 22px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .site-nav { padding-inline: 20px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand small { font-size: 9px; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .hero h1 { font-size: clamp(31px,8.7vw,46px); }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero-lead { font-size: 14px; }
  .desktop-break { display: none; }
  .hero-art { width: min(290px,80%); justify-self: center; margin-top: 32px; padding-top: 25px; }
  .hero-art figcaption { margin-top: 12px; }
  .art-coordinate { font-size: 8px; }
  .hero-bottom { margin-top: 32px; gap: 18px; font-size: 9px; }
  .hero-bottom a { white-space: nowrap; }
  .hero-bottom a span { margin-left: 8px; }
  .section-heading { flex-direction: column; margin-bottom: 30px; gap: 20px; }
  .section-intro { font-size: 12px; }
  .apps-grid { grid-template-columns: 1fr; gap: 28px; }
  .app-visual { height: 260px; }
  .driving-visual img { width: 170px; height: 170px; }
  .calc-wordmark { left: 36px; font-size: 43px; }
  .engineering-art { right: 0; width: 250px; }
  .directory-row nav { flex-direction: column; gap: 16px; }
  .directory-row a { display: flex; justify-content: space-between; }
  .contact-options strong { font-size: 17px; }
  .footer-inner { flex-direction: column; align-items: start; }
  .site-footer nav { gap: 20px; }
  .page-hero { padding-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
