@import url('/design.css');

/* ==========================================================================
   PureMini — Apple Hardware Minimalist Design System
   Pure White · Anodized Titanium Gray · Hairline Borders · Apple Blue Accent
   ========================================================================== */

:root { --container-pad: max(6%, calc((100% - 1140px) / 2)); }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-anchor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Noto Sans SC', 'Helvetica Neue', system-ui, sans-serif;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'tnum' 1;
  overflow-anchor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a.button {
  cursor: pointer;
}

button:disabled {
  opacity: 1; background: var(--bg); color: #55555c;
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

/* Buttons */
button,
.button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button:hover:not(:disabled),
.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.22);
}

button.secondary,
.secondary {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}

button.secondary:hover:not(:disabled),
.secondary:hover {
  background: #ebebef;
  color: var(--ink);
  box-shadow: none;
  transform: translateY(-1px);
}

.small {
  padding: 8px 18px;
  font-size: 13px;
}

.full {
  width: 100%;
}

/* Announcement Bar */
.announcement {
  text-align: center;
  background: var(--surface-alt);
  color: var(--ink-secondary);
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line);
}

.announcement span {
  color: var(--subtle);
  margin-left: 16px;
}

/* Header & Navigation */
header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px var(--container-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-text span {
  font-size: 12px;
  font-weight: 400;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

nav,
.nav-end {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}

.nav-end {
  gap: 14px;
}

nav a {
  color: var(--ink-secondary);
  transition: color 160ms ease;
}

nav a:hover,
.primary-links a:hover,
#account-link:hover {
  color: var(--accent);
}

#account-link {
  color: var(--ink-secondary);
  font-size: 13px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.primary-links {
  display: none;
}

.mobile-menu {
  display: none;
}

/* Custom Language Menu */
.language-control {
  position: relative;
  display: block;
  flex-shrink: 0;
  color: var(--ink);
}

#language-toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 12px;
  min-height: 36px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
}

#language-toggle:hover {
  background: var(--surface-alt);
  border-color: var(--line-strong);
  transform: none;
  box-shadow: none;
}

#language-toggle:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.language-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--subtle);
  border-bottom: 1.5px solid var(--subtle);
  transform: rotate(45deg);
  margin: -3px 2px 0 4px;
  transition: transform 160ms ease;
}

#language-toggle[aria-expanded='true'] .language-chevron {
  transform: rotate(225deg);
  margin-top: 2px;
}

#language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 164px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 30;
}

#language-menu[hidden] {
  display: none;
}

#language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  min-height: 38px;
  background: transparent;
  color: var(--ink);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  box-shadow: none;
  transform: none;
}

#language-menu button:hover,
#language-menu button:focus-visible {
  background: var(--surface-alt);
  color: var(--accent);
  box-shadow: none;
  transform: none;
}

#language-menu button[aria-checked='true'] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.language-check {
  visibility: hidden;
  margin-left: 14px;
}

#language-menu button[aria-checked='true'] .language-check {
  visibility: visible;
}

/* Typography */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 18px 0 22px;
  color: var(--ink);
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 18px;
  color: var(--ink);
}

h3 {
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 10px 0 10px;
  color: var(--ink);
}

p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.hero-title-line {
  white-space: nowrap;
}

html[lang='en'] .hero-title-line,
html[lang='vi'] .hero-title-line {
  white-space: normal;
}

html:not([lang='zh-CN']) nav {
  gap: 14px;
  font-size: 12px;
}

html:not([lang='zh-CN']) .hero h1 {
  font-size: clamp(34px, 4.1vw, 58px);
  letter-spacing: -0.03em;
}

/* Homepage Hero */
.hero {
  background: #ffffff;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 68px var(--container-pad);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero p {
  max-width: 440px;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-price {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-price strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-foot {
  font-size: 12px;
  display: flex;
  gap: 20px;
  color: var(--subtle);
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Mac mini Anodized Aluminum Visual */
.visual {
  height: 440px;
  position: relative;
  
}








.float {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 15px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--subtle);
}

.float b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.float.location {
  left: 0;
  bottom: 24px;
}

.float.status {
  right: -6px;
  top: 28px;
}


.visual .product-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.visual .product-photo img {
  width: 100%;
  max-width: 470px;
  height: auto;
  object-fit: contain;
  transform: none;
  mix-blend-mode: multiply;
  filter: none;
}

/* Hardware Spec Strip (#machine) */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px var(--container-pad);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.spec-strip > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 4px 12px;
  border-right: 1px solid var(--line);
}

.spec-strip > div:last-child {
  border-right: 0;
}

.spec-strip b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.spec-strip span {
  font-size: 12px;
  color: var(--subtle);
}

/* Content Sections */
section.content {
  padding: 96px var(--container-pad);
  background: var(--surface);
}

section.content.plans-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 390px;
  font-size: 14px;
}

