/* ==========================================================
   Techtiq — studio theme
   Palette: cool paper, indigo ink, Techtiq violet, sun yellow
   Type:    Bricolage Grotesque (self-hosted, variable)
   ========================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #EEF0F6;
  --surface: #FFFFFF;
  --ink: #17153A;
  --ink-2: #4A4870;
  --ink-3: #6F6D92;
  --line: rgba(23, 21, 58, 0.12);
  --brand: #5B3DF5;
  --brand-deep: #4527E0;
  --brand-soft: #DCD5FF;
  --sun: #FFC83D;

  --font: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms var(--ease), background-color 160ms ease,
    border-color 160ms ease, color 160ms ease;
}
.btn:active, .btn.is-pressed { transform: scale(0.96); transition-duration: 70ms; }

.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-deep); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2760; }

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

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.375rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px 7px 7px 2px;
  background: var(--brand);
  box-shadow: inset -7px -7px 0 var(--sun);
}

/* ---------- Navigation (translucent, sticky) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(238, 240, 246, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav__links a:hover { background: rgba(23, 21, 58, 0.06); color: var(--ink); }
.nav__links a[aria-current] { color: var(--brand); }

.nav__cta { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 260ms var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }

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

.hero__title {
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Studio preview (the one bold thing) ---------- */
.studio__picker {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  margin-bottom: 18px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 1px 0 var(--line);
}
.studio__picker button {
  position: relative;
  z-index: 1;
  min-width: 84px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 0.9375rem/1 var(--font);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.studio__picker button[aria-checked="true"] { color: #fff; }
.studio__pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: 38px;
  width: 84px;
  border-radius: 999px;
  background: var(--ink);
  will-change: transform;
}

.studio__note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Browser frame */
.browser {
  --s-bg: #FBEFE1;
  --s-ink: #3B1D0C;
  --s-accent: #B4511F;
  --s-soft: #F3D9BD;
  --s-radius: 18px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 1px 0 rgba(23, 21, 58, 0.06),
    0 30px 60px -20px rgba(23, 21, 58, 0.28),
    0 12px 24px -12px rgba(23, 21, 58, 0.18);
  transform: rotate(-1.2deg);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  background: #F6F6FA;
  border-bottom: 1px solid var(--line);
}
.browser__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #D9D8E5;
}
.browser__url {
  margin-left: 14px;
  flex: 1;
  max-width: 260px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.site {
  padding: 22px 24px 26px;
  background: var(--s-bg);
  color: var(--s-ink);
  transition: background-color 450ms var(--ease), color 450ms var(--ease);
}

.site__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.site__links { display: flex; gap: 10px; }
.site__links i {
  width: 34px;
  height: 7px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.25;
}

.site__hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}
.site__h {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.site__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: var(--s-radius);
  background: var(--s-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 450ms var(--ease), border-radius 450ms var(--ease);
}

.site__art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--s-radius);
  background: var(--s-soft);
  overflow: hidden;
  transition: background-color 450ms var(--ease), border-radius 450ms var(--ease);
}
.site__art span {
  position: absolute;
  background: var(--s-accent);
  transition: all 600ms var(--ease);
}
/* bakery: a scored loaf */
.site__art span:nth-child(1) { left: 12%; right: 12%; top: 30%; bottom: 22%; height: auto; border-radius: 50% 50% 16px 16px / 75% 75% 16px 16px; }
.site__art span:nth-child(2),
.site__art span:nth-child(3) { top: 40%; width: 7%; height: 26%; border-radius: 99px; background: var(--s-soft); opacity: 1; transform: rotate(28deg); }
.site__art span:nth-child(2) { left: 37%; }
.site__art span:nth-child(3) { left: 57%; }
.browser:not([data-theme="bakery"]) .site__art span { transform: none; background: var(--s-accent); }

