:root {
  color-scheme: light;
  --paper: #f2edeb;
  --surface: #fffcfa;
  --ink: #291c22;
  --muted: #66565d;
  --wine: #63283f;
  --wine-dark: #33111f;
  --line: #dfd4d6;
  --rose: #f1e2e8;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 0 #fff inset, 0 12px 32px -25px #43203166;
}

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

html { min-width: 0; }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: radial-gradient(ellipse at 14% 3%, #fffaf8ab, transparent 58%),
              linear-gradient(128deg, var(--paper) 32%, #ede4e7 100%);
  font: 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
main { flex: 1 0 auto; min-width: 0; }
main:focus { outline: none; }
::selection { color: var(--wine-dark); background: #ead3de; }
:focus-visible { outline: 3px solid #a04e72; outline-offset: 3px; }

h1, h2, h3, p, ul, ol, dl { margin-top: 0; }
h1, h2 {
  margin-bottom: 0.55em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.043em;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.4rem); }
h3 { margin-bottom: 0.42em; font-size: 1.07rem; line-height: 1.32; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--wine); text-underline-offset: 0.18em; }
a:hover { color: var(--wine-dark); }
small, .fine-print { color: var(--muted); font-size: 0.875rem; }

.container {
  width: min(100% - 3.5rem, 76rem);
  margin-inline: auto;
}

.narrow { max-width: 44rem; margin-inline: auto; }
.section { margin-block: clamp(2rem, 5vw, 4.75rem); }
.eyebrow {
  color: var(--wine);
  font-size: 0.83rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
}

.lede { max-width: 55ch; color: var(--muted); font-size: clamp(1.03rem, 1.3vw, 1.16rem); }
.muted { color: var(--muted); }
.stack { display: grid; align-content: start; gap: 1rem; }
.stack > * { margin-block: 0; min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.grid-2, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.68rem 1.02rem;
  border: 1px solid var(--wine);
  border-radius: 0.67rem;
  background: linear-gradient(160deg, #74334e, #572038 85%);
  color: #fffafc;
  box-shadow: 0 1px 0 #ffffff29 inset, 0 4px 9px #54263b26;
  text-align: center;
  text-decoration: none;
  font: 720 0.91rem/1.28 var(--font-body);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  color: #fff;
  background: var(--wine-dark);
  transform: translateY(-1px);
}

.button:active { transform: translateY(0); }
.button.secondary, .button.quiet {
  border-color: #c7b2ba;
  background: var(--surface);
  color: var(--wine);
  box-shadow: 0 1px 0 #fff inset;
}
.button.quiet { border-color: transparent; background: transparent; box-shadow: none; }
.button.secondary:hover, .button.quiet:hover {
  border-color: #c7aab8;
  background: #f3e6ec;
  color: var(--wine-dark);
}
.button.danger { border-color: #793346; background: #793346; color: #fff; }
.button.danger:hover { background: #542235; }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.text-link { color: var(--wine); font-size: 0.93rem; font-weight: 720; }
.text-link:hover { color: var(--wine-dark); }

.card {
  min-width: 0;
  padding: clamp(1rem, 2.1vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.38rem;
}

label, legend { font-weight: 680; font-size: 0.92rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 0.5rem; padding: 0; }

input:not([type="checkbox"], [type="radio"]), select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0.68rem 0.78rem;
  border: 1px solid #cfc0c5;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input::placeholder, textarea::placeholder { color: #776972; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--wine); }
select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%),
                    linear-gradient(135deg, var(--wine) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) center, calc(100% - 0.9rem) center;
  background-size: 0.25rem 0.25rem;
  background-repeat: no-repeat;
}
select[multiple] { background-image: none; }
textarea { min-height: 7rem; resize: vertical; }
.input-help { color: var(--muted); font-size: 0.88rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; }

.notice {
  padding: 0.8rem 1rem;
  border: 1px solid #dfc7d2;
  border-radius: 0.72rem;
  background: #f8eef3;
  color: var(--wine-dark);
}
.notice.success { border-color: #a8c1b1; background: #eff6f0; color: #274d38; }
.notice.error { border-color: #dba8b2; background: #fae9ed; color: #722d42; }

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 1.7rem;
  padding: 0.13rem 0.58rem;
  border: 1px solid #e4cdd8;
  border-radius: 99px;
  background: #f8edf3;
  color: #59243c;
  font-size: 0.82rem;
  font-weight: 720;
}
.status.waiting { border-color: #e5cfaa; background: #faf1df; color: #634824; }
.status.done { border-color: #b8d0bf; background: #ecf5ee; color: #2c573c; }
.status.neutral { border-color: var(--line); background: #f4eeee; color: #60535b; }

.page-heading { margin-bottom: 1.5rem; }
.page-heading .eyebrow { margin-bottom: 0.5rem; }
.page-heading :last-child { margin-bottom: 0; }

.workspace { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); gap: 1.35rem; align-items: start; }
.workspace-main { min-width: 0; }
.workspace-nav {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}
.workspace-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.72rem;
  border-radius: 0.56rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 690;
  text-decoration: none;
}
.workspace-nav a:hover, .workspace-nav a[aria-current="page"] { background: var(--rose); color: var(--wine-dark); }
.empty-state { padding: clamp(1rem, 3vw, 2.6rem); text-align: center; }
.empty-state p { max-width: 40ch; margin-inline: auto; }

.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.63rem 0.74rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.85rem; font-weight: 730; }
tbody tr:last-child td { border-bottom: 0; }

.data-list { margin-bottom: 0; }
.data-list > div { padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.data-list > div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 0.87rem; font-weight: 660; }
dd { margin-inline: 0; }
.message-copy { white-space: pre-wrap; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  background: var(--wine-dark);
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid #e3d7dc;
  background: var(--surface);
  box-shadow: 0 1px 0 #fff inset;
}
.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 70px;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: grid;
  align-items: center;
  justify-self: start;
  width: 112px;
  height: 66px;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #fff;
}
.brand img { width: 112px; margin-block: -23px; }
.desktop-nav, .header-actions, .site-footer-inner nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.5rem);
}
.desktop-nav a, .header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
}
.desktop-nav a:hover, .header-link:hover { color: var(--wine-dark); text-decoration: underline; }
.header-actions { gap: 0.7rem; justify-self: end; }
.header-link { color: var(--wine); white-space: nowrap; }

.mobile-nav { display: none; }
.mobile-nav summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: var(--surface);
  color: var(--wine);
  list-style: none;
  cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { position: absolute; content: ""; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { bottom: -5px; }
.mobile-nav nav {
  position: absolute;
  right: max(1rem, calc((100vw - 76rem) / 2));
  top: calc(100% - 0.25rem);
  display: grid;
  gap: 0.15rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.83rem;
  background: var(--surface);
  box-shadow: 0 14px 30px #3b14242e;
}
.mobile-nav nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--wine);
  font-weight: 640;
  text-decoration: none;
}
.mobile-nav nav a:hover, .mobile-nav nav a:focus-visible { background: var(--rose); }

