/*
 * Public landing page. Standalone rather than built on modern.css: this is
 * marketing chrome with its own warm palette, served to logged-out visitors,
 * and it should not drag the whole application stylesheet along with it.
 */

:root {
  --portal-canvas: #faf9f7;
  --portal-surface: #ffffff;
  --portal-ink: #1c1917;
  --portal-body: #57534e;
  --portal-muted: #6f6964;
  --portal-subtle: #78716c;
  --portal-on-dark-muted: #a8a29e;
  --portal-on-dark-subtle: #938d88;
  --portal-line: #e7e5e4;
  --portal-line-soft: #ece9e5;
  --portal-rust: #a8431e;
  --portal-rust-dark: #8f3717;
  --portal-amber: #e0863a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--portal-canvas);
  color: var(--portal-ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--portal-rust); text-decoration: none; }
a:hover { color: var(--portal-rust-dark); text-decoration: underline; }

h1, h2, h3 { letter-spacing: -0.025em; }

.portal-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-muted { color: var(--portal-muted); }

/* ---------- nav ---------- */

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--portal-line-soft);
}

.portal-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 40px;
}

.portal-brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.portal-brand:hover { text-decoration: none; }

.portal-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--portal-amber);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(224, 134, 58, 0.6);
}

.portal-brand__text { line-height: 1; }
.portal-brand__name { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.portal-brand__tag {
  display: block;
  margin-top: 2px;
  color: var(--portal-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.portal-nav__links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.portal-nav__links a { color: var(--portal-body); font-weight: 600; }
.portal-nav__actions { display: flex; align-items: center; gap: 14px; }
.portal-nav__login { color: #44403c; font-weight: 600; }

/* ---------- buttons ---------- */

.portal-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px 24px;
}

.portal-button:hover { text-decoration: none; }
.portal-button [aria-hidden="true"] { display: inline-block; }
[dir="rtl"] .portal-button [aria-hidden="true"] { transform: scaleX(-1); }
.portal-button--small { padding: 10px 18px; border-radius: 9px; font-size: 14px; }

.portal-button--primary {
  background: var(--portal-rust);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(168, 67, 30, 0.7);
}

.portal-button--primary:hover { background: var(--portal-rust-dark); color: #fff; }

.portal-button--secondary {
  background: #fff;
  border: 1px solid #e0ddd9;
  color: #44403c;
}

.portal-button--secondary:hover { color: var(--portal-ink); }

.portal-button--invert { background: #fff; color: var(--portal-rust); font-size: 16px; padding: 15px 30px; border-radius: 12px; }

/* ---------- hero ---------- */

.portal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 62px 40px 44px;
}

.portal-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 13px 5px 9px;
  border: 1px solid #f0d9c4;
  border-radius: 999px;
  background: #fbf1e8;
  color: var(--portal-rust);
  font-size: 12.5px;
  font-weight: 700;
}

.portal-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d9c53;
  animation: portal-pulse 1.6s ease-in-out infinite;
}

@keyframes portal-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .portal-pulse { animation: none; } }

.portal-hero__title {
  margin: 0 0 20px;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.portal-hero__lede {
  max-width: 460px;
  margin: 0 0 30px;
  color: var(--portal-body);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.portal-hero__actions { display: flex; align-items: center; gap: 13px; margin: 0 0 26px; flex-wrap: wrap; }

.portal-hero__points {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--portal-subtle);
  font-size: 13.5px;
  flex-wrap: wrap;
}

.portal-hero__points li { display: flex; align-items: center; gap: 7px; }
.portal-tick { color: #3d9c53; font-weight: 800; }

/* ---------- product shot ---------- */

.portal-shot {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(28, 25, 23, 0.4);
}

.portal-shot__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f3f1ee;
  border-bottom: 1px solid var(--portal-line);
}

.portal-shot__dot { width: 11px; height: 11px; border-radius: 50%; }
.portal-shot__dot--red { background: #e0605a; }
.portal-shot__dot--amber { background: #e6bb4d; }
.portal-shot__dot--green { background: #64b767; }

.portal-shot__url {
  flex: 1 1 auto;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  color: var(--portal-muted);
  font-size: 11.5px;
}

/* The intrinsic width/height on the <img> reserves the right box before the
   file loads, so the hero does not jump as the page settles. */
.portal-shot__image { display: block; width: 100%; height: auto; }

/* ---------- screenshots page ---------- */

.portal-page-head { max-width: 1160px; margin: 0 auto; padding: 56px 40px 8px; }
.portal-page-head h1 { margin: 8px 0 0; font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }

.portal-page-head__lede {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--portal-body);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.portal-shot-block { max-width: 1160px; margin: 0 auto; padding: 48px 40px 0; }
.portal-shot-block__text { max-width: 640px; margin-bottom: 20px; }
.portal-shot-block__text h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }

.portal-shot-block__text p {
  margin: 0;
  color: var(--portal-body);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.portal-shot-block .portal-shot { margin: 0; }

.portal-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 40px 72px;
  color: var(--portal-body);
  font-size: 16px;
  line-height: 1.7;
}

.portal-prose h2 {
  margin: 34px 0 8px;
  color: var(--portal-ink);
  font-size: 24px;
  font-weight: 800;
}

.portal-prose h2:first-child { margin-top: 0; }
.portal-prose p { margin: 0 0 18px; }

.portal-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--portal-body);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- signup ---------- */

.portal-signup {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}

.portal-signup__aside h1 { margin: 8px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }

.portal-signup__lede {
  margin: 14px 0 24px;
  color: var(--portal-body);
  font-size: 16.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.portal-signup__note {
  margin: 26px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.6;
  text-wrap: pretty;
}

.portal-signup__panel {
  padding: 32px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px -40px rgba(28, 25, 23, 0.35);
}

.portal-signup__notice {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #e8b4ae;
  border-radius: 10px;
  background: #fdf3f1;
  color: #8c2f24;
  font-size: 14px;
  line-height: 1.6;
}

.portal-signup__notice strong { display: block; margin-bottom: 6px; }
.portal-signup__notice ul { margin: 0; padding-left: 18px; }
.portal-signup__notice li { margin: 2px 0; }

.portal-signup__footnote { margin: 22px 0 0; color: var(--portal-muted); font-size: 13.5px; }
.portal-signup__footnote a { color: var(--portal-rust); font-weight: 600; }

/* ---------- portal form ---------- */

.portal-form__group { margin: 0 0 26px; padding: 0; border: 0; }

.portal-form__group legend {
  padding: 0;
  margin-bottom: 14px;
  color: var(--portal-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-form__field { margin-bottom: 16px; }

.portal-form__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

.portal-form__field input,
.portal-form__field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-size: 14.5px;
}

.portal-form__field input:focus-visible,
.portal-form__field select:focus-visible {
  outline: 2px solid var(--portal-rust);
  outline-offset: 1px;
  border-color: var(--portal-rust);
}

/* The address field and its fixed ".clockingit.com" suffix read as one control. */
.portal-form__addon {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.portal-form__addon input { border: 0; border-radius: 0; }
.portal-form__addon:focus-within { outline: 2px solid var(--portal-rust); outline-offset: 1px; border-color: var(--portal-rust); }
.portal-form__addon input:focus-visible { outline: none; }

.portal-form__addon-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--portal-line);
  background: #faf9f7;
  color: var(--portal-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* Static guidance, always shown. The hint below it is the live availability
   answer, which the script rewrites. */
.portal-form__help { margin: -2px 0 7px; color: var(--portal-muted); font-size: 13px; }

.portal-form__reveal { position: relative; }
.portal-form__reveal input { padding-right: 62px; }

.portal-form__reveal button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--portal-rust);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.portal-form__reveal button:hover { background: #fbf1e8; }

.portal-form__hint { min-height: 18px; margin: 6px 0 0; font-size: 13px; color: var(--portal-muted); }
.portal-form__hint[data-state="ok"] { color: #2f7d3f; }
.portal-form__hint[data-state="warning"] { color: #8a6212; }
.portal-form__hint[data-state="error"] { color: #a33526; }

.portal-form__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.portal-form__actions input[type="submit"] { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.portal-form__actions input[type="submit"]:disabled { opacity: 0.55; cursor: progress; }
.portal-form__status { color: var(--portal-muted); font-size: 13px; }

.portal-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- trust strip ---------- */

.portal-trust { background: #fff; border-top: 1px solid var(--portal-line-soft); border-bottom: 1px solid var(--portal-line-soft); }

.portal-trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 40px;
}

.portal-trust__label { margin: 0; color: var(--portal-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.portal-trust__stats { display: flex; align-items: center; gap: 30px; color: var(--portal-subtle); font-size: 14px; }
.portal-trust__stats strong { color: var(--portal-ink); font-size: 18px; }

/* ---------- generic section ---------- */

.portal-section { max-width: 1160px; margin: 0 auto; padding: 64px 40px 20px; }
.portal-section__heading { text-align: center; margin-bottom: 42px; }
.portal-section__heading h2 { margin: 8px 0 0; font-size: 38px; font-weight: 800; }
.portal-section__bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.portal-section__bar h2 { margin: 0; font-size: 30px; font-weight: 800; }

.portal-eyebrow { margin: 0; color: var(--portal-rust); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.portal-eyebrow--light { color: #e0a878; letter-spacing: 0.12em; }

.portal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.portal-card {
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-card__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.portal-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.portal-card p { margin: 0; color: var(--portal-body); font-size: 14px; line-height: 1.55; text-wrap: pretty; }

.portal-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 19px;
}

.portal-card__icon--rust { background: #fbf1e8; color: #a8431e; }
.portal-card__icon--blue { background: #eef4fb; color: #2b5f8f; }
.portal-card__icon--violet { background: #f4eefb; color: #6a439c; }
.portal-card__icon--teal { background: #e9f6f4; color: #217a6f; }
.portal-card__icon--green { background: #eef6ea; color: #3c7a2e; }
.portal-card__icon--amber { background: #fbf3e2; color: #96651a; }

.portal-card__meta { margin: 0 0 10px; color: var(--portal-muted); font-size: 12.5px; }
.portal-news__body { margin: 0; color: var(--portal-body); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; text-wrap: pretty; }

.portal-checklist { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.portal-checklist li { display: flex; align-items: center; gap: 11px; }

.portal-checklist span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(224, 134, 58, 0.18);
  color: #f0b483;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- languages ---------- */

.portal-languages { background: #fff; border-top: 1px solid var(--portal-line-soft); border-bottom: 1px solid var(--portal-line-soft); }
.portal-languages__inner { max-width: 1160px; margin: 0 auto; padding: 40px; text-align: center; }
.portal-languages__list { max-width: 720px; margin: 6px auto 22px; color: var(--portal-body); font-size: 15px; }
.portal-language-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }

.portal-language-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-canvas);
  color: #44403c;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- cta ---------- */

.portal-cta { max-width: 1160px; margin: 0 auto; padding: 0 40px 60px; }

.portal-cta__panel {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 18px;
  background: linear-gradient(150deg, #e0863a 0%, #b0421f 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -28px rgba(176, 66, 31, 0.7);
}

.portal-cta__panel h2 { position: relative; margin: 0 0 12px; font-size: 36px; font-weight: 800; }
.portal-cta__panel p { position: relative; margin: 0 0 26px; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.portal-cta__panel .portal-button { position: relative; }
.portal-cta__ring { position: absolute; border-radius: 50%; }
.portal-cta__ring--large { right: -80px; top: -80px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, 0.25); }
.portal-cta__ring--small { right: -30px; top: -30px; width: 160px; height: 160px; border: 1px solid rgba(255, 255, 255, 0.18); }

/* ---------- footer ---------- */

.portal-footer { background: var(--portal-ink); color: #d6d3d0; }

.portal-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 40px 30px;
}

.portal-brand--footer { margin-bottom: 14px; }
.portal-brand--footer .portal-brand__mark { width: 30px; height: 30px; border-radius: 7px; }
.portal-brand--footer .portal-brand__name { color: #fff; font-size: 16px; }
.portal-footer__blurb { max-width: 260px; margin: 0; color: var(--portal-on-dark-muted); font-size: 13.5px; line-height: 1.6; }
.portal-footer__label { margin: 0 0 12px; color: var(--portal-on-dark-subtle); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.portal-footer__inner a { display: block; margin-bottom: 9px; color: #d6d3d0; font-size: 14px; }
.portal-footer__inner a:hover { color: #fff; }

.portal-footer__rails {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #3a3633;
  border-radius: 10px;
  background: #2a2724;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.portal-footer__rails-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #b31710;
  font-size: 13px;
}

.portal-footer__rule { border-top: 1px solid #33302d; }

.portal-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 40px;
  color: var(--portal-on-dark-subtle);
  font-size: 12.5px;
}

.portal-locale { display: flex; align-items: center; }

.portal-locale select {
  max-width: 165px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-surface);
  color: var(--portal-body);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.portal-locale select:focus-visible {
  outline: 2px solid var(--portal-rust);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .portal-hero { grid-template-columns: 1fr; }
  .portal-cards { grid-template-columns: 1fr; }
  .portal-footer__inner { grid-template-columns: 1fr 1fr; }
  .portal-nav__links { display: none; }
  .portal-hero__title { font-size: 40px; }
  .portal-signup { grid-template-columns: 1fr; gap: 34px; padding: 36px 22px 52px; }
  .portal-signup__aside h1 { font-size: 31px; }
  .portal-signup__panel { padding: 22px; }
  .portal-form__row { grid-template-columns: 1fr; gap: 0; }
  .portal-page-head { padding: 40px 22px 8px; }
  .portal-page-head h1 { font-size: 34px; }
  .portal-prose { padding: 34px 22px 52px; }
  .portal-shot-block { padding: 34px 22px 0; }
  .portal-shot-block__text h2 { font-size: 23px; }
}

@media (max-width: 520px) {
  .portal-nav__inner { gap: 12px; padding: 12px 18px; }
  .portal-nav .portal-brand__text { display: none; }
  .portal-nav__actions { gap: 10px; }
  .portal-nav__login, .portal-button--small { white-space: nowrap; }
  .portal-locale select { width: 54px; padding-inline: 8px; }
  .portal-button--small { padding: 9px 12px; }
}
