@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   雲科工具箱 — 學術編輯風設計系統 (Editorial Design System)
   Grotesk display · Mono kickers · Ink on paper · Single teal accent · Hairline rules
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  /* Ink on warm newsprint paper */
  --paper:        #FAF8F2;   /* 頁面底色 */
  --surface:      #FFFFFF;   /* 卡片底色 */
  --surface-sink: #F3F1E9;   /* 內嵌區塊底 */
  --ink:          #1B1A16;   /* 主要文字 (暖近黑) */
  --ink-muted:    #6E6A5E;   /* 次要文字 */
  --ink-faint:    #9A9585;   /* 極淡文字 / mono meta */

  /* Single brand accent — 雲科湖水綠 */
  --accent:       #0F766E;   /* Teal-700 */
  --accent-ink:   #0A4B45;   /* 深一階，用於文字對比 */

  /* Category accents (editorial, desaturated — not pastel) */
  --c-vacation:   #B4530F;   /* 倒數 / 放假 */
  --c-school:     #2A5C8A;   /* 上課 */
  --c-grad:       #8A6A12;   /* 畢業學分 */
  --c-map:        #435C93;   /* 地圖 */
  --c-notify:     #A0403C;   /* 通知 */

  /* Rules (hairlines carry the structure, not shadows) */
  --rule:         rgba(27, 26, 22, 0.14);
  --rule-strong:  rgba(27, 26, 22, 0.85);
  --tint:         rgba(15, 118, 110, 0.06);

  --shadow-card:  none;
  --radius:       4px;
  --radius-lg:    6px;
  --ease:         cubic-bezier(0.2, 0, 0, 1);
  --t:            0.25s var(--ease);
}

[data-theme="dark"] {
  --paper:        #16150F;
  --surface:      #201E16;
  --surface-sink: #1B1A12;
  --ink:          #ECE8DD;
  --ink-muted:    #A29C8B;
  --ink-faint:    #736D5C;

  --accent:       #35D0BB;   /* 亮薄荷 */
  --accent-ink:   #7CE3D4;

  --c-vacation:   #E0894A;
  --c-school:     #6AA6DE;
  --c-grad:       #D6B54E;
  --c-map:        #8AA2DA;
  --c-notify:     #E08682;

  --rule:         rgba(236, 232, 221, 0.14);
  --rule-strong:  rgba(236, 232, 221, 0.85);
  --tint:         rgba(53, 208, 187, 0.08);

  --shadow-card:  none;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', 'Noto Sans TC', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3, .serif {
  font-family: 'Space Grotesk', 'Noto Sans TC', 'Instrument Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Mono kicker — the editorial signature */
.kicker {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker .num { color: var(--accent); }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* Shared editorial button set */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  transition: var(--t);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .btn-solid { color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   3. Navbar — solid, hairline rule, grotesk wordmark
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.95rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: baseline; gap: 0.6rem; }
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  align-self: center;
}
.logo-text {
  font-family: 'Space Grotesk', 'Noto Sans TC', 'Instrument Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.logo-badge {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding-left: 0.5rem;
  border-left: 1px solid var(--rule);
}

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.sun-icon, .moon-icon {
  position: absolute;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
}
[data-theme="light"] .sun-icon  { opacity: 1; transform: rotate(0); }
[data-theme="light"] .moon-icon { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"]  .sun-icon  { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"]  .moon-icon { opacity: 1; transform: rotate(0); }

.nav-download-btn {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1.5px solid var(--accent);
  border-radius: 0;
  transition: var(--t);
}
.nav-download-btn:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 9.5rem 1.75rem 5.5rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.hero-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4.5rem;
}

.hero-kicker { margin-bottom: 1.75rem; }

.hero-content h1 {
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}
.hero-content h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
/* replaces old gradient clip-text */
.text-gradient { color: var(--accent); font-style: normal; }

.hero-desc {
  color: var(--ink-muted);
  font-size: 1.18rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 34em;
}
.hero-desc .lead-lead { color: var(--ink); }

.download-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.store-badge {
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: var(--t);
}
.store-badge:hover { border-color: var(--accent); color: var(--accent); }
.store-badge:hover .store-icon { color: var(--accent); }
.store-badge.coming-soon { border-style: dashed; border-color: var(--rule); }
.store-icon { color: var(--ink); transition: var(--t); }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.store-main { font-size: 0.95rem; font-weight: 600; }

