/* braid.day — colors and type from the Braid brand book.
   Calm Sage (#14B8A6) is too light for text on cream or white, so it is used
   for shapes only; text uses Woven Slate, Braid Indigo or white. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --slate: #1e293b;
  --slate-2: #64748b;
  --indigo: #4338ca;
  --indigo-dark: #3730a3;
  --sage: #14b8a6;
  --cream: #f7f4ef;
  --night: #0f172a;
  --white: #ffffff;
  --line: #e7e2da;
  --muted: #526071; /* slate tuned for 4.5:1 on cream */

  /* Strand colors for the product pictures. */
  --s-work: #4338ca;
  --s-school: #14b8a6;
  --s-sport: #f59e0b;
  --s-family: #e11d48;
  --s-biz: #64748b;

  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 12px 32px -12px rgb(15 23 42 / 0.18);
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--cream);
  font-feature-settings: "tnum";
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-dark); }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgb(247 244 239 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 36px; width: auto; }
.site-header nav { flex: 1; }
.site-header nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--slate); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--indigo); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.signin { color: var(--slate); text-decoration: none; font-weight: 500; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-header nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .site-header nav ul { gap: 18px; font-size: 0.95rem; white-space: nowrap; }
  .header-actions { margin-left: auto; }
  .signin { display: none; }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; text-decoration: none; transition: background 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-dark); color: var(--white); }