.home { max-width: 71rem; }
.offer-price { margin: 0; color: var(--wine); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4.3vw, 4.75rem);
  padding-block: clamp(2.75rem, 6vw, 5.35rem) clamp(2.7rem, 5vw, 4.25rem);
}
.hero-copy .eyebrow { margin-bottom: 0.55rem; }
.hero-copy h1 {
  max-width: 10.3em;
  margin-bottom: 0.3em;
  font-size: clamp(3.45rem, 6.25vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}
.hero-copy h1 em { display: block; color: var(--wine); font-weight: inherit; letter-spacing: -0.057em; }
.hero-copy .lede { max-width: 43ch; margin-bottom: 1.35rem; }
.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #d5bac5;
  border-radius: 1.65rem;
  background: #fff;
  box-shadow: 0 18px 34px -18px #5428426f;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 1.42;
  border-radius: 1.33rem;
  object-fit: cover;
}

.home-journey {
  padding-block: clamp(1.1rem, 2.5vw, 1.9rem) clamp(2rem, 5vw, 3.2rem);
  border-top: 1px solid #dcd0d4;
  scroll-margin-top: 1rem;
}
.journey-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 1.13rem;
}
.journey-heading h2 { margin: 0; }
.journey-heading a { display: inline-flex; align-items: center; min-height: 44px; }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.68rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-step {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.86rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.journey-icon {
  display: block;
  margin-bottom: 0.65rem;
  border: 1px solid #e7d2dc;
  border-radius: 0.55rem;
  background: var(--rose);
  stroke: var(--wine);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-step h3 { font-size: 0.97rem; }
.journey-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

.site-footer { border-top: 1px solid #ded0d6; background: #f3ecef; }
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-block: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer-inner p { margin: 0; }
.site-footer-inner nav { flex-wrap: wrap; justify-content: flex-start; }
.site-footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 940px) {
  .site-header-inner { grid-template-columns: 1fr 1fr; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-copy h1 { font-size: clamp(2.8rem, 7vw, 4.2rem); }
  .journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 2rem); }
  .site-header-inner { min-height: 62px; gap: 0.55rem; }
  .brand { width: 96px; height: 56px; }
  .brand img { width: 96px; margin-block: -20px; }
  .header-actions { gap: 0.45rem; }
  .header-link { font-size: 0.83rem; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 2.2rem; padding-bottom: 1.7rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 10vw, 4.5rem); }
  .hero-copy .lede { margin-bottom: 1.1rem; }
  .hero-visual { width: min(100%, 31rem); border-radius: 1.23rem; }
  .hero-visual img { aspect-ratio: 1.64; border-radius: 0.95rem; }
  .hero-actions > a { flex: 1 1 auto; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace, .grid-2, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-nav { display: flex; flex-wrap: wrap; }
  .site-footer-inner { align-items: flex-start; }
}

@media (max-width: 390px) {
  .journey-grid { grid-template-columns: minmax(0, 1fr); }
  .journey-step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0.65rem; }
  .journey-step h3, .journey-step p { grid-column: 2; margin: 0; }
  .journey-icon { grid-row: 1 / 3; margin: 0; }
}

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