/* Personal Oura ETL legal site — self-contained, no fonts, trackers or JS */
:root {
  --ink: #19333c;
  --ink-deep: #0f2933;
  --muted: #5d6c71;
  --soft: #738186;
  --accent: #177a68;
  --accent-dark: #126657;
  --accent-light: #e6f4ee;
  --line: #e3eae8;
  --surface: #ffffff;
  --canvas: #f5f8f7;
  --shadow: 0 18px 55px rgba(19, 45, 53, .055);
  --radius: 23px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0c4f45; }
a:focus-visible { outline: 3px solid #4dc9a2; outline-offset: 4px; border-radius: 3px; }
.shell { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 100; top: -100px; left: 16px;
  padding: 10px 17px; color: white; background: var(--ink-deep);
}
.skip-link:focus { top: 12px; }

/* Navigation */
.site-header {
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid #e6edeb;
}
.header-inner {
  min-height: 92px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  height: 42px; width: 42px; display: grid; place-items: center;
  border: 2.4px solid #1f8877; border-radius: 50%;
  position: relative; transform: rotate(-26deg);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid #1f8877; border-radius: 50%;
}
.brand-mark span { height: 7px; width: 7px; border-radius: 50%; background: #1f8877; }
.brand-type { display: flex; flex-direction: column; gap: 0; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.85px; line-height: 1.05; }
.brand-name > span:first-child { font-weight: 400; }
.brand-period { color: var(--accent); }
.brand-caption { margin-top: 5px; color: #6c7b7d; font-size: 9px; font-weight: 750; letter-spacing: 2.05px; }
.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a {
  color: #53676e; text-decoration: none; font-size: 13px; font-weight: 650;
  border-radius: 10px; padding: 10px 16px; transition: background .18s, color .18s;
}
.site-nav a:hover { background: #f0f5f3; color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-light); color: var(--accent-dark); }

/* Home */
.home-main { padding: 48px 0 106px; }
.hero {
  overflow: hidden; position: relative; isolation: isolate; border-radius: 28px;
  color: white; background:
    radial-gradient(circle at 93% 19%, rgba(39, 170, 143, .16), transparent 31%),
    linear-gradient(116deg, #102f39, #0d2933 65%, #0d353a);
  box-shadow: 0 20px 45px rgba(24, 50, 59, .12);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 530px; height: 530px; right: -230px; top: -250px;
  border: 1px solid rgba(138, 234, 202, .13); border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(121, 228, 197, .023), 0 0 0 145px rgba(121, 228, 197, .021);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: center; gap: 40px; padding: 72px 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: #9de7d2; text-transform: uppercase;
  font-size: 10px; font-weight: 800; letter-spacing: 2.55px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: #81cfb8; }
.hero h1 { max-width: 610px; margin: 24px 0 19px; font-size: clamp(38px, 5vw, 64px); line-height: 1.095; letter-spacing: -2.65px; font-weight: 750; }
.hero h1 em { color: #9de7d2; font-style: normal; }
.hero-intro { max-width: 520px; margin: 0; font-size: 16px; line-height: 1.85; color: #c7d9da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 16px; min-height: 44px; padding: 11px 19px; border-radius: 10px;
  font-size: 13px; line-height: 1.3; font-weight: 750; text-decoration: none;
  transition: transform .18s, background .18s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #103a32; background: #b5f1d9; }
.button-primary:hover { background: #c9ffe8; color: #103a32; }
.button-ghost { color: #effbfa; border: 1px solid rgba(226, 254, 243, .26); }
.button-ghost:hover { background: rgba(255,255,255,.075); color: white; }
.integration-panel {
  background: rgba(255,255,255,.055); border: 1px solid rgba(223,255,245,.145);
  border-radius: 21px; padding: 27px 28px;
  backdrop-filter: blur(7px);
}
.panel-label { margin: 0 0 15px; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: 2px; color: #a1c7c7; }
.panel-item { border-top: 1px solid rgba(229,255,249,.12); padding: 17px 0 13px; }
.panel-item:last-child { padding-bottom: 0; }
.panel-item span { display: block; margin-bottom: 4px; font-size: 11px; color: #a1bbbd; }
.panel-item strong { display: block; font-size: 14px; font-weight: 650; color: #eefbf9; }
.panel-foot { display: flex; align-items: center; gap: 9px; margin-top: 23px; font-size: 11px; color: #a8d9c8; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #54c8a7; box-shadow: 0 0 0 4px rgba(83,200,167,.12); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 68px 0 22px; }
.section-kicker { margin: 0 0 5px; color: #197a67; font-size: 10px; font-weight: 800; letter-spacing: 2.1px; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: 29px; line-height: 1.2; letter-spacing: -.85px; }
.section-heading .section-note { max-width: 330px; margin: 0 0 2px; color: var(--muted); font-size: 13px; text-align: right; }
.document-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.document-card {
  display: flex; flex-direction: column; min-height: 252px;
  padding: 31px 33px; border: 1px solid var(--line); border-radius: var(--radius);
  background: white; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.document-card:hover { color: var(--ink); transform: translateY(-4px); border-color: #c9dfd6; box-shadow: 0 22px 50px rgba(16,55,54,.095); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #eaf6f0; color: #1c7562; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.card-arrow { color: #2f8c79; font-size: 23px; line-height: 1; }
.document-card h3 { margin: 24px 0 8px; font-size: 22px; letter-spacing: -.6px; }
.document-card p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.card-bottom { margin-top: auto; padding-top: 20px; color: #1a7765; font-size: 12px; font-weight: 750; }
.details-strip {
  display: flex; align-items: center; gap: 18px;
  margin-top: 25px; padding: 22px 26px; border: 1px solid #dbe9e3;
  border-radius: 16px; background: #edf5f1;
}
.details-mark { display: grid; place-items: center; flex-shrink: 0; height: 39px; width: 39px; border-radius: 50%; color: #147863; background: #d8ece2; font-weight: 750; font-size: 19px; }
.details-strip strong { display: block; margin-bottom: 3px; font-size: 13px; }
.details-strip p { margin: 0; color: #536a65; font-size: 13px; line-height: 1.65; }
.details-strip a { font-weight: 700; }

/* Legal documents */
.document-outer { padding: 37px 0 95px; }
.document-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 27px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: #567078; text-decoration: none; font-size: 13px; font-weight: 700; }
.back-link:hover { color: #176f60; }
.back-link span { font-size: 20px; line-height: 1; }
.document-type { display: inline-flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 700; letter-spacing: .2px; color: #667b7d; }
.document-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 28px; }
.document-rail { position: sticky; top: 28px; }
.rail-card { padding: 16px 11px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 26px rgba(18, 48, 56, .025); }
.rail-heading { margin: 10px 13px 14px; color: #8b9797; font-size: 10px; font-weight: 850; letter-spacing: 1.9px; }
.rail-card a { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border-radius: 10px; color: #607177; text-decoration: none; font-size: 12px; font-weight: 700; }
.rail-card a:hover { color: #176f60; background: #f4f9f6; }
.rail-card a[aria-current="page"] { background: #e9f5ef; color: #156d5e; }
.rail-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d6e7de; border-radius: 8px; font-size: 10px; color: #2a8a70; }
.rail-note { padding: 30px 13px 0; }
.mini-orbit { display: block; width: 27px; height: 27px; margin-bottom: 14px; border: 2px solid #7fc2ad; border-radius: 50%; box-shadow: inset 0 0 0 6px var(--canvas), inset 0 0 0 8px #7fc2ad; }
.rail-note strong { font-size: 12px; }
.rail-note p { margin: 7px 0; color: #74858a; font-size: 12px; line-height: 1.75; }
.document-paper { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.legal-article { padding: 51px 59px 52px; overflow-wrap: anywhere; }
.legal-article > h1 {
  position: relative; margin: 0 0 22px; padding-top: 20px;
  font-size: clamp(32px, 4vw, 43px); line-height: 1.18; font-weight: 775; letter-spacing: -1.55px;
}
.legal-article > h1::before { content: "LEGAL DOCUMENT"; position: absolute; top: 0; left: 0; color: #1e8c72; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.legal-article > p:first-of-type {
  padding: 17px 20px; margin: 0 0 36px; border-radius: 12px;
  border: 1px solid #dfebe5; background: #f3f8f5;
  color: #4c6866; font-size: 12px; line-height: 2;
}
.legal-article > p:first-of-type strong { color: #274e47; }
.legal-article h2 { margin: 41px 0 13px; padding-top: 6px; font-size: 19px; font-weight: 750; letter-spacing: -.42px; line-height: 1.4; scroll-margin-top: 24px; }
.legal-article h2::before { content: ""; display: block; width: 28px; height: 3px; background: #82cbb3; border-radius: 2px; margin-bottom: 14px; }
.legal-article p { margin: 0 0 17px; color: #52666a; font-size: 14px; line-height: 1.9; }
.legal-article p strong { color: #27454b; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article a { color: #136f5e; font-weight: 650; }
.document-next { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 24px 59px; border-top: 1px solid var(--line); background: #fbfdfc; }
.document-next > span { font-size: 12px; color: #718385; }
.document-next a { font-size: 13px; font-weight: 750; text-decoration: none; }
.document-next a span { margin-left: 7px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { padding: 33px 0 39px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-identity { display: flex; align-items: center; gap: 12px; }
.footer-mark { color: #16856e; font-size: 28px; line-height: 1; }
.footer-identity strong { font-size: 12px; }
.footer-divider { margin: 0 4px; color: #b7c5c4; }
.footer-identity p { margin: 3px 0 0; color: #839194; font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; font-weight: 650; text-decoration: none; color: #60777b; }
.footer-links a:hover { color: #1b826b; }

@media (max-width: 950px) {
  .hero-inner { grid-template-columns: 1fr; gap: 35px; padding: 59px 48px; }
  .integration-panel { max-width: 620px; }
  .document-grid { grid-template-columns: 190px minmax(0,1fr); gap: 19px; }
  .legal-article { padding: 43px 39px; }
  .document-next { padding: 23px 39px; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 30px, 1160px); }
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 18px 0 14px; gap: 13px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 20px; }
  .site-nav { width: 100%; justify-content: center; gap: 4px; }
  .site-nav a { flex: 1; max-width: 135px; text-align: center; padding: 8px 8px; }
  .home-main { padding: 23px 0 60px; }
  .hero { border-radius: 20px; }
  .hero-inner { padding: 44px 26px 29px; gap: 29px; }
  .hero h1 { letter-spacing: -1.6px; margin: 19px 0 17px; }
  .hero-intro { font-size: 14px; line-height: 1.85; }
  .integration-panel { padding: 22px; }
  .section-heading { display: block; margin: 48px 0 20px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading .section-note { text-align: left; margin-top: 11px; }
  .document-cards { grid-template-columns: 1fr; gap: 14px; }
  .document-card { min-height: 220px; padding: 25px; border-radius: 17px; }
  .details-strip { padding: 19px; align-items: start; }
  .document-outer { padding: 22px 0 56px; }
  .document-head { margin-bottom: 18px; }
  .document-grid { grid-template-columns: 1fr; gap: 13px; }
  .document-rail { position: static; }
  .rail-card { display: flex; align-items: center; gap: 6px; padding: 8px; }
  .rail-heading, .rail-note { display: none; }
  .rail-card a { flex: 1; justify-content: center; font-size: 11px; padding: 9px 6px; white-space: nowrap; }
  .rail-icon { display: none; }
  .document-paper { border-radius: 17px; }
  .legal-article { padding: 35px 23px; }
  .legal-article h2 { font-size: 18px; margin-top: 33px; }
  .legal-article p { font-size: 13.5px; }
  .document-next { padding: 22px 23px; }
  .footer-inner { flex-direction: column; align-items: start; padding: 30px 0; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