.site__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.site__tiles div {
  padding: 10px;
  border-radius: calc(var(--s-radius) * 0.7);
  background: rgba(255, 255, 255, 0.55);
  transition: border-radius 450ms var(--ease), background-color 450ms var(--ease);
}
.site__tiles i {
  display: block;
  height: 42px;
  border-radius: calc(var(--s-radius) * 0.5);
  background: var(--s-soft);
  transition: background-color 450ms var(--ease), border-radius 450ms var(--ease);
}
.site__tiles b {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Text swaps */
[data-field] { transition: opacity 180ms ease; }
.browser.is-swapping [data-field] { opacity: 0; }

/* Themes */
.browser[data-theme="salon"] {
  --s-bg: #FBE9F1; --s-ink: #3E0F28; --s-accent: #B0306E; --s-soft: #F4C9DC; --s-radius: 999px;
}
.browser[data-theme="salon"] .site__art span:nth-child(1) { left: 22%; right: 22%; bottom: 12%; height: 62%; border-radius: 999px 999px 40px 40px; }
.browser[data-theme="salon"] .site__art span:nth-child(2) { left: 10%; top: 10%; width: 30%; height: 30%; border-radius: 50%; opacity: .4; }
.browser[data-theme="salon"] .site__art span:nth-child(3) { right: 8%; top: 40%; width: 22%; height: 22%; border-radius: 50%; opacity: .3; }

.browser[data-theme="clinic"] {
  --s-bg: #E8F3FB; --s-ink: #0B2A42; --s-accent: #0F6FB5; --s-soft: #C8E2F5; --s-radius: 10px;
}
.browser[data-theme="clinic"] .site__art span:nth-child(1) { left: 40%; right: 40%; top: 18%; bottom: 18%; height: auto; border-radius: 6px; }
.browser[data-theme="clinic"] .site__art span:nth-child(2) { left: 18%; top: 40%; width: 64%; height: 20%; border-radius: 6px; opacity: 1; }
.browser[data-theme="clinic"] .site__art span:nth-child(3) { right: 10%; top: 10%; width: 14%; height: 14%; border-radius: 50%; opacity: .3; }

.browser[data-theme="gym"] {
  --s-bg: #15161C; --s-ink: #F4F5F7; --s-accent: #E4F23D; --s-soft: #2A2C36; --s-radius: 4px;
}
.browser[data-theme="gym"] .site__btn { color: #15161C; }
.browser[data-theme="gym"] .site__tiles div { background: rgba(255, 255, 255, 0.06); }
.browser[data-theme="gym"] .site__art span:nth-child(1) { left: 12%; right: 12%; top: 44%; bottom: auto; height: 12%; border-radius: 3px; }
.browser[data-theme="gym"] .site__art span:nth-child(2) { left: 14%; top: 28%; width: 14%; height: 44%; border-radius: 3px; opacity: 1; }
.browser[data-theme="gym"] .site__art span:nth-child(3) { right: 14%; top: 28%; width: 14%; height: 44%; border-radius: 3px; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }

.section__title {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.section__intro {
  margin-top: 16px;
  max-width: 36em;
  font-size: 1.125rem;
  color: var(--ink-3);
}

/* Services: a ruled 2×2 list, not a card grid */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
  margin-top: 56px;
}
.service {
  padding: 32px 0 36px;
  border-top: 1.5px solid var(--ink);
}
.service h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.service p {
  margin-top: 12px;
  max-width: 32em;
  color: var(--ink-2);
}

/* Process: dark band, numbered because it is a sequence */
.section--ink {
  background: var(--ink);
  color: #C9C7E6;
}
.section--ink .section__title { color: #fff; }
.section--ink .section__intro { color: #A9A7CC; }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 72px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}
.steps li:last-child::before { background: var(--sun); color: var(--ink); }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 60px;
  right: -16px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.18);
}
.steps h3 {
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  color: #fff;
}
.steps p { margin-top: 10px; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: 28px;
  background: var(--surface);
}
.plan__name {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.plan__price {
  margin-top: 22px;
  font-size: clamp(3.5rem, 6vw, 4.75rem);
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.plan__cur {
  font-size: 0.45em;
  vertical-align: 0.75em;
  margin-right: 2px;
  letter-spacing: 0;
}
.plan__term { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-3); }
.plan__fit { margin: 24px 0 32px; color: var(--ink-2); flex: 1; }
.plan .btn { align-self: flex-start; }

.plan--feature {
  background: var(--brand);
  color: #E8E3FF;
}
.plan--feature .plan__name,
.plan--feature .plan__price { color: #fff; }
.plan--feature .plan__term,
.plan--feature .plan__fit { color: #D8D0FF; }
.plan--feature .btn--brand { background: #fff; color: var(--brand); }
.plan--feature .btn--brand:hover { background: var(--sun); color: var(--ink); }
.plan__badge {
  position: absolute;
  top: 34px;
  right: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

/* Contact */
.section--contact { padding-top: 40px; }
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  padding: 64px;
  border-radius: 36px;
  background: var(--surface);
}
.contact__list { margin-top: 40px; display: grid; gap: 20px; }
.contact__list span {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.contact__list a {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration-color: var(--brand-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  word-break: break-word;
}
.contact__list a:hover { text-decoration-color: var(--brand); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--paper);
  font: 400 1rem/1.4 var(--font);
  color: var(--ink);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.16);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #D93A4A; }
.form__submit { justify-self: start; margin-top: 6px; }
.form__status { min-height: 1.5em; font-size: 0.9375rem; color: var(--ink-2); }
.form__status.is-error { color: #C22E3D; }

/* Footer */
.footer { padding: 48px 0 56px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .browser { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps li:nth-child(2)::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .contact { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 24px;
    background: var(--paper);
    box-shadow: 0 24px 40px -24px rgba(23, 21, 58, 0.25);
    border-bottom: 1px solid var(--line);
    transform-origin: top right;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms var(--ease), opacity 200ms ease, visibility 0s 280ms;
  }
  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 280ms var(--ease), opacity 200ms ease;
  }
  .nav__links a { font-size: 1.25rem; padding: 12px 8px; }

  .hero { padding: 40px 0 72px; }
  .section { padding: 80px 0; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .contact { padding: 28px 22px; border-radius: 28px; }
  .studio__picker { display: grid; width: 100%; }
  .studio__picker button { min-width: 0; padding: 0 6px; }
  .site { padding: 18px 16px 20px; }
  .site__links { display: none; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
  .btn:active, .btn.is-pressed { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .nav__links { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(23, 21, 58, 0.5); --ink-3: #4A4870; }
  .field input, .field select, .field textarea { border-color: var(--ink-2); }
}
