/* ==========================================================================
   SG Toolkit - Landing page styles
   Shares the harbor-teal / sunset-coral / warm-gold palette and Fraunces +
   Inter + IBM Plex Mono type system established in the Leave Optimizer, so
   the hub and its tools feel like one connected product.
   ========================================================================== */

:root {
  --bg: #F2F6F5;
  --surface: #FFFFFF;
  --ink: #10262B;
  --muted: #5B7280;
  --line: #E1E8E7;

  --primary: #0B4F6C;
  --primary-dark: #073246;
  --primary-tint: #E4EEF1;

  --accent: #FF6B4A;
  --accent-dark: #E14B2A;
  --accent-tint: #FFE8E1;

  --gold: #FFC857;
  --gold-dark: #8a6300;
  --gold-tint: #FFF6E0;

  --info: #6B4FA0;
  --info-dark: #4B3575;
  --info-tint: #EDE7F5;

  --radius-lg: 22px;
  --radius-md: 14px;

  --shadow-card: 0 4px 16px rgba(11, 79, 108, 0.08);

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

h1, .display { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px 40px;
  min-height: 100vh;
}

/* ---------------------------------------------------------------- header */
.hub-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 34px) 22px 40px;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
  margin: 0 -18px 28px;
}

.header-art { position: absolute; top: 0; right: 0; width: 82%; height: 100%; pointer-events: none; }

.dot-path {
  stroke: rgba(255,255,255,0.35);
  stroke-width: 2;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  animation: dash-drift 44s linear infinite;
}
@keyframes dash-drift { to { stroke-dashoffset: -420; } }

.path-node.node-1 { fill: var(--gold); }
.path-node.node-2 { fill: #fff; opacity: 0.85; }
.path-plane path { fill: var(--accent); }

.hub-header .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
  position: relative;
}

.hub-header h1 {
  font-size: 30px;
  line-height: 1.22;
  color: #fff;
  max-width: 300px;
  position: relative;
}

/* ------------------------------------------------------------- options */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1.5px solid transparent;
}

.option-card:active { transform: scale(0.98); }

@media (hover: hover) {
  .option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11,79,108,0.14);
  }
}

.option-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-icon svg { width: 26px; height: 26px; }

.option-leave .option-icon { background: var(--accent-tint); color: var(--accent-dark); }
.option-makan .option-icon { background: var(--gold-tint); color: var(--gold-dark); }
.option-park .option-icon { background: var(--primary-tint); color: var(--primary); }
.option-block .option-icon { background: var(--info-tint); color: var(--info-dark); }

.option-text { flex: 1; min-width: 0; }

.option-main {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.25;
}

.option-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* the deliberate "streeetch" - each extra e widens slightly to visually
   act out the word it names */
.stretch-e {
  display: inline-block;
  letter-spacing: -0.02em;
}
.option-leave:hover .option-sub .stretch-e,
.option-leave:active .option-sub .stretch-e {
  letter-spacing: 0.06em;
}
.option-sub .stretch-e { transition: letter-spacing 0.25s ease; }

.option-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.option-arrow svg { width: 16px; height: 16px; }
.option-card:hover .option-arrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
}

.soon-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--gold);
  color: #5c4400;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255,200,87,0.5);
}

.beta-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255,107,74,0.45);
}

.option-makan { opacity: 0.92; }

.option-card.option-disabled {
  cursor: default;
  pointer-events: none;
}
.option-card.option-disabled .option-icon { filter: grayscale(1); opacity: 0.75; }
.option-card.option-disabled .option-main,
.option-card.option-disabled .option-sub { opacity: 0.6; }
@media (hover: hover) {
  .option-card.option-disabled:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
}

/* --------------------------------------------------------------- footer */
.footer-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 28px;
  padding: 0 12px;
}

/* ------------------------------------------------------------ animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.option-card { animation: fadeSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.option-leave { animation-delay: 0.05s; }
.option-makan { animation-delay: 0.12s; }
.option-park { animation-delay: 0.19s; }
.option-block { animation-delay: 0.26s; }
.hub-header .eyebrow, .hub-header h1 { animation: fadeSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.hub-header h1 { animation-delay: 0.05s; }

@media (prefers-reduced-motion: reduce) {
  .option-card, .hub-header .eyebrow, .hub-header h1, .dot-path { animation: none !important; }
}