.center {
  text-align: center;
}

.center .eyebrow {
  justify-content: center;
}

.center p {
  max-width: 560px;
  margin-inline: auto;
}

/* Features & Steps */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.features article {
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
}

.features p {
  font-size: 14px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.steps article {
  padding: 26px 24px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.steps h3 {
  font-size: 18px;
  margin-top: 0;
}

.steps p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Apple Segmented Control Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.05);
  width: max-content;
  max-width: 100%;
  margin: 24px auto;
  padding: 4px;
  border-radius: var(--radius-pill);
}

.tabs button {
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  box-shadow: none;
  transform: none;
}

.tabs button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.tabs button.active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-weight: 600;
}

/* Pricing & Plan Cards */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.plans:has(> .plan:only-child) {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.plan {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform 240ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 240ms ease, border-color 240ms ease;
}

#plan-cards > .plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#plan-cards > .plan > h3 {
  padding-right: 76px;
  margin-top: 4px;
}

#plan-cards > .plan > p {
  min-height: 48px;
  font-size: 14px;
  line-height: 1.7;
}

#plan-cards > .plan > ul {
  flex: 1;
}

#plan-cards > .plan > button {
  margin-top: auto;
  min-height: 46px;
}

.plan.plan-unavailable {
  background: var(--surface-subtle);
  border-color: var(--line);
  box-shadow: none;
}

.plan.plan-unavailable .price {
  color: var(--subtle);
}

.plan.plan-unavailable li::before {
  color: var(--subtle);
}

#plan-cards > .plan > button:disabled {
  opacity: 1;
  background: var(--surface-alt);
  color: var(--subtle);
  border: 1px solid var(--line);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .plans .plan:not(.plan-unavailable):hover {
    transform: translateY(-6px);
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: var(--shadow-lg);
  }

  .plans .plan:not(.plan-unavailable):hover button.secondary:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
  }

  .plans .plan-unavailable:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }
}

.badge {
  position: absolute;
  right: 22px;
  top: 24px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 20px 0 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price sup {
  font-size: 18px;
  font-weight: 600;
  margin-right: 2px;
  color: var(--ink-secondary);
}

.price small {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--subtle);
  font-weight: 400;
}

.plan ul {
  list-style: none;
  padding: 22px 0 8px;
  margin: 20px 0 16px;
  border-top: 1px solid var(--line);
}

.plan li {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 13px;
  line-height: 1.6;
}

.plan li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  margin-right: 10px;
}

.plan button {
  width: 100%;
  font-size: 14px;
}

.note {
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
  color: var(--subtle);
  margin-top: 26px;
}

/* ==========================================================================
   Invest Page (/invest) — Apple Hardware Studio Aesthetic
   ========================================================================== */

.invest-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: var(--ink);
  padding: 76px var(--container-pad) 88px;
  border-bottom: 1px solid var(--line);
}

.invest-hero .eyebrow {
  color: var(--subtle);
}

.invest-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  margin-top: 28px;
  align-items: center;
}

.invest-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.invest-hero h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 18px 0 20px;
  color: var(--ink);
}

.invest-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 500px;
}

.invest-hero .button {
  background: var(--accent);
  color: #ffffff;
  margin-top: 16px;
}

.invest-link {
  display: inline-flex;
  align-items: center;
  margin: 16px 0 16px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 160ms ease;
}

.invest-link::after {
  content: ' ›';
  margin-left: 4px;
  font-size: 18px;
  line-height: 1;
}

.invest-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.invest-disclaimer {
  font-size: 12px !important;
  line-height: 1.75;
  color: var(--subtle) !important;
  margin-top: 18px;
}

/* Space Black Titanium Metric Poster Card */
.target-poster {
  padding: 38px 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #1d1d1f 0%, #2a2a2e 55%, #121214 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
  position: relative;
  overflow: hidden;
}

.target-poster::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.target-poster > div:first-child {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #d4d4dc;
  font-weight: 500;
}

