/* Home additions retain the existing UIdeck palette and section layout. */
:root { --nn-surface: #08080c; --nn-ink: rgba(255,255,255,.85); --nn-line: rgba(255,255,255,.15); }
html[data-theme="light"] { --nn-surface: #ffffff; --nn-ink: #334155; --nn-line: #dbe3ef; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 100px; }
a:focus-visible, button:focus-visible, .navbar-toggler:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 5px; }
.ud-main-btn, .navbar-toggler, .ud-theme-toggle, .nn-text-link { min-height: 48px; }
.ud-main-btn { display: inline-flex; align-items: center; justify-content: center; }
.navbar-toggler { min-width: 48px; }
.ud-hero-content { text-align: left; }
.ud-hero-content .ud-hero-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.3; text-wrap: balance; word-break: keep-all; margin-bottom: 22px; }
.ud-hero-content .ud-hero-desc { font-size: 18px; line-height: 1.8; margin: 0 0 26px; }
html[lang="ja"] .ud-hero-content .ud-hero-desc { word-break: normal; word-break: auto-phrase; line-break: strict; overflow-wrap: normal; text-wrap: pretty; }
.ud-hero-kicker { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.ud-hero-buttons { justify-content: flex-start; margin-bottom: 8px; }
.ud-hero-proof { margin-top: 20px; gap: 10px 18px; }
.ud-hero-proof li { font-size: 16px; }
.nn-offer { margin-bottom: 12px; }
.nn-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--nn-ink); text-decoration: underline; text-underline-offset: 5px; }
.nn-text-link:hover { color: var(--primary-color); }
html[data-theme="light"] :is(.nn-device-note, .nn-download-note) a { color: #3056d3; }
html[data-theme="dark"] .nn-text-link:is(:hover, :focus-visible),
html[data-theme="dark"] :is(.nn-device-note, .nn-download-note) a { color: #a7bcff; }
.nn-devices { padding: 80px 0; background: var(--nn-surface); border-block: 1px solid var(--nn-line); }
.nn-device-card { display: flex; flex-direction: column; position: relative; height: 100%; padding: 42px 24px 24px; border: 1px solid var(--nn-line); border-radius: 16px; color: var(--nn-ink); background: var(--dark-card); }
.nn-device-card:hover, .nn-device-card.is-detected { border-color: var(--primary-color); box-shadow: inset 0 0 0 1px var(--primary-color); }
.nn-device-card > i { font-size: 30px; margin-bottom: 20px; color: var(--primary-color); }
.nn-device-card h3 { font-size: 23px; margin-bottom: 12px; }
.nn-device-card p { font-size: 16px; line-height: 1.7; margin-bottom: 24px; color: var(--nn-ink); }
.nn-device-steps { display: flex; justify-content: space-between; margin-top: auto; font-size: 16px; font-weight: 600; }
.nn-device-hint { position: absolute; top: 12px; right: 16px; font-size: 14px; font-weight: 600; }
.nn-device-note { font-size: 16px; line-height: 1.8; margin-top: 20px; color: var(--nn-ink); }
.ud-single-feature, .ud-howto-step { height: 100%; margin-bottom: 0; }
.ud-howto .text-center > .nn-text-link { margin-top: 26px; }
.ud-feature-content .ud-feature-desc { font-size: 16px !important; line-height: 1.8 !important; }
.ud-howto-desc, .ud-pricing-note, .ud-faq-body, .ud-widget-desc, .ud-cta-badges li, .ud-download p { font-size: 16px; line-height: 1.8; }
.ud-pricing .ud-single-pricing { display: flex; flex-direction: column; height: 100%; margin: 0; padding-top: 42px !important; }
.ud-pricing-header { min-height: 244px; }
.ud-single-pricing .ud-pricing-header h3 { font-size: 22px !important; }
.ud-single-pricing .ud-pricing-subtitle, .ud-single-pricing .ud-pricing-body li { font-size: 16px !important; }
.ud-single-pricing .ud-pricing-price .ud-price-period { color: var(--nn-ink); }
.ud-pricing .ud-single-pricing.active { transform: none; }
.ud-pricing-footer { margin-top: auto; }
.ud-pricing .ud-pricing-note { margin-top: 24px; }
/* Grand-opening band: white on #3056d3 is 6.2:1; the band text keeps >= 4.5:1 on its tint in both themes. */
.nn-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 10px 18px 10px 10px; border: 1px solid var(--primary-color); border-radius: 16px; background: rgba(48,86,211,.18); color: var(--nn-ink); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.nn-promo-badge, .ud-single-pricing .ud-pricing-price .ud-pricing-eyebrow { padding: 4px 14px; border-radius: 999px; background: var(--primary-color); color: #ffffff; font-weight: 700; letter-spacing: 0; }
.nn-promo-badge { font-size: 16px; }
.ud-single-pricing .ud-pricing-price .ud-pricing-eyebrow { display: table; margin-bottom: 10px; font-size: 14px; }
.ud-pricing .nn-promo { margin: 0 auto 44px; }
html[data-theme="light"] .nn-promo { background: #e8edfb; color: #1f2937 !important; }
.ud-single-faq .ud-faq-btn { min-height: 64px; font-size: 17px; line-height: 1.6; align-items: flex-start; }
.ud-single-faq .ud-faq-body { font-size: 16px; line-height: 1.9; }
.nn-download-note a { text-decoration: underline; text-underline-offset: 4px; }
body .nn-contact, .ud-theme-btn, .ud-lang-toggle { min-height: 48px; }
.ud-theme-btn { width: 38px; }
.ud-footer-logo img, .navbar-brand img { height: auto; }
.ud-download .wow { visibility: visible !important; opacity: 1 !important; }
.ud-hero-visual::before { display: none; }
html[data-theme="light"] .ud-hero-visual { background: transparent !important; box-shadow: none !important; }
.nn-device-preview { width: min(100%, 350px); margin: 0 auto; padding: 34px 28px; border: 8px solid var(--nn-line); border-radius: 36px; background: var(--nn-surface); text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.nn-device-preview::before { content: ""; display: block; width: 64px; height: 5px; border-radius: 8px; margin: -14px auto 28px; background: var(--nn-line); }
.nn-preview-brand { font-size: 24px; color: var(--heading-color); font-weight: 700; margin-bottom: 16px; }
.nn-device-preview p { font-size: 16px; line-height: 1.8; }
.nn-preview-path { padding: 18px 0; border-bottom: 1px solid var(--nn-line); }
.nn-preview-path strong { display: block; color: var(--heading-color); margin-bottom: 6px; }
.nn-preview-note { margin-top: 20px; }
/* Expanded header between lg and xl: logo + 6~7 menu items + language/theme/login/start must fit 936px. */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav .nav-item { padding: 0 5px; }
  .navbar-nav .nav-item > a { padding-inline: 3px; font-size: 14px; white-space: nowrap; }
  .navbar-btn { gap: 4px; }
  .navbar-btn .ud-main-btn { padding-inline: 12px; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar-nav .nav-item { padding: 0 8px; }
}
@media (max-width: 767px) {
  .ud-hero-content, .ud-hero-visual { text-align: left; }
  .ud-hero-content .ud-hero-title { font-size: 30px; }
  .ud-hero-content .ud-hero-desc { font-size: 16px; }
  .ud-hero-buttons { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .ud-hero-buttons .ud-main-btn { width: 100%; max-width: none; margin: 0; }
  .ud-hero-proof { display: grid; justify-content: start; }
  .nn-devices { padding: 60px 0; }
  .nn-device-card { padding-top: 34px; }
  .ud-pricing-header { min-height: auto; }
  .ud-hero-visual { margin-top: 4px; }
  .ud-download-actions .ud-main-btn { white-space: normal; }
  .ud-secondary-download p { overflow-wrap: anywhere; }
  .ud-section-title h2, .ud-cta-title { word-break: keep-all; overflow-wrap: anywhere; }
}
@media (max-width: 575px) {
  .ud-header .navbar-brand { width: 64px; }
  .ud-header .navbar-brand img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ud-main-btn:hover, .ud-single-feature:hover, .ud-howto-step:hover, .ud-single-pricing:hover { transform: none !important; }
}

/* Open-event highlight: warm ribbon so the launch price reads first (brand blue-indigo; white on #3056d3/#4f46e5 >= 5.6:1). */
.nn-promo { border: 0 !important; background: linear-gradient(90deg, #eef2ff, #e0e7ff) !important; color: #1e3a8a !important; box-shadow: 0 8px 24px rgba(48,86,211,.18); font-weight: 600; }
.nn-promo-badge, .ud-single-pricing .ud-pricing-price .ud-pricing-eyebrow { background: linear-gradient(90deg, #3056d3, #4f46e5) !important; color: #ffffff !important; font-weight: 800; }
.nn-promo-badge::before { content: "\1F389\00a0"; }
html[data-theme="dark"] .nn-promo { background: linear-gradient(90deg, rgba(48,86,211,.32), rgba(79,70,229,.26)) !important; color: #ffedd5 !important; }

.nn-no-app-message { display: block; margin-bottom: 8px; color: var(--heading-color); font-size: 1.2em; line-height: 1.5; }
.ud-pricing .nn-pricing-notes { list-style: none; display: grid; gap: 6px; width: 100%; margin: 20px auto 0; padding: 0; text-align: left; color: var(--nn-ink); font-size: 14px; line-height: 1.5; }
.nn-pricing-notes li { display: flex; align-items: baseline; gap: 8px; }
.nn-pricing-notes li > i { flex: 0 0 14px; }
.nn-android-device { display: flex; flex-direction: column; gap: 10px; }
.nn-android-device .nn-device-card { height: auto; flex: 1; }
.nn-device-install-links { display: grid; gap: 8px; }
.nn-install-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--nn-line); border-radius: 8px; color: var(--nn-ink); background: var(--nn-surface); font-size: 16px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.nn-install-link svg { flex-shrink: 0; }
.nn-install-link:hover { color: var(--heading-color); border-color: var(--primary-color); }
.nn-android-options { margin-top: 24px; padding: 24px; border: 1px solid var(--nn-line); border-radius: 16px; background: var(--nn-surface); color: var(--nn-ink); }
.nn-android-options h3 { font-size: 22px; line-height: 1.5; margin-bottom: 10px; }
.nn-android-options p { margin-bottom: 16px; color: var(--nn-ink); font-size: 16px; line-height: 1.6; }
.nn-install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ud-faq-body a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .nn-install-grid { grid-template-columns: 1fr; }
  .nn-android-options { padding: 18px; }
}

/* Faint 64px grid behind the hero, fading out downward (owner request; ref yue.to). */
.ud-hero { isolation: isolate; }
.ud-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(#000 0%, transparent 75%); mask-image: linear-gradient(#000 0%, transparent 75%); }
html[data-theme="light"] .ud-hero::before { background-image: linear-gradient(to right, rgba(9,9,11,.05) 1px, transparent 1px), linear-gradient(rgba(9,9,11,.05) 1px, transparent 1px); }