.hero-meta {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-meta .dot { color: var(--rule-strong); }

/* --------------------------------------------------------------------------
   5. Device Mockup — neutral editorial frame
   -------------------------------------------------------------------------- */
.hero-phone-area { display: flex; justify-content: center; align-items: center; }
.device-container { perspective: 1200px; }
.device-frame {
  width: 288px;
  height: 586px;
  background: #101010;
  border-radius: 38px;
  padding: 10px;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 30px 60px -30px rgba(27, 26, 22, 0.4);
  position: relative;
}
[data-theme="dark"] .device-frame {
  background: #050505;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.device-notch {
  width: 104px; height: 22px;
  background: #101010;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.device-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.4s ease;
}

/* App inner */
.app-container {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  font-size: 14px;
}
.app-status-bar {
  height: 42px; padding: 0 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px;
}
.app-status-bar .time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 600; color: var(--ink);
}
.app-status-bar .icons { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.app-status-bar .icons svg { width: 15px; height: 15px; }

.app-header {
  padding: 0.4rem 1.25rem 0.75rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.9rem;
}
.app-header h2 {
  font-family: 'Space Grotesk', 'Noto Sans TC', 'Instrument Sans', sans-serif;
  font-size: 1.65rem; font-weight: 700;
}
.app-header .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
}
.app-header .avatar svg { width: 16px; height: 16px; }

.app-content {
  flex: 1;
  padding: 0 1.25rem;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 1.15rem;
  padding-bottom: 64px;
}
.app-content::-webkit-scrollbar { display: none; }

