@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Chillax";
  src: url("assets/fonts/Chillax-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Chillax";
  src: url("assets/fonts/Chillax-Semibold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  --peach: #fbf1eb;
  --surface: #fffdfa;
  --ink: #33241d;
  --ink-2: #766259;
  --line: #e7d4c8;
  --coral: #e85744;
  --coral-dark: #ba3f2f;
  --peri-pale: #edeff8;
  --sage-pale: #e4f0e8;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Chillax", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: var(--coral-dark);
  text-underline-offset: 3px;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid #7c8cc9;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(51, 36, 29, 0.08);
  background: rgba(251, 241, 235, 0.92);
  backdrop-filter: blur(14px);
}

.brandlock {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  background: var(--coral);
  -webkit-mask: url("assets/brand/alignlife-mark-ink.svg") center / contain no-repeat;
  mask: url("assets/brand/alignlife-mark-ink.svg") center / contain no-repeat;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.doc-main {
  width: min(100% - 48px, 900px);
  margin-inline: auto;
  padding-block: clamp(88px, 10vw, 140px) 110px;
}

.doc-main > h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-wrap: balance;
}

.doc-updated {
  margin-bottom: 48px;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.doc-note {
  margin: 0 0 56px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(130, 55, 35, 0.08);
}

.doc-main section {
  padding-block: 38px;
  border-top: 1px solid var(--line);
}

.doc-main section:last-child { border-bottom: 1px solid var(--line); }

.doc-main h2 {
  margin: 0 0 17px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

.doc-main h3 {
  margin: 30px 0 10px;
  font-size: 1rem;
}

.doc-main p { max-width: 76ch; }
.doc-main p:last-child { margin-bottom: 0; }
.doc-main ul,
.doc-main ol { padding-left: 24px; }
.doc-main li { margin-block: 9px; padding-left: 5px; }
.doc-main strong { color: var(--ink); }

.doc-table-wrap {
  overflow-x: auto;
  margin-block: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  font-size: 0.83rem;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--coral-dark);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

.tbc {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f5dfb9;
  color: #6e4615;
}

.doc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-block: 24px;
}

.doc-form[hidden],
.doc-success[hidden],
.doc-error[hidden] { display: none; }

.doc-form input {
  min-width: 0;
  min-height: 56px;
  padding: 0 17px;
  border: 1px solid rgba(51, 36, 29, 0.45);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.doc-form input:read-only { background: #f2e7e0; color: var(--ink-2); }

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 13px;
  background: var(--coral);
  color: white;
  cursor: pointer;
  font: 700 0.9rem var(--body);
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms var(--ease);
}

.btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { cursor: wait; opacity: 0.6; transform: none; }

.doc-success,
.doc-error {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.doc-success { background: var(--sage-pale); color: #315d42; }
.doc-error { background: #f7dfd8; color: #963323; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.doc-footer {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  background: #f8e7de;
  color: var(--ink-2);
  font-size: 0.76rem;
}

.doc-footer a { color: var(--ink-2); }
.sep { color: var(--coral); }

@media (max-width: 640px) {
  .site-header { min-height: 66px; padding-inline: 16px; }
  .doc-main { width: min(100% - 30px, 900px); padding-block: 76px 84px; }
  .doc-main > h1 { font-size: clamp(3.5rem, 18vw, 5.4rem); }
  .doc-main section { padding-block: 30px; }
  .doc-form { grid-template-columns: 1fr; }
  .doc-form .btn { width: 100%; }
  .doc-footer { gap: 7px; }
}

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