/* Tripfold's public pages: the landing page (/) and the docs (/docs). Sea glass tokens, as in docs/design/tokens.css. */
:root {
  color-scheme: light dark;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --fill: #ece7df;
  --ink: #13201f;
  --muted: #56605e;
  --accent: #0e7c7b;
  --on-accent: #ffffff;
  --accent-soft: #d8ecec;
  --accent-ink: #0b5e5d;
  --line: #e4ded4;
  --remote-bg: #d8ecec;
  --remote-fg: #0b5e5d;
  --city-bg: #f8dfd2;
  --city-fg: #9a4320;
  --vac-bg: #ddebd7;
  --vac-fg: #3a6b2e;
  --day-bg: #e9e1f1;
  --day-fg: #5b3f84;
  --shadow: 0 30px 60px rgba(19, 32, 31, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1817;
    --surface: #182322;
    --fill: #22302e;
    --ink: #eaf1ef;
    --muted: #9db0ac;
    --accent: #4fc1b8;
    --on-accent: #052523;
    --accent-soft: #183533;
    --accent-ink: #7fd3cc;
    --line: #26322f;
    --remote-bg: #183533;
    --remote-fg: #7fd3cc;
    --city-bg: #3a2a22;
    --city-fg: #f2a57e;
    --vac-bg: #223322;
    --vac-fg: #a6d58f;
    --day-bg: #2c2438;
    --day-fg: #c9b3ec;
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 8px;
  z-index: 10;
}

/* Top bar */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.logo:hover {
  text-decoration: none;
}
.logo small {
  color: var(--muted);
  font-weight: 500;
  font-size: 19px;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  flex: none;
}
.navlinks {
  display: flex;
  gap: 4px;
  align-items: center;
}
.navlinks a:not(.btn) {
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.navlinks a:not(.btn):hover {
  background: var(--fill);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.c-remote {
  background: var(--remote-bg);
  color: var(--remote-fg);
}
.c-city {
  background: var(--city-bg);
  color: var(--city-fg);
}
.c-vac {
  background: var(--vac-bg);
  color: var(--vac-fg);
}
.c-day {
  background: var(--day-bg);
  color: var(--day-fg);
}

/* Landing */
.hero {
  padding: 40px 0 24px;
}
.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
  max-width: 760px;
}
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 26px;
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stage {
  position: relative;
  margin-top: 40px;
  padding-bottom: 40px;
}
.browser {
  position: relative;
  margin-right: 150px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.browser .bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--fill);
}
.browser .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.browser img {
  display: block;
  width: 100%;
}
.phone {
  width: 250px;
  border-radius: 40px;
  padding: 9px;
  background: #13201f;
  box-shadow: var(--shadow);
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 32px;
}
.stage .phone {
  position: absolute;
  right: 0;
  top: 110px;
}
section.block {
  padding: 56px 0;
}
.block h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.sub {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 640px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
}
.card h3 {
  margin: 14px 0 6px;
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.stat {
  font-size: 30px;
  font-weight: 700;
}
.stat small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.meter {
  height: 8px;
  border-radius: 9px;
  background: var(--fill);
  margin: 8px 0 0;
}
.meter b {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: var(--accent);
}
.types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.types .chip {
  font-size: 15px;
  padding: 7px 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split .phone {
  justify-self: center;
}
.more {
  font-weight: 600;
}
.cal {
  background: var(--surface);
  border-radius: 22px;
  padding: 10px 22px;
  margin: 0;
  list-style: none;
}
.cal li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cal li:first-child {
  border-top: 0;
}
.cal .busy {
  color: var(--muted);
}
.hatch {
  height: 22px;
  width: 46%;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, var(--fill) 0 6px, transparent 6px 12px);
  border: 1px solid var(--line);
}
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.cta-band {
  background: #13201f;
  color: #f6f3ee;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 48px;
  text-align: center;
}
.cta-band h2 {
  color: #f6f3ee;
}
.cta-band p {
  color: #b9c6c3;
  margin: 0 0 24px;
  font-size: 18px;
}
.cta-band .btn-primary {
  background: #4fc1b8;
  color: #052523;
}
footer.foot {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.foot nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer.foot a {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .hero h1 {
    font-size: 48px;
  }
  .browser {
    margin-right: 110px;
  }
  .stage .phone {
    width: 220px;
  }
}
@media (max-width: 1000px) {
  /* iPad in portrait: a smaller phone, so it never runs past the computer into the next section. */
  .browser {
    margin-right: 90px;
  }
  .stage .phone {
    width: 180px;
    top: 70px;
  }
  .split {
    gap: 28px;
  }
  .card {
    padding: 20px;
  }
  .stat {
    font-size: 26px;
  }
}
@media (max-width: 720px) {
  .hide-phone {
    display: none !important;
  }
  .hero {
    padding: 16px 0 8px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .lede {
    font-size: 17px;
  }
  .ctas .btn {
    flex: 1;
  }
  .stage {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }
  .browser {
    display: none;
  }
  .stage .phone {
    position: static;
    width: 260px;
  }
  section.block {
    padding: 40px 0;
  }
  .block h2 {
    font-size: 28px;
  }
  .sub {
    font-size: 16px;
  }
  .grid,
  .steps,
  .split {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 32px 22px;
  }
  footer.foot {
    flex-direction: column;
  }
}

/* Docs */
.docs .wrap {
  max-width: 1240px;
}
.docs .nav {
  border-bottom: 1px solid var(--line);
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 40px;
  padding-top: 28px;
}
.side {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.search {
  display: block;
  margin-bottom: 18px;
}
.search input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.group {
  margin-bottom: 18px;
}
.group h2 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.group a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
}
.group a:hover {
  background: var(--fill);
  text-decoration: none;
}
.group a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
.no-match {
  color: var(--muted);
  font-size: 15px;
  padding: 0 12px;
}
article.doc {
  min-width: 0;
}
.crumb {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.doc h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 6px 0 10px;
}
.intro {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}
.doc h2 {
  font-size: 22px;
  margin: 32px 0 10px;
  scroll-margin-top: 16px;
}
.doc p,
.doc li {
  font-size: 17px;
}
.doc ul {
  padding-left: 22px;
}
.doc ul li {
  margin: 6px 0;
}
.doc ol {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  counter-reset: s;
}
.doc ol li {
  counter-increment: s;
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 18px 16px 64px;
  margin: 0 0 10px;
  min-height: 64px;
}
.doc ol li::before {
  content: counter(s);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.doc ol li strong:first-child {
  display: block;
  margin-bottom: 2px;
}
.doc blockquote {
  margin: 18px 0;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 16px;
  padding: 4px 18px;
}
.doc code {
  background: var(--fill);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
}
.doc th,
.doc td {
  text-align: left;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: 16px;
}
.doc thead th {
  border-top: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.toc {
  position: sticky;
  top: 20px;
  align-self: start;
  font-size: 14px;
}
.toc h2 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 36px 0 60px;
}
.pager a {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
}
.pager a:hover {
  text-decoration: none;
  background: var(--fill);
}
.pager small {
  display: block;
  color: var(--muted);
}
.pager .next {
  grid-column: 2;
  text-align: right;
}
.contents {
  display: none;
}
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
@media (max-width: 720px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
    gap: 0;
  }
  .side {
    display: none;
  }
  .contents {
    display: block;
    margin-bottom: 16px;
    background: var(--surface);
    border-radius: 14px;
  }
  .contents summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .contents summary::-webkit-details-marker {
    display: none;
  }
  .contents summary::after {
    content: "▾";
    color: var(--muted);
  }
  .contents[open] summary::after {
    content: "▴";
  }
  .contents .groups {
    padding: 0 8px 8px;
  }
  .doc h1 {
    font-size: 32px;
  }
  .intro {
    font-size: 17px;
  }
  .doc p,
  .doc li {
    font-size: 16px;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager .next {
    grid-column: 1;
    text-align: left;
  }
  .docs .navlinks .btn {
    padding: 0 16px;
  }
}

.w19 {
  width: 19%;
}
.w25 {
  width: 25%;
}
.w30 {
  width: 30%;
}
[hidden] {
  display: none !important;
}
