/* ============================================
   Webspain — Hosting Expired Notice
   Mirrors webspain.net: navy / orange on a neutral canvas.
   Anuphan display (light with bold emphasis), Work Sans body.
   Tokens and component styles are copied from
   src/app/webspain-page.scss in the main site.
   ============================================ */

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #f2f2f2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-color: #9aa6b6 #f2f2f2;
}

::selection {
  background: #021e43;
  color: #ffffff;
}

.ws-app {
  --ws-navy: #021e43;
  --ws-navy-mid: #1a3456;
  --ws-orange: #ec4d34;
  --ws-orange-hover: #d63f28;
  --ws-paper: #ffffff;
  --ws-canvas: #f2f2f2;
  --ws-ice: #e6eef8;
  --ws-ink: #021e43;
  --ws-ink-soft: #4a5f7a;
  --ws-ink-mute: #6b7c94;
  --ws-line: rgba(255, 255, 255, 0.14);
  --ws-ink-line: rgba(2, 30, 67, 0.1);
  --ws-btn-radius: 3px;
  --ws-r-md: 16px;

  --ws-font-display: 'Anuphan', 'Helvetica Neue', Arial, sans-serif;
  --ws-font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  background: var(--ws-canvas);
  color: var(--ws-ink);
  font-family: var(--ws-font-body);
  font-size: 16px;
  line-height: 1.5;
  caret-color: var(--ws-ink);
}

.ws-app main {
  flex: 1;
}

.ws-app h1,
.ws-app h2,
.ws-app h3 {
  font-family: var(--ws-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.ws-app h1 strong,
.ws-app h2 strong,
.ws-app h3 strong {
  font-style: normal;
  font-weight: 600;
}

.ws-app p { margin: 0; }

.ws-app a {
  color: inherit;
  text-decoration: none;
}

.ws-app :focus-visible {
  outline: 2px solid var(--ws-orange);
  outline-offset: 3px;
}

.ws-dot {
  color: var(--ws-orange);
  font-weight: 600;
}

.ws-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Wordmark ---------- */
.ws-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--ws-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ws-ink);
}

.ws-wordmark .ws-brand-logo-mark {
  flex: none;
  align-self: center;
  width: 1.75em;
  height: 1.75em;
  margin-right: 0.5em;
}

.ws-wordmark-dot { color: var(--ws-orange); }

.ws-wordmark-xl {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

/* ---------- Topbar ---------- */
.ws-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(242, 242, 242, 0.88);
  border-bottom: 1px solid var(--ws-ink-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.ws-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--ws-btn-radius);
  background: var(--ws-navy);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.ws-topbar-cta:hover { background: var(--ws-navy-mid); }

/* ---------- Buttons ---------- */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--ws-btn-radius);
  font-family: var(--ws-font-body);
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ws-btn svg { transition: transform 0.2s ease; }
.ws-btn:hover svg { transform: translateX(3px); }

.ws-btn.ws-btn-primary {
  background: var(--ws-navy);
  color: #ffffff;
  border-color: var(--ws-navy);
  font-weight: 500;
}

.ws-btn.ws-btn-primary:hover {
  background: var(--ws-navy-mid);
  border-color: var(--ws-navy-mid);
}

.ws-btn.ws-btn-ghost {
  background: transparent;
  color: var(--ws-ink);
  border-color: var(--ws-navy);
}

.ws-btn.ws-btn-ghost:hover {
  color: #ffffff;
  background: var(--ws-navy);
}

/* ---------- Hero ---------- */
.ws-hero-fd {
  position: relative;
  overflow: hidden;
  padding: 148px 0 0;
  background:
    linear-gradient(90deg, rgba(236, 77, 52, 0.14) 0%, rgba(236, 77, 52, 0.05) 28%, transparent 52%),
    var(--ws-canvas);
}

.ws-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--ws-navy);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ws-ink);
}

.ws-status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ws-orange);
  box-shadow: 0 0 0 4px rgba(236, 77, 52, 0.18);
  animation: ws-pulse 2.4s ease-in-out infinite;
}

@keyframes ws-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ws-hero-fd-title {
  font-size: clamp(2.8rem, 6.6vw, 5.5rem) !important;
  font-weight: 300 !important;
  line-height: 1.02;
  letter-spacing: -0.03em !important;
  text-wrap: balance;
  max-width: 17ch;
  margin-bottom: 32px !important;
  color: var(--ws-ink);
}