.app-card {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: #FFFFFF;
}
.app-card.bg-orange { background: var(--c-vacation); }
.app-card.bg-blue   { background: var(--c-school); }
[data-theme="dark"] .app-card { color: #16150F; }

.card-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.7rem;
}
.card-header h3 {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.92;
}
.days-num {
  font-family: 'Space Grotesk', 'Noto Sans TC', 'Instrument Sans', sans-serif;
  font-size: 1.2rem; font-weight: 700;
}
.progress-container {
  height: 4px; background: rgba(255,255,255,0.28);
  border-radius: 2px; overflow: hidden; margin-bottom: 0.5rem;
}
.progress-bar-fill { height: 100%; background: #FFFFFF; }
[data-theme="dark"] .progress-bar-fill { background: #16150F; }
.card-footer {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; opacity: 0.85;
}

.app-section h4 {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.course-list { display: flex; flex-direction: column; gap: 0.5rem; }
.course-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.course-time {
  display: flex; flex-direction: column; align-items: center;
  min-width: 42px; border-right: 1px solid var(--rule); padding-right: 0.6rem;
}
.course-time .period {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-weight: 700; color: var(--accent); font-size: 1.1rem;
}
.course-time .time-range {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; color: var(--ink-faint);
}
.course-details { display: flex; flex-direction: column; }
.course-name { font-size: 0.8rem; font-weight: 600; }
.course-location {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; color: var(--ink-muted);
}

.calendar-list {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  display: flex; flex-direction: column;
}
.calendar-item {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem;
  padding: 0.35rem 0;
}
.calendar-item + .calendar-item { border-top: 1px solid var(--rule); }
.calendar-item .bullet { display: flex; color: var(--ink-faint); }
.calendar-item .bullet svg { width: 13px; height: 13px; }
.calendar-item .bullet.important { color: var(--c-vacation); }
.calendar-item .date {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500; min-width: 42px; color: var(--ink-muted);
}
.calendar-item .name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.app-bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 56px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 10px;
  z-index: 2;
  transition: background-color 0.4s ease;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.56rem; letter-spacing: 0.04em;
  color: var(--ink-faint);
  cursor: pointer;
}
.nav-item svg { width: 19px; height: 19px; }
.nav-item.active { color: var(--accent); }

/* --------------------------------------------------------------------------
   6. Section scaffolding (editorial header)
   -------------------------------------------------------------------------- */
.section-container { max-width: 1180px; margin: 0 auto; }

.section-header {
  margin-bottom: 3.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-header .head-main { max-width: 42rem; }
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.12;
  font-weight: 600;
  margin-top: 0.9rem;
}
.section-header p {
  color: var(--ink-muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
  max-width: 40rem;
}

/* --------------------------------------------------------------------------
   7. Privacy — editorial two-column
   -------------------------------------------------------------------------- */
.privacy-section {
  padding: 6rem 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.privacy-container {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: start;
}
.privacy-header { position: sticky; top: 6rem; }
.privacy-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.12; font-weight: 600;
  margin: 1rem 0 1.25rem;
}
.privacy-header p { color: var(--ink-muted); font-size: 1.08rem; max-width: 26rem; }

.privacy-cards { display: flex; flex-direction: column; }
.privacy-card {
  display: flex;
  gap: 1.4rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  transition: var(--t);
}
.privacy-card:last-child { border-bottom: 1px solid var(--rule); }
.privacy-icon-box {
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.privacy-icon-box svg { width: 26px; height: 26px; }
.privacy-card-content h3 {
  font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem;
}
.privacy-card-content p { color: var(--ink-muted); font-size: 1rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   8. Features — editorial bento (hairline framed)
   -------------------------------------------------------------------------- */
.features-section { padding: 6rem 1.75rem; border-bottom: 1px solid var(--rule); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--t), transform var(--t);
}
.bento-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.col-1 { grid-column: span 1; }
.col-2 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.card-text {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 340px;
}
.col-2 .card-text { max-width: 290px; }

/* pill badges → mono kickers */
.card-badge {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 1rem;
}
.bg-orange-soft  { border-left-color: var(--c-vacation); }
.bg-teal-soft    { border-left-color: var(--accent); }
.bg-amber-soft   { border-left-color: var(--c-grad); }
.bg-indigo-soft  { border-left-color: var(--c-map); }
.bg-primary-soft { border-left-color: var(--accent); }
.bg-red-soft     { border-left-color: var(--c-notify); }

.bento-card h3 {
  font-size: 1.55rem; font-weight: 600;
  margin-bottom: 0.6rem; line-height: 1.2;
  color: var(--ink);
}
.bento-card p { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.55; }

/* Showcase mini-phone */
.card-showcase-container {
  flex: 1; height: 100%;
  display: flex; justify-content: center; align-items: flex-end;
  position: relative; overflow: hidden;
}
.mini-phone {
  width: 168px; height: 244px;
  background: #101010;
  border: 1px solid var(--rule-strong);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 6px 6px 0;
  transform: translateY(18px);
  transition: transform 0.4s var(--ease);
}
.bento-card:hover .mini-phone { transform: translateY(10px); }
.mini-phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding: 0.55rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.mockup-header {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; color: var(--ink-faint);
  padding-bottom: 0.35rem; border-bottom: 1px solid var(--rule);
}
.mockup-countdown { border-radius: var(--radius); padding: 0.45rem 0.5rem; color: #FFFFFF; }
.mockup-countdown.bg-orange { background: var(--c-vacation); }
.mockup-countdown.bg-blue   { background: var(--c-school); }
.mock-row {
  display: flex; justify-content: space-between;
  font-size: 0.6rem; font-weight: 600;
}
.mock-days { font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif; font-weight: 700; font-size: 0.72rem; }
.mock-progress {
  height: 3px; background: rgba(255,255,255,0.3);
  border-radius: 2px; overflow: hidden; margin: 0.3rem 0;
}
.mock-fill { height: 100%; background: #FFFFFF; }
.mock-row-small {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem; opacity: 0.85;
}

/* GPA card */
.gpa-indicator { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.gpa-circle {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gpa-val {
  font-family: 'Space Grotesk', 'Noto Sans TC', 'Instrument Sans', sans-serif;
  font-size: 1.75rem; font-weight: 700; color: var(--accent); line-height: 1;
}
.gpa-label {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.55rem; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 0.2rem;
}
.gpa-stats { display: flex; flex-direction: column; gap: 0.55rem; width: 100%; }
.stat-row {
  font-size: 0.82rem; display: flex; justify-content: space-between;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule);
}
.stat-row span { color: var(--ink-muted); }
.stat-row strong { font-variant-numeric: tabular-nums; }

/* Graduation audit */
.grad-progress-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; }
.grad-item { display: flex; flex-direction: column; gap: 0.3rem; }
.grad-info {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; font-weight: 500;
}
.grad-info span:last-child { font-family: 'IBM Plex Mono', monospace; color: var(--ink-muted); }
.grad-bar { height: 4px; background: var(--surface-sink); border-radius: 2px; overflow: hidden; }
.grad-fill { height: 100%; }

/* Map card */
.map-phone { width: 198px; height: 244px; }
.mockup-map {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  height: 100%;
  display: flex; flex-direction: column;
  padding: 4px; position: relative;
}
.mock-svg-map { width: 100%; height: 100%; }
.map-search-bar {
  position: absolute; top: 8px; left: 8px; right: 8px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 5px 8px;
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.58rem; color: var(--ink-muted);
  display: flex; align-items: center; gap: 5px;
}
.map-search-bar svg { width: 11px; height: 11px; }

/* Timetable card */
.table-preview {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 0.55rem; width: 100%; max-width: 340px;
}
.preview-row {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
  transition: var(--t);
}
.preview-row.active {
  border-color: var(--accent);
  background: var(--tint);
}
.preview-period { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--accent); }
.preview-name { font-weight: 600; }
.preview-room { font-family: 'IBM Plex Mono', monospace; color: var(--ink-muted); font-size: 0.78rem; }
.preview-status {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-muted);
}
.preview-row.active .preview-status {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
}

/* Notification card */
.mockup-notification { margin-top: 1.5rem; }
.notification-banner {
  background: var(--surface-sink);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--c-notify);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.notif-header {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--ink-faint); margin-bottom: 0.35rem;
}
.notif-logo { font-weight: 600; color: var(--ink-muted); }
.notif-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.notif-body { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.3; }

/* Bento inline note */
.card-note-alert {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.68rem; font-weight: 500;
  color: var(--c-vacation);
  margin-top: 1rem;
}
.card-note-alert svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   9. CTA — framed editorial block
   -------------------------------------------------------------------------- */
.cta-section { padding: 7rem 1.75rem; }
.cta-container {
  max-width: 900px; margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 4rem 1rem;
}
.cta-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600; line-height: 1.1; margin-bottom: 1.1rem;
}
.cta-section p {
  color: var(--ink-muted); font-size: 1.12rem;
  margin: 0 auto 2.5rem; max-width: 32rem;
}
.cta-buttons {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 2rem;
}
.cta-primary { /* mapped to solid */
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font-weight: 600; padding: 0.85rem 1.85rem; border-radius: var(--radius);
  transition: var(--t);
}
.cta-primary:hover { background: var(--accent); border-color: var(--accent); }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong);
  font-weight: 600; padding: 0.85rem 1.85rem; border-radius: var(--radius);
  transition: var(--t);
}
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }
.cta-primary svg, .cta-secondary svg { width: 17px; height: 17px; }
.cta-meta {
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.78rem; color: var(--ink-faint);
  display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}