.target-number {
  font-size: clamp(68px, 6.2vw, 96px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 22px 0 14px;
  background: linear-gradient(180deg, #ffffff 10%, #c7c7cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.target-number span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 8px;
  color: #d4d4dc;
  -webkit-text-fill-color: #d4d4dc;
}

.target-poster h2 {
  font-size: 24px;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.35;
}

.poster-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 26px 0 18px;
}

.target-poster p {
  color: #d4d4dc;
  font-size: 14px;
  margin: 0 0 8px;
}

.target-poster small {
  color: #d4d4dc;
  font-size: 12px;
}

/* Transparent Monthly Ledger */
.ledger-bar {
  display: flex;
  background: #e8e8ed;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 48px;
  margin: 26px 0;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.ledger-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d2d2d7;
  color: var(--ink);
  padding: 12px 10px;
  min-width: 0;
  white-space: nowrap;
}

.ledger-bar span:last-child {
  background: var(--accent);
  color: #ffffff;
}

.ledger-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.55fr;
  gap: 16px;
}

.ledger-items article {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.ledger-items article:last-child {
  background: #f0f7ff;
  border-color: rgba(0, 113, 227, 0.22);
}

.ledger-items b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.ledger-items article:last-child b {
  color: var(--accent);
}

.ledger-items p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}

/* Tiered Split & Dual Agreements */
.agreement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.status {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  height: fit-content;
}

.summary {
  padding: 24px 28px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.summary span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.summary small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--subtle);
  line-height: 1.7;
  margin-top: 4px;
}

.summary strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Calculator (#calculator) */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
  align-items: stretch;
}

#investment-calculator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}

.quick-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.quick-options button {
  padding: 7px 14px;
  font-size: 12px;
}

#occupancy-range {
  width: 100%;
  accent-color: var(--accent);
  min-height: 30px;
  cursor: pointer;
}

.calc-results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.calc-results > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  letter-spacing: 0.02em;
}

.calc-results h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin: 8px 0 0;
}

.calc-results .result-number {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 10px 0 20px;
  font-variant-numeric: tabular-nums;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.result-row b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-results p {
  font-size: 13px;
  color: var(--subtle);
  margin: 18px 0 0;
}

.income-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  box-shadow: var(--shadow-xs);
}

.income-chart h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.income-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.income-chart .ledger-bar {
  margin: 18px 0 0;
  min-height: 40px;
}

.income-chart .ledger-bar span {
  min-width: fit-content;
  padding-inline: 16px;
}

/* Interest Registration (#interest) */
.invest-join {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  background: var(--surface-alt) !important;
  border-top: 1px solid var(--line);
  align-items: start;
}

.invest-join h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-top: 14px;
}

.invest-join form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#interest-status {
  font-size: 13px;
  margin-top: 14px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Form Fields & Checkboxes */
.field {
  display: block;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.field input,
.field select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
  outline: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0 22px;
}

.check input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error {
  color: #d70015;
  font-size: 13px;
  min-height: 18px;
}

