:root {
  --bg: #e5f5fe;
  --title: #222222;
  --body: #111111;
  --line: rgba(17, 17, 17, 0.14);
  --accent: #00A9F4;
  --link: #0b6fb8;
  --serif: Georgia, 'Times New Roman', serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--body); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 100; border-bottom: 1px solid var(--line); transition: background 0.2s ease, border-color 0.2s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.header-left { display: inline-flex; align-items: center; gap: 16px; }
.menu-toggle { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; width: 26px; height: 18px; display: inline-flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--title); border-radius: 2px; transition: transform 0.28s ease, opacity 0.2s ease; }
.brand { display: inline-flex; align-items: baseline; }
.brand-aw { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1; letter-spacing: -0.01em; color: var(--title); }

/* ---------- Menu: dimmed backdrop + left slide-in drawer (brand palette) ---------- */
.site-menu { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.site-menu-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 380px); background: var(--bg); box-shadow: 2px 0 30px rgba(0, 0, 0, 0.15); padding: clamp(92px, 13vh, 124px) 0 32px; transform: translateX(-100%); transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1); overflow-y: auto; }
.site-menu-nav { display: flex; flex-direction: column; }
.site-menu-nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.6vw, 1.6rem); letter-spacing: -0.01em; color: var(--title); padding: 17px 30px; transition: color 0.2s ease, background 0.2s ease; }
.site-menu-nav a + a { border-top: 1px solid rgba(17, 17, 17, 0.12); }
.site-menu-nav a:hover { color: var(--accent); background: rgba(0, 169, 244, 0.07); }
.site-menu-nav .chev { font-size: 1.5rem; opacity: 0.5; transition: opacity 0.2s ease, transform 0.2s ease; }
.site-menu-nav a:hover .chev { opacity: 1; transform: translateX(3px); }
body.menu-open { overflow: hidden; }
body.menu-open .site-menu { opacity: 1; visibility: visible; }
body.menu-open .site-menu-panel { transform: translateX(0); }
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero with drifting sky-and-cloud gradient ---------- */
.hero { position: relative; overflow: hidden; background-color: var(--bg); min-height: clamp(440px, 70vh, 720px); display: flex; align-items: center; padding: clamp(56px, 8vw, 104px) 0; }
.hero::before, .hero::after { content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none; }
.hero::before { background: radial-gradient(38% 48% at 22% 32%, rgba(255,255,255,0.90), transparent 72%), radial-gradient(46% 56% at 78% 26%, rgba(199,231,251,0.85), transparent 72%), radial-gradient(50% 60% at 62% 78%, rgba(160,210,245,0.60), transparent 72%); filter: blur(48px); animation: heroDriftA 8s ease-in-out infinite alternate; }
.hero::after { background: radial-gradient(42% 50% at 70% 60%, rgba(255,255,255,0.70), transparent 72%), radial-gradient(44% 54% at 28% 70%, rgba(176,224,251,0.70), transparent 72%), radial-gradient(40% 46% at 50% 16%, rgba(120,185,235,0.45), transparent 72%); filter: blur(56px); animation: heroDriftB 11s ease-in-out infinite alternate; }
@keyframes heroDriftA { 0% { transform: translate3d(-6%, -4%, 0) scale(1.06); } 100% { transform: translate3d(6%, 5%, 0) scale(1.2); } }
@keyframes heroDriftB { 0% { transform: translate3d(5%, 3%, 0) scale(1.16); } 100% { transform: translate3d(-6%, -5%, 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-headline { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--title); }
.hero-subtext { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--body); max-width: 720px; margin: 0 0 32px; }

/* ---------- Hero contact arrow ---------- */
.hero-cta { display: inline-flex; align-items: center; gap: 12px; font-family: 'Inter', sans-serif; font-size: 1.02rem; font-weight: 600; color: var(--title); transition: color 0.2s ease; }
.hero-cta .arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--title); border-radius: 50%; font-size: 1.15rem; line-height: 1; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.hero-cta:hover { color: var(--accent); }
.hero-cta:hover .arrow { background: var(--accent); border-color: var(--accent); color: #ffffff; transform: translateX(2px); }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-block; background: var(--title); color: #ffffff; font-weight: 600; font-size: 15px; padding: 15px 30px; border-radius: 2px; transition: background 0.2s ease; }
.btn-primary:hover { background: #000000; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-brand { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1; letter-spacing: -0.01em; color: var(--title); white-space: nowrap; }
.footer-social { display: inline-flex; align-items: center; gap: 12px; }
.footer-social a { display: inline-flex; color: var(--title); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 24px; height: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; color: var(--body); }
.footer-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: rgba(17, 17, 17, 0.6); max-width: 760px; }
.footer-nav { display: flex; align-items: center; gap: 22px; }
.footer-nav a { font-size: 13px; color: var(--body); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { color: var(--body); }
.legal .container { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 9vw, 104px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--title); margin: 0 0 6px; }
.legal .updated { font-size: 14px; color: var(--body); margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; font-weight: 600; color: var(--title); margin: 44px 0 12px; letter-spacing: -0.2px; }
.legal h3 { font-size: 1.05rem; font-weight: 600; color: var(--title); margin: 26px 0 6px; }
.legal p { font-size: 1.02rem; line-height: 1.65; margin: 0 0 14px; color: var(--body); }
.legal ul { padding-left: 22px; margin: 12px 0 18px; }
.legal ol { padding-left: 22px; margin: 12px 0 22px; }
.legal-toc li { margin-bottom: 6px; }
.legal li { font-size: 1.02rem; line-height: 1.6; margin-bottom: 8px; color: var(--body); }
.legal a { color: var(--link); text-decoration: underline; }
.legal a:hover { color: #084e80; }
.legal .lead { font-size: 1.18rem; line-height: 1.6; color: var(--body); margin-bottom: 22px; }
.legal .callout { background: #e5f5fe; border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 4px; margin: 0 0 28px; font-size: 0.96rem; line-height: 1.55; color: var(--body); }
.placeholder-note { background: #fff6e6; border: 1px dashed #d9a441; color: #7a5a16; padding: 1px 7px; border-radius: 3px; font-size: 0.9em; }

/* ---------- Contact form ---------- */
.contact { padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 10vw, 120px); }
.contact-inner { max-width: 640px; }
.contact h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--title); margin: 0 0 10px; }
.contact-intro { margin: 0 0 32px; }
.contact-intro p { font-size: 1.02rem; line-height: 1.6; color: var(--body); margin: 0 0 12px; }
.contact-intro p:last-child { margin-bottom: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font-family: 'Inter', -apple-system, sans-serif; font-size: 1rem; color: var(--body); background: #ffffff; border: 1px solid rgba(17, 17, 17, 0.18); border-radius: 8px; padding: 16px 18px; transition: border-color 0.2s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b7785; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23222222'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px; padding-right: 46px; }
.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-family: 'Inter', -apple-system, sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--title); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .btn-primary { align-self: flex-start; border: 0; cursor: pointer; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Homepage routes ---------- */
.routes { padding: 32px 0 clamp(72px, 13vw, 150px); }
.routes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.route { border: 1px solid var(--line); border-radius: 8px; padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
.route h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--title); text-align: left; }
.route p { font-size: 1.05rem; line-height: 1.6; color: var(--body); margin: 0 0 28px; }
.route-foot { margin-top: auto; }
.muted-note { font-size: 0.95rem; color: var(--body); line-height: 1.5; }

/* ---------- App store badges (official artwork) ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-badge { display: inline-flex; transition: opacity 0.2s ease; }
.store-badge:hover { opacity: 0.82; }
.store-badge img { display: block; width: auto; }
/* Google's official badge has built-in padding, so it runs taller to match Apple's visible height */
.store-badge--apple img { height: 44px; }
.store-badge--google img { height: 66px; margin: -11px 0; }

/* ---------- Brand lockup ---------- */
.lockup { display: inline-block; text-align: left; border-left: 2px solid var(--title); padding-left: 18px; line-height: 1.04; }
.lockup .l1, .lockup .l2 { display: block; }
.route h2.lockup { line-height: 1.04; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) { .routes-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .container { padding: 0 22px; } .header-inner { height: 70px; } .brand-aw { font-size: 24px; } }

/* ---------- White background on non-homepage pages ---------- */
body.page-white { background: #ffffff; }