.cta-meta .dot { color: var(--rule-strong); }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.footer { padding: 4rem 1.75rem; border-top: 1px solid var(--rule); }
.footer-container {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand h3 {
  font-family: 'Space Grotesk', 'Noto Sans TC', 'Instrument Sans', sans-serif;
  font-size: 1.7rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.4rem;
}
.footer-brand p { color: var(--ink-muted); font-size: 0.95rem; }
.footer-copyright {
  text-align: right;
  font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
  font-size: 0.72rem; line-height: 1.7; color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   11. Toast
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed; bottom: 2.5rem; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.75rem 1.4rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0; pointer-events: none; z-index: 1000;
  transition: transform 0.4s var(--ease), opacity 0.35s ease;
}
.toast-notification.show { transform: translate(-50%, 0); opacity: 1; }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container { gap: 3rem; }
  .privacy-container { gap: 3rem; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero-section { padding-top: 8rem; }
  .hero-container { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-content h1 { font-size: 2.9rem; }
  .download-badges { justify-content: flex-start; }
  .privacy-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .privacy-header { position: static; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .col-2 { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .card-showcase-container { width: 100%; margin-top: 1.5rem; }
  .mini-phone { transform: translateY(0); margin: 0 auto; }
  .bento-card:hover .mini-phone { transform: translateY(-3px); }
  .footer-container { flex-direction: column; }
  .footer-copyright { text-align: left; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0.8rem 1.25rem; }
  .logo-text { font-size: 1.3rem; }
  .logo-badge { display: none; }
  .hero-section { padding: 7rem 1.25rem 4rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .col-1, .col-2 { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .cta-container { padding: 2.5rem 0.5rem; }
}

/* --------------------------------------------------------------------------
   13. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, .bento-card, .mini-phone, .theme-toggle-btn, .store-badge, .toast-notification {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
