/* Page-specific styles for the custom website service. */
[data-nav="website"] {
  --ws-ink: #11213a;
  --ws-copy: #52647c;
  --ws-blue: #1459cb;
  --ws-line: #dce6f1;
  --ws-paper: #f3f7fc;
  --ws-deep: #0c1b31;
  --ws-shadow: 0 18px 48px rgb(29 58 103 / 10%);
}

.ws-hero.inner-hero:has(.inner-hero-grid) {
  padding-block: clamp(35px, 5.2vw, 76px);
  background: radial-gradient(ellipse at 82% 66%, #dfebfa, transparent 53%), #f8fafd;
}
.ws-hero .inner-hero-grid {
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 4vw, 62px);
}
[data-nav="website"] .ws-hero .page-h1 {
  color: var(--ws-ink);
  max-width: 11em;
  font-size: clamp(34px, 3.75vw, 54px);
  line-height: 1.19;
  letter-spacing: -.045em;
}
.ws-hero .page-h1 span {
  display: block;
  color: var(--ws-blue);
}
.ws-hero .sec-lead { max-width: 34em; margin-bottom: 27px; }
.ws-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.ws-hero-actions .btn { font-size: 13px; }
.ws-hero-actions .btn-outline { box-shadow: none; }
.ws-hero .ws-browser {
  min-width: 0;
  border-color: #fff;
  border-radius: 20px;
  box-shadow: 0 23px 56px rgb(24 58 110 / 19%);
}
.ws-hero .ws-browser-bar {
  padding: 9px 13px;
  min-height: 46px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #f9fbfe;
  color: #435975;
}
.ws-browser-bar > span {
  flex: 1;
  min-width: 100px;
  font-size: 10px;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.ws-browser-bar .vp-toggle { display: flex; flex-shrink: 0; }
.ws-browser-bar .vp-btn { min-height: 25px; padding: 3px 9px; }
.ws-browser-bar .vp-btn.active { background: #dbebff; color: #144a99; }
.ws-browser-stage {
  height: clamp(340px, 30vw, 425px);
  padding: 0;
  background: #172944;
}
.ws-browser-stage > .slot-img { object-position: center top; }
.ws-sample {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.6vw, 34px);
  background: var(--ws-deep);
  color: #f4f8ff;
}
.ws-sample::before,
.ws-sample-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ws-sample-art {
  z-index: -2;
  object-fit: cover;
  object-position: 56% center;
}
.ws-sample::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(9 21 40 / 95%), transparent 47%, rgb(9 21 40 / 45%)),
    linear-gradient(90deg, rgb(9 21 40 / 93%) 0%, rgb(9 21 40 / 62%) 38%, transparent 78%);
}
.ws-sample-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 12px;
  color: #c8ddf8;
  font-size: 10px;
}
.ws-sample-meta > :first-child { display: inline-flex; align-items: center; gap: 7px; color: #aee5ff; }
.ws-sample-title { max-width: min(66%, 350px); }
.ws-sample-title h2 { max-width: 10em; margin-bottom: 9px; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.29; color: white; }
.ws-sample-title p { font-size: 12.5px; line-height: 1.65; color: #d5e3f6; }
.ws-sample-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid rgb(205 228 255 / 34%);
  color: #c1d0e3;
  font-size: 10.5px;
  line-height: 1.55;
}
.ws-sample-spec strong { display: block; color: #f3f8ff; font-size: 12px; }
.ws-browser[data-preview="mobile"] .ws-browser-stage { padding-block: 11px; }
.ws-browser[data-preview="mobile"] :is(.ws-sample, .slot-img) {
  width: min(calc(100% - 24px), 285px);
  height: 100%;
  margin-inline: auto;
  border: 2px solid #527096;
  border-radius: 19px;
  overflow: hidden;
}
.ws-browser[data-preview="mobile"] .slot-img { inset-block: 11px; height: calc(100% - 22px); }
.ws-browser[data-preview="mobile"] .ws-sample { padding: 14px; gap: 11px; }
.ws-browser[data-preview="mobile"] .ws-sample-title { max-width: 100%; }
.ws-browser[data-preview="mobile"] .ws-sample-title h2 { font-size: 21px; }
.ws-browser[data-preview="mobile"] .ws-sample-art { object-position: 67% center; }
.ws-browser[data-preview="mobile"] .ws-sample::before {
  background: linear-gradient(0deg, #091528 1%, rgb(9 21 40 / 80%) 55%, rgb(9 21 40 / 26%) 92%);
}

.ws-page-nav {
  border-bottom: 1px solid var(--ws-line);
  background: #fff;
}
.ws-page-nav > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(8px, 2.5vw, 30px);
  padding-block: 9px;
}
.ws-page-nav a {
  padding: 8px 0;
  color: var(--ws-copy);
  font-size: 13px;
  font-weight: 700;
}
.ws-page-nav a:hover { color: var(--ws-blue); text-decoration: underline; text-underline-offset: 4px; }

.ws-section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px 30px;
  margin-bottom: 28px;
}
.ws-section-intro .sec-title { margin-bottom: 0; }
.ws-section-intro .sec-lead { max-width: 25em; font-size: 14px; }

.ws-workbench { background: var(--ws-paper); }
.ws-workbench-frame {
  overflow: hidden;
  border: 1px solid var(--ws-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ws-shadow);
}
.ws-workbench-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-inline: clamp(12px, 2.5vw, 34px);
  border-bottom: 1px solid var(--ws-line);
}
.ws-workbench-tabs button {
  min-height: 49px;
  padding: 9px 4px;
  border-bottom: 3px solid transparent;
  color: var(--ws-copy);
  font-size: 14px;
  font-weight: 700;
}
.ws-workbench-tabs button:is(:hover, [aria-selected="true"]) { color: var(--ws-blue); }
.ws-workbench-tabs button[aria-selected="true"] { border-bottom-color: var(--ws-blue); }
.ws-workbench-tabs button:focus-visible { outline-offset: -4px; }
.ws-role-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
  padding: clamp(18px, 3.2vw, 42px);
}
.ws-role-panel[hidden] { display: none; }
.ws-role-panel:focus-visible { outline: 2px solid var(--ws-blue); outline-offset: -4px; }
.ws-role-panel h3 { margin-bottom: 9px; color: var(--ws-ink); font-size: clamp(21px, 2.2vw, 31px); line-height: 1.32; }
.ws-role-panel p { color: var(--ws-copy); font-size: 14px; }
.ws-role-panel dl {
  display: grid;
  padding: 5px clamp(14px, 2.4vw, 26px);
  background: var(--ws-deep);
  color: #eef5ff;
  border-radius: 12px;
}
.ws-role-panel dl > div {
  display: grid;
  grid-template-columns: minmax(105px, .52fr) minmax(0, 1fr);
  gap: 7px 13px;
  align-items: center;
  padding: 13px 0;
}
.ws-role-panel dl > div + div { border-top: 1px solid #2a3e5a; }
.ws-role-panel dt { color: #a9c8eb; font-size: 12px; }
.ws-role-panel dd { font-size: 13px; font-weight: 650; }

.ws-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2vw, 25px);
}
.ws-project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgb(29 58 103 / 7%);
}
.ws-project-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111c37;
}
.ws-project-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.ws-project:is(:hover, :focus-within) .ws-project-image img { transform: scale(1.035); }
.ws-project-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: clamp(16px, 2vw, 25px); }
.ws-project-type { color: #456890; font-size: 12px; font-weight: 700; }
.ws-project h3 { font-size: clamp(19px, 2vw, 25px); color: var(--ws-ink); line-height: 1.23; }
.ws-project p { flex: 1; color: var(--ws-copy); font-size: 14px; }
.ws-project .text-link { align-self: start; margin-top: 4px; }

.ws-acceptance { background: #fff; }
.ws-acceptance-layout {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
}
.ws-acceptance-layout .btn { margin-top: 20px; }
.ws-acceptance-list {
  padding: 5px clamp(13px, 2.4vw, 28px);
  border: 1px solid var(--ws-line);
  border-radius: 17px;
  background: var(--ws-paper);
}
.ws-acceptance-list > div {
  position: relative;
  padding: 15px 0 15px 28px;
}
.ws-acceptance-list > div + div { border-top: 1px solid var(--ws-line); }
.ws-acceptance-list dt { font-size: 15px; font-weight: 700; color: var(--ws-ink); }
.ws-acceptance-list dt::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--ws-blue);
}
.ws-acceptance-list dd { margin-top: 3px; color: var(--ws-copy); font-size: 13.5px; }
[data-nav="website"] [data-onum-block="comparison"] tbody td:nth-child(2) { background: #edf5ff; color: #234f86; }
[data-nav="website"] #website-faq { background: var(--ws-paper); }

@media (max-width: 960px) {
  .ws-hero .inner-hero-grid { grid-template-columns: minmax(0, 1fr); }
  [data-nav="website"] .ws-hero .page-h1 { max-width: none; }
}
@media (max-width: 680px) {
  [data-nav="website"] .ws-hero .page-h1 { font-size: clamp(27px, 8.6vw, 34px); }
  .ws-section-intro { flex-direction: column; align-items: start; }
  .ws-role-panel, .ws-project-grid, .ws-acceptance-layout { grid-template-columns: minmax(0, 1fr); }
  .ws-browser-stage { height: 340px; }
  .ws-sample-title { max-width: 82%; }
  .ws-sample-spec strong { font-size: 11px; }
  .ws-hero-actions { gap: 8px; }
  .ws-hero-actions .btn { padding-inline: 14px; }
  .ws-page-nav > .container { gap: 4px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-project-image img { transition: none; }
}