.ws-hero-fd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.ws-hero-fd-subtitle {
  max-width: 52ch;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ws-ink-soft);
}

.ws-hero-fd-subtitle strong {
  font-weight: 600;
  color: var(--ws-ink);
}

.ws-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* ---------- Timeline strip ---------- */
.ws-hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 80px 0 0;
  border-top: 1px solid rgba(2, 30, 67, 0.18);
}

.ws-hero-strip > li {
  padding: 32px 28px 40px;
  border-left: 1px solid rgba(2, 30, 67, 0.12);
}

.ws-hero-strip > li:first-child {
  border-left: 0;
  padding-left: 0;
}

.ws-hero-strip-years strong {
  display: block;
  font-family: var(--ws-font-display);
  font-size: clamp(2.8rem, 4.4vw, 3.6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ws-ink);
}

.ws-hero-strip-years span {
  display: block;
  margin-top: 10px;
  font-family: var(--ws-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ws-ink);
}

.ws-hero-strip-years small {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ws-ink-mute);
}

.ws-hero-strip-years.is-now strong,
.ws-hero-strip-years.is-final strong {
  color: var(--ws-orange);
}

.ws-hero-strip-years.is-now strong { font-weight: 600; }

/* ---------- Section ---------- */
.ws-section {
  position: relative;
  padding: 84px 0;
}

.ws-section-paper {
  background: var(--ws-paper);
  color: var(--ws-ink);
}

.ws-notice {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.ws-notice-copy h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.ws-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  max-width: 62ch;
  color: var(--ws-ink-soft);
}

.ws-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ws-ink-line);
}

.ws-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ws-ink-line);
}

.ws-step-num {
  font-family: var(--ws-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.9;
  color: var(--ws-orange);
}

.ws-steps h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ws-ink);
}

.ws-steps p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ws-ink-soft);
}

.ws-steps p a {
  color: var(--ws-ink);
  border-bottom: 1px solid var(--ws-orange);
}

/* ---------- Footer ---------- */
.ws-footer {
  background: var(--ws-navy);
  padding: 104px 0 28px;
}

.ws-footer-chat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 48px;
  padding-bottom: 72px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--ws-line);
}

.ws-footer-chat-title {
  font-family: var(--ws-font-display);
  font-size: clamp(2.8rem, 6.4vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ws-footer-chat-title strong { font-weight: 600; }

.ws-footer .ws-footer-mail {
  font-family: var(--ws-font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.ws-footer .ws-footer-mail:hover { border-bottom-color: var(--ws-orange); }

.ws-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ws-line);
}

.ws-footer-brand .ws-footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.ws-footer-brand .ws-wordmark { color: #ffffff; }
.ws-footer-brand .ws-wordmark-dot { color: var(--ws-orange); }

.ws-footer-brand p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 32ch;
  line-height: 1.55;
}

.ws-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ws-footer-columns h3 {
  font-family: var(--ws-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #ffffff;
  margin-bottom: 12px;
}

.ws-footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ws-footer-columns li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

.ws-footer-columns a { color: rgba(255, 255, 255, 0.56); }
.ws-footer-columns a:hover { color: #ffffff; }

.ws-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.ws-footer-bottom p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ws-notice {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .ws-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ws-container { padding: 0 18px; }
  .ws-topbar { padding: 12px 18px; }
  .ws-topbar-cta { padding: 10px 18px; font-size: 0.9rem; }
  .ws-section { padding: 64px 0; }
  .ws-footer { padding-top: 72px; }
  .ws-footer-chat { padding-bottom: 48px; margin-bottom: 40px; }
  .ws-footer-columns { grid-template-columns: 1fr 1fr; }
  .ws-wordmark-xl { font-size: 1.65rem; }
}

@media (max-width: 640px) {
  .ws-hero-fd { padding-top: 112px; }

  .ws-status {
    width: 100%;
    font-size: 0.9rem;
  }

  .ws-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .ws-hero-strip {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 56px;
  }

  .ws-hero-strip > li,
  .ws-hero-strip > li:first-child {
    padding: 22px 0 24px;
    border-left: 0;
    border-top: 1px solid rgba(2, 30, 67, 0.12);
  }

  .ws-hero-strip > li:first-child { border-top: 0; }
  .ws-steps li { grid-template-columns: 44px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
