/* FPTU Schedule — docs site (aligned with extension v3 UI) */
:root {
  --bg-app: #eef1f6;
  --bg-elevated: #ffffff;
  --bg-subtle: #f4f6f9;
  --bg-mesh-1: #e8eef9;
  --bg-mesh-2: #f0f4ff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* —— Top bar —— */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.site-brand__name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-brand__tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
}

.site-nav a.site-nav__cta {
  background: var(--accent);
  color: #fff;
}

.site-nav a.site-nav__cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* —— Hero —— */
.hero {
  padding: 48px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--bg-mesh-2), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, #dbeafe, transparent 50%),
    linear-gradient(180deg, var(--bg-mesh-1) 0%, var(--bg-app) 55%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero__kicker strong {
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 24px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}

.hero__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero__bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* —— App mockup (mirrors popup v3) —— */
.app-mockup {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.app-mockup__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.app-mockup__head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.app-mockup__titles h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-mockup__titles p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.app-mockup__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.app-mockup__tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px 6px 0 0;
}

.app-mockup__tab--active {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.app-mockup__scroll {
  padding: 12px 16px 16px;
  background: var(--bg-app);
  max-height: 280px;
  overflow-y: auto;
}

.mock-card {
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 13px 14px 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.mock-card:last-child {
  margin-bottom: 0;
}

.mock-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.mock-card__code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  border: 1px solid transparent;
}

.mock-pill--pe {
  color: #0f766e;
  background: #ecfdf5;
  border-color: rgba(13, 148, 136, 0.22);
}

.mock-pill--count {
  background: #e11d48;
  color: #fff;
  border: none;
}

.mock-pill--slot {
  color: #c2410c;
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.2);
}

.mock-pill--room {
  color: #b91c1c;
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.18);
}

.mock-pill--link {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.25);
}

.mock-pill--att {
  color: #047857;
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.22);
}

.mock-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.preview-grid__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mock-card__meta {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-meta-row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr;
  gap: 6px 12px;
  font-size: 12px;
  align-items: baseline;
}

.mock-meta-row span:first-child {
  color: #64748b;
  font-weight: 500;
}

.mock-meta-row span:last-child {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.app-mockup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.mock-action {
  flex: 1;
  min-width: 88px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.mock-action--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.mock-action--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.app-mockup__range {
  padding: 8px 16px 12px;
  background: var(--bg-elevated);
  border-top: 1px dashed var(--border);
  font-size: 12px;
  font-weight: 650;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-mockup__range span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.app-mockup__foot {
  padding: 10px 14px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

/* —— Sections shared —— */
.section {
  padding: 72px 0;
}

.section--surface {
  background: var(--bg-elevated);
}

.section--muted {
  background: var(--bg-subtle);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-grid--spaced {
  margin-top: 48px;
}

.feature-tile {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.section--surface .feature-tile {
  background: var(--bg-app);
}

.feature-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.feature-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-tile__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-tile p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Time formats —— */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.format-tile {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.format-tile h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.format-tile pre,
.format-tile code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.format-examples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.format-examples code {
  display: block;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: #1e293b;
}

.format-tile > p:last-child {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.callout {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.callout h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1e40af;
}

.callout p {
  margin: 0;
  font-size: 14px;
  color: #1e3a8a;
  line-height: 1.55;
}

/* —— Download —— */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.download-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.download-card--featured {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
}

.download-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge--version {
  background: var(--accent);
  color: #fff;
}

.badge--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.badge--dev {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.download-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 750;
}

.download-card > p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.check-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

.install-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-list li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--text);
}

.install-list li::before {
  content: counter(step);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent);
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 6px;
}

.btn--block {
  width: 100%;
}

.release-notes {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.release-notes h3 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.25rem;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.release-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-app);
  border: 1px solid var(--border);
}

.release-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.release-item span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— Guide —— */
.steps {
  max-width: 720px;
  margin: 0 auto 48px;
}

.step-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.step-body code {
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--bg-subtle);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.note-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
}

.note-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #1e40af;
}

.note-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.6;
}

.note-panel li {
  margin-bottom: 6px;
}

/* —— ICS + FAQ —— */
.method-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.method-block {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.method-block h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.method-block ol,
.method-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.method-block li {
  margin-bottom: 6px;
}

.method-block code {
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-subtle);
  border-radius: 4px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.tip {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.tip h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.tip p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.faq-item {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Footer —— */
.footer {
  padding: 48px 0 24px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 14px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer__brand {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 13px;
}

.footer__bottom a {
  color: #93c5fd;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    max-width: none;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__bullets {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
  }

  .site-top__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .app-mockup__actions {
    flex-direction: column;
  }

  .mock-action {
    min-width: 100%;
  }

  .step-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-num {
    margin: 0 auto;
  }
}