/* Account, Auth, FAQ, Terms */
.auth {
  max-width: 440px;
  margin: 72px auto 110px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.auth h1 {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 14px 0 8px;
}

.page {
  max-width: 1060px;
  margin: auto;
  padding: 68px 28px 104px;
  min-height: 62vh;
}

.page h1 {
  font-size: clamp(32px, 3.8vw, 46px);
  letter-spacing: -0.03em;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notice {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin: 16px 0;
}

.order {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 18px 0;
  box-shadow: var(--shadow-xs);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.order h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

.order small {
  color: var(--subtle);
  font-size: 12px;
}

.order-details {
  display: flex;
  gap: 32px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.order-details b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.empty {
  text-align: center;
  padding: 72px 24px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.faq {
  max-width: 820px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
}

details p {
  font-size: 14px;
  margin: 12px 0 0;
  color: var(--muted);
}

.terms h2 {
  font-size: 22px;
  margin-top: 34px;
}

.terms p,
.terms li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

/* Modal Dialog */
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: min(540px, 92vw);
  padding: 34px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--surface-alt);
  color: var(--muted);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: none;
}

.close:hover {
  background: #e5e5ea;
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

/* Toast (Dynamic Island Style) */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  z-index: 40;
  display: none;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Footer */
footer {
  padding: 56px var(--container-pad) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 30px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

footer b {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

footer p,
footer a:not(.brand) {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 11px;
  transition: color 150ms ease;
}

footer a:not(.brand):hover {
  color: var(--accent);
}

footer small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--subtle);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1150px) {
  header {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
  }

  header nav {
    display: none;
  }

  .primary-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-secondary);
    white-space: nowrap;
  }

  .mobile-menu {
    display: block;
    position: relative;
    padding: 0;
    border: 0;
  }

  .mobile-menu summary {
    list-style: none;
    padding: 8px 10px;
    line-height: 1;
    min-width: 38px;
    min-height: 38px;
    font-size: 20px;
    color: var(--ink);
    border-radius: 8px;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu > div {
    position: absolute;
    top: 46px;
    right: 0;
    width: 210px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 30;
  }

  .mobile-menu a {
    display: block;
    padding: 11px 12px;
    font-size: 14px;
    color: var(--ink);
    border-radius: var(--radius-sm);
  }

  .mobile-menu a:hover {
    background: var(--surface-alt);
    color: var(--accent);
  }
}

@media (max-width: 1000px) {
  .brand-text span {
    display: none;
  }

  .visual {
    transform: none;
    transform-origin: center;
  }

  .invest-grid {
    gap: 32px;
  }

  .invest-join {
    gap: 36px;
  }

  .plan {
    padding: 26px 22px;
  }

  .price {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .announcement {
    font-size: 12px;
  }

  .announcement span {
    display: none;
  }

  header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px 5%;
  }

  header .brand {
    font-size: 19px;
  }

  header .nav-end {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  header .nav-end .button,
  header .nav-end #account-link {
    display: none;
  }

  .mobile-menu {
    grid-column: 3;
    grid-row: 1;
  }

  header .primary-links {
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 9px;
    gap: 32px;
  }

  #language-toggle {
    padding: 6px 10px;
    min-height: 36px;
    font-size: 12px;
  }

  #language-menu {
    min-width: 156px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 44px 6% 24px;
    min-height: 0;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.2vw, 48px);
    letter-spacing: -0.03em;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero p {
    font-size: 15px;
  }

  .hero .visual {
    width: 100%;
    height: 320px;
    margin: 24px 0 0;
    transform: none;
  }





  .visual .float {
    padding: 11px 13px;
    font-size: 12px;
  }

  .visual .float b {
    font-size: 13px;
  }

  .visual .float.status {
    right: 0;
    top: 0;
  }

  .visual .float.location {
    left: 0;
    bottom: 0;
  }

  .spec-strip {
    grid-template-columns: 1fr 1fr;
    padding: 22px 6%;
    gap: 14px;
  }

  .spec-strip > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-right: 0;
    padding: 6px 4px;
  }

  section.content {
    padding: 60px 6%;
  }

  .features,
  .plans,
  .steps,
  .agreement-grid,
  .invest-grid,
  .calc-grid,
  .invest-join {
    grid-template-columns: 1fr;
  }

  .features {
    gap: 20px;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
    padding: 9px 10px;
    font-size: 12px;
  }

  #plan-cards > .plan > p {
    min-height: 0;
  }

  .invest-hero {
    padding: 46px 6% 56px;
  }

  .target-poster {
    padding: 28px 24px;
  }

  .target-number {
    font-size: 64px;
  }

  .invest-link {
    margin: 14px 0 0 14px;
  }

  .ledger-items {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-items article:last-child {
    grid-column: 1 / -1;
  }

  .ledger-bar {
    font-size: 12px;
  }

  #investment-calculator,
  .calc-results,
  .invest-join form {
    padding: 24px 20px;
  }

  .income-chart {
    padding: 18px 16px;
  }

  .income-chart svg {
    min-height: 170px;
  }

  .summary {
    padding: 20px;
  }

  .summary strong {
    font-size: 26px;
  }

  .field input,
  .field select {
    font-size: 16px;
    min-height: 46px;
  }

  .page {
    padding: 36px 6% 64px;
  }

  .auth {
    margin: 32px 5%;
    padding: 24px;
  }

  dialog {
    width: calc(100% - 24px);
    padding: 26px 20px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 36px 6%;
    gap: 24px 18px;
  }

  #toast {
    max-width: 90vw;
    width: max-content;
    text-align: center;
    bottom: 20px;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Hover border beam: masked to the edge so card content stays untouched. */
@property --plan-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes plan-border-beam {
  to { --plan-beam-angle: 360deg; }
}
#plan-cards > .plan::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(from var(--plan-beam-angle), transparent 0deg 235deg, #0071e344 270deg, #0071e3 302deg, #a78bfa 326deg, #e5edff 337deg, transparent 350deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 180ms ease;
  animation: plan-border-beam 3s linear infinite paused;
}
@media (hover: hover) and (pointer: fine) {
  #plan-cards > .plan:hover::after {
    opacity: 1;
    animation-play-state: running;
  }
}
#plan-cards > .plan:focus-within::after {
  opacity: 1;
  animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
  #plan-cards > .plan::after { animation: none; transition: none; }
}
