/* Greyphase Technologies — site styles */

:root {
  --purple-900: #2E1240;
  --purple-800: #461F5E;
  --purple-600: #8951AB;
  --purple-300: #C9B6DB;
  --purple-100: #EEEBF0;

  --orange-500: #F2A94A;
  --orange-100: #FDEBCF;
  --pink-500: #D04664;

  --gray-50: #FAFBFC;
  --gray-200: #EDEEF0;
  --gray-300: #E2E4E8;
  --gray-500: #8A9099;
  --gray-700: #545454;
  --gray-900: #1A1C1F;

  --success-bg: #D3EADD; --success-fg: #1F7A4D;
  --warning-bg: #FFEFC7; --warning-fg: #B5790A;
  --danger-bg: #FFE0D2;  --danger-fg: #D0452F;

  --text-body: var(--gray-700);
  --text-muted: var(--gray-500);
  --border: var(--gray-300);
  --focus: #2B84FF;

  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-md: 0 4px 12px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 28px rgba(16,24,40,.12);

  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text-body);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
[hidden] { display: none !important; }
img, svg { display: block; }
a { color: var(--purple-800); text-decoration: none; }
a:hover { color: var(--purple-900); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--purple-800); color: #fff; padding: 8px 12px; border-radius: 8px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-600);
}
.eyebrow.muted { color: var(--text-muted); }
.eyebrow.orange { color: var(--orange-500); }

.h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--gray-900);
  font-weight: 800;
  text-wrap: balance;
}

.ph {
  background: var(--orange-100);
  border-radius: 4px;
  padding: 0 4px;
}
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s cubic-bezier(.4,0,.2,1), border-color .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple-800); color: #fff; }
.btn-primary:hover { background: var(--purple-900); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--gray-900); background: #fff; }
.btn-ghost:hover { border-color: var(--purple-300); background: var(--gray-50); color: var(--gray-900); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; letter-spacing: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--gray-900); }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-size: 21px; letter-spacing: -.03em; line-height: 1; }
.wordmark .g { font-weight: 400; color: var(--gray-500); }
.wordmark .p { font-weight: 800; color: var(--purple-800); }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--text-body); }
.nav a:not(.btn):hover { color: var(--gray-900); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--gray-900);
  font-weight: 300;
  text-wrap: balance;
}
.hero h1 strong { font-weight: 900; color: var(--purple-800); }
.hero-lede { margin: 0; font-size: 19px; line-height: 1.6; max-width: 520px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Decorated card frames */
.frame { position: relative; padding: 28px; }
.frame-bg { position: absolute; inset: 0; border-radius: 40px; background: var(--purple-100); }
.pill { position: absolute; border-radius: 999px; }
.frame-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.person { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  background: var(--purple-800);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
}
.person-name { font-weight: 700; color: var(--gray-900); font-size: 17px; }
.person-role { font-size: 14px; color: var(--text-muted); }

.status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  color: var(--warning-fg);
  font-weight: 600; font-size: 14px;
}
.status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.status.open { background: var(--success-bg); color: var(--success-fg); }
.status.booked { background: var(--danger-bg); color: var(--danger-fg); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; color: var(--gray-900); font-weight: 500; }

/* ---------- Trust strip ---------- */

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--gray-50); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.strip-grid div { display: flex; flex-direction: column; gap: 4px; }
.strip-grid strong { font-weight: 700; color: var(--gray-900); }
.strip-grid span { font-size: 14px; }

/* ---------- Services ---------- */

.services { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.card:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); }
.card-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--purple-100);
  color: var(--purple-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.card h3 { margin: 0; font-size: 20px; color: var(--gray-900); font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.card-stack { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-200); font-size: 13px; color: var(--text-muted); }

/* ---------- Process ---------- */

.process { padding-top: 72px; padding-bottom: 40px; }
.process-panel {
  background: var(--purple-800);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #fff;
}
.process-panel .h2 { color: #fff; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px;
}
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--purple-600); padding-top: 18px; }
.step-n { font-size: 13px; font-weight: 700; color: var(--orange-500); }
.step-t { font-size: 19px; font-weight: 700; color: #fff; }
.step-b { font-size: 15px; line-height: 1.6; color: var(--purple-100); }

/* ---------- About ---------- */

.about {
  padding-top: 96px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: center;
}
.about .frame { max-width: 480px; width: 100%; }
.about .frame-bg { border-radius: 32px; background: var(--orange-100); }
.about .frame-card { box-shadow: var(--shadow-md); gap: 22px; }
.chips-group { display: flex; flex-direction: column; gap: 8px; }
.chips-label { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; }
.chips.solid li { border-color: transparent; background: var(--purple-100); color: var(--purple-800); font-weight: 600; }
.about-copy { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.about-copy p { margin: 0; font-size: 17px; line-height: 1.7; text-wrap: pretty; }

/* ---------- Contact ---------- */

.contact {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px;
  align-items: start;
}
.contact-main { display: flex; flex-direction: column; gap: 24px; }
.contact-main > .section-head p { margin: 0; font-size: 16px; line-height: 1.6; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--gray-900); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .12s, box-shadow .12s;
}
.field input { height: 40px; padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(43,132,255,.30); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { font-size: 13px; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--success-bg);
  color: var(--success-fg);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}
.notice a { color: inherit; text-decoration: underline; }

.biz {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.biz dl { margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.biz dl div { display: flex; flex-direction: column; gap: 2px; }
.biz dt { font-size: 13px; color: var(--text-muted); }
.biz dd { margin: 0; color: var(--gray-900); font-weight: 600; line-height: 1.5; }
.biz dd a { font-weight: 600; }

/* ---------- Policy pages ---------- */

.policy { max-width: 780px; width: 100%; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 28px; }
.back { font-size: 14px; font-weight: 600; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray-900);
  font-size: 14px; font-weight: 600;
}
.tabs a:hover { text-decoration: none; border-color: var(--purple-300); }
.tabs a[aria-current="page"] { background: var(--purple-800); border-color: var(--purple-800); color: #fff; }
.policy-head { display: flex; flex-direction: column; gap: 8px; }
.policy h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; color: var(--gray-900); font-weight: 800; line-height: 1.1; }
.policy-meta { font-size: 14px; color: var(--text-muted); }
.policy section { display: flex; flex-direction: column; gap: 8px; }
.policy h2 { margin: 0; font-size: 20px; color: var(--gray-900); font-weight: 700; }
.policy p { margin: 0; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.policy-note { padding: 20px; border-radius: var(--radius-lg); background: var(--purple-100); color: var(--purple-800); font-size: 15px; line-height: 1.6; }
.policy-note a { font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer { background: var(--purple-900); color: var(--purple-300); }
.footer-inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.footer-brand .logo svg { width: 30px; height: 30px; }
.footer-brand .wordmark { font-size: 19px; }
.footer-brand .wordmark .g { color: var(--purple-300); }
.footer-brand .wordmark .p { color: #fff; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols strong { color: #fff; font-weight: 600; }
.site-footer a { color: var(--purple-300); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(201,182,219,.25);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