.btn-ghost { color: var(--slate); border: 1.5px solid var(--slate); }
.btn-ghost:hover { color: var(--indigo); border-color: var(--indigo); }
.btn-light { background: var(--white); color: var(--indigo); }
.btn-light:hover { background: var(--cream); color: var(--indigo-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* -------------------------------------------------------------- hero */

.breadcrumbs { padding-top: 20px; font-size: 0.9rem; }
.breadcrumbs ol { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { color: var(--muted); }

.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; font-size: 0.85rem; font-weight: 650;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo);
}
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------------------------------------------------- sections */

.band { padding: 72px 0; }
.band:nth-of-type(even) { background: var(--white); }
.intro { color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.band h2 { max-width: 22em; }

.cards {
  display: grid; gap: 20px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.band:nth-of-type(even) .card { background: var(--cream); border-color: transparent; }
.card p { margin: 0; color: var(--muted); }
.more { font-weight: 600; white-space: nowrap; text-decoration: none; }
.more:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split.no-visual { grid-template-columns: 1fr; max-width: 760px; }
.split-copy p { color: var(--muted); }
.split-copy strong { color: var(--slate); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-copy { order: 0; }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 26px; padding-top: 72px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.band:nth-of-type(even) .steps li { background: var(--cream); border-color: transparent; }
.steps li::before {
  content: counter(step); position: absolute; top: 24px; left: 26px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo); color: var(--white); font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--cream); }
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
td { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; color: var(--muted); }
.checklist li strong { color: var(--slate); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* --------------------------------------------------------------- faq */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.1rem; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--indigo);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ----------------------------------------------------------- related */

.related-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related-list a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  color: var(--slate); text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.band:nth-of-type(even) .related-list a { background: var(--cream); border-color: transparent; }
.related-list a:hover { border-color: var(--indigo); transform: translateY(-2px); }
.related-list .eyebrow { margin: 0; font-size: 0.75rem; }
.related-list span:last-child { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------- final cta */

.final-cta { background: var(--night); color: var(--white); text-align: center; padding: 88px 0; }
.final-cta h2 { margin: 0 auto 12px; max-width: none; }
.final-cta p { color: #cbd5e1; font-size: 1.2rem; margin-bottom: 28px; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--night); color: #cbd5e1; padding: 56px 0 28px; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand p { margin-top: 14px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 0.9rem; color: #94a3b8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.not-found { padding: 96px 0 120px; }

/* ================================================== product pictures */

.mock {
  margin: 0; background: var(--white); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 0.9rem;
}
.mock-label { margin: 0 0 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mock-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); }

.ev {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  color: var(--slate); border-left: 4px solid; background: #f1f5f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev.s-work { border-color: var(--s-work); background: #eef0fb; }
.ev.s-school { border-color: var(--s-school); background: #e7f8f6; }
.ev.s-sport { border-color: var(--s-sport); background: #fef5e6; }
.ev.s-family { border-color: var(--s-family); background: #fdecef; }
.ev.s-biz { border-color: var(--s-biz); background: #f1f5f9; }
i.s-work { background: var(--s-work); }
i.s-school { background: var(--s-school); }
i.s-sport { background: var(--s-sport); }
i.s-family { background: var(--s-family); }
i.s-biz { background: var(--s-biz); }

/* merged week */
.mock-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.chips { display: flex; }
.chips i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--white); margin-left: -5px; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--cream); border-radius: 10px; padding: 8px; min-height: 190px; }
.day b { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.day .ev { font-size: 0.7rem; padding: 6px 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* share */
.mock-share { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.share-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.share-col .ev.tall { min-height: 52px; }
.ev.busy { background: #e2e8f0; border-color: var(--slate-2); color: var(--slate); }
.ev.busy.taller { min-height: 112px; }
.share-arrow { align-self: center; font-size: 1.6rem; color: var(--indigo); }

/* wall display */
.mock-wall { background: var(--slate); padding: 14px; border-radius: 26px; }
.tablet { background: var(--cream); border-radius: 14px; padding: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs span { padding: 6px 14px; border-radius: 999px; font-weight: 650; font-size: 0.8rem; color: var(--muted); background: var(--white); }
.tabs .on { background: var(--slate); color: var(--white); }
.kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kid { display: flex; flex-direction: column; gap: 7px; background: var(--white); border-radius: 12px; padding: 10px; border-top: 5px solid; min-width: 0; }
.kid.s-school { border-color: var(--s-school); }
.kid.s-sport { border-color: var(--s-sport); }
.kid.s-family { border-color: var(--s-family); }
.kid-head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; margin-bottom: 4px; }
.kid-head i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--white); background: var(--slate-2); }
.kid.s-school .kid-head i, .kid-head.s-school i { background: #0f766e; }
.kid.s-sport .kid-head i { background: #b45309; }
.kid.s-family .kid-head i { background: #be123c; }
.kid-head b { font-size: 0.9rem; }
.kid-head em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.kid-head em::before { content: "\2605  "; color: var(--s-sport); }
.mock .chore {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 8px 10px 8px 34px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 0.78rem; font-weight: 600; position: relative;
}
.mock .chore::before {
  content: ""; position: absolute; left: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1;
}
.mock .chore.done { color: var(--muted); text-decoration: line-through; background: #f0fbf9; border-color: #bfe9e3; }
.mock .chore.done::before {
  border-color: var(--sage);
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.mock .chore small { font-weight: 500; color: var(--muted); text-decoration: none; }

/* chores */
.mock-chores { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin-left: auto; margin-right: auto; }
.kid-head.big b { font-size: 1.1rem; }
.kid-head.big i { width: 40px; height: 40px; }
.mock-chores .chore { font-size: 0.9rem; padding: 12px 14px 12px 40px; }
.mock-chores .chore::before { left: 13px; width: 18px; height: 18px; }
.reward { display: flex; justify-content: space-between; font-weight: 650; margin-top: 6px; }
.progress { height: 10px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.progress span { display: block; height: 100%; width: 70%; background: var(--s-sport); border-radius: inherit; }

/* booking */
.booking-day { font-weight: 700; font-size: 1.05rem; margin: 0 0 12px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots span { text-align: center; padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--indigo); color: var(--indigo); font-weight: 650; }
.slots .taken { border-color: var(--line); color: #94a3b8; background: var(--cream); text-decoration: line-through; }
.slots .picked { background: var(--indigo); color: var(--white); }

/* email */
.mock-email { display: grid; gap: 14px; }
.mail { background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.mail p { margin: 0 0 6px; }
.mail b { display: inline-block; width: 64px; color: var(--muted); font-weight: 600; }
.attach { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.82rem; }
.attach::before { content: ""; display: inline-block; width: 10px; height: 12px; margin-right: 8px; border-radius: 2px; background: var(--indigo); vertical-align: -1px; }
.approval { border: 1.5px solid var(--indigo); border-radius: 12px; padding: 14px 16px; }
.approval p { margin: 0 0 10px; }
.approval-actions { display: flex; gap: 8px; }
.approval-actions span { padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 650; font-size: 0.85rem; }
.approval-actions .ok { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

/* calendar links */
.paste { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--slate-2); margin-bottom: 14px; }
.paste span { font-weight: 650; }
.paste em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cal-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--cream); }
.cal-list i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; }
.cal-list span { font-size: 0.8rem; color: var(--muted); }
.cal-list span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 6px; vertical-align: 1px; }

@media (max-width: 520px) {
  .mock { padding: 14px; }
  .week { grid-template-columns: repeat(3, 1fr); }
  .day:nth-child(n + 4) { display: none; }
  .kids { grid-template-columns: repeat(2, 1fr); }
  .kid:nth-child(3) { display: none; }
}

/* Let grid columns shrink below their content's width on small screens. */
.hero-grid > *, .split > *, .cards > *, .steps > *, .related-list > *, .footer-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
}
.day .ev { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.header-inner { min-width: 0; }
@media (max-width: 420px) {
  .logo img { height: 32px; }
  .header-actions .btn-small { padding: 0 12px; font-size: 0.85rem; }
}

/* one day, many calendars */
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.agenda li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; }
.agenda time { font-size: 0.8rem; font-weight: 650; color: var(--muted); text-align: right; }
.agenda .ev { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 0.88rem; }
.agenda .ev small { font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Six cards read better as two rows of three than as four and two. */
@media (min-width: 900px) {
  .cards:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
