/* The BowerBook product site. Palette from server/admin/admin.css, the mark
   and lockup from server/admin/brand. Fraunces for headings (close to the
   wordmark), the system sans for everything else. No JavaScript. */

:root {
  --cream: #FBF8F2; --paper: #FFFFFF; --charcoal: #3A332D; --muted: #7A6E66;
  --sage-light: #EDEFE3; --sage: #888D6E; --sage-dark: #5F6648;
  --taupe-light: #F1EBE0; --linen: #E3D2B9; --line: #E6DFD3;
  --honey: #D9B08C; --honey-hover: #CC9F7A; --clay: #85766A;
  --brown: #5E4A3B; --bark: #7F6651;
  --blue: #5D768F; --blue-dark: #46607A; --blue-light: #E7EDF3;
  --terracotta: #C58F6B; --amber: #FFF4D6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 70rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px; --shadow: 0 1px 2px rgba(58, 51, 45, .06), 0 12px 32px -16px rgba(58, 51, 45, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: .15em; }
h1, h2, h3 { font-family: var(--serif); color: var(--brown); line-height: 1.15; margin: 0 0 .5rem; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--charcoal); max-width: 36em; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: .8rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brown); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* Draft mode */
.draft-banner { background: var(--brown); color: #fff; text-align: center; padding: .5rem 1rem; font-size: .9rem; }
.draft-note { background: var(--amber); border-left: 4px solid #D4A84B; padding: .6rem .9rem; margin: .8rem 0; font-size: .92rem; border-radius: 0 8px 8px 0; }
.gap { background: var(--amber); padding: 0 .25rem; border-radius: 3px; }

/* Header */
.top { background: rgba(251, 248, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__inner { max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--brown); text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 2.4rem; width: auto; }
.top__nav { display: flex; gap: .2rem 1.3rem; flex-wrap: wrap; margin-left: auto; }
.top__nav a { color: var(--bark); text-decoration: none; padding: .35rem 0; font-weight: 500; }
.top__nav a:hover { color: var(--brown); }
.top__nav a[aria-current] { color: var(--brown); box-shadow: inset 0 -2px 0 var(--sage); }
.top__actions { display: flex; align-items: center; gap: 1rem; }
.top__signin { color: var(--bark); text-decoration: none; font-weight: 500; }
@media (max-width: 40rem) {
  .top__nav { order: 3; width: 100%; margin-left: 0; font-size: .95rem; }
  .top__actions { margin-left: auto; }
  .top__signin { display: none; }
}

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--honey); color: var(--brown); }
.btn--primary:hover { background: var(--honey-hover); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--linen); }
.btn--ghost:hover { border-color: var(--bark); }
.btn--light { background: var(--cream); color: var(--brown); }
.btn--light:hover { background: #fff; }
.btn--small { padding: .55rem 1.1rem; font-size: .95rem; background: var(--honey); color: var(--brown); }
.btn--small:hover { background: var(--honey-hover); }
.btn--gap { cursor: default; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--sage-light); }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40em; margin-bottom: 2rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.narrow { max-width: 44rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.hero h1 { max-width: 13em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: 1.6rem 0 .6rem; }
.hero__note { color: var(--muted); font-size: .95rem; }
.hero__art { display: flex; justify-content: center; }

/* The phone mock-up: Jot, as it looks on a home screen */
.phone { width: min(20rem, 100%); background: var(--charcoal); border-radius: 2.6rem; padding: .65rem; box-shadow: 0 30px 50px -30px rgba(58, 51, 45, .55), 0 0 0 1px rgba(0,0,0,.08); transform: rotate(-2deg); }
.phone__screen { background: var(--cream); border-radius: 2.1rem; overflow: hidden; font-size: .88rem; line-height: 1.4; }
.app-bar { display: flex; align-items: center; gap: .5rem; padding: 1.3rem 1rem .7rem; background: var(--sage-light); border-bottom: 3px solid var(--sage); color: var(--brown); font-weight: 700; }
.app-bar img { height: 1.5rem; width: auto; }
.app-bar small { margin-left: auto; font-weight: 500; color: var(--sage-dark); }
.app-body { padding: .9rem; display: grid; gap: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { padding: .25rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--bark); }
.chip--on { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; color: var(--charcoal); }
.note__kind { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.photo { display: flex; align-items: center; gap: .6rem; background: var(--blue-light); color: var(--blue-dark); border-radius: 12px; padding: .6rem .8rem; }
.photo span:first-child { width: 2.2rem; height: 2.2rem; border-radius: 8px; background: linear-gradient(135deg, var(--sage) 0 50%, var(--honey) 50% 100%); flex: none; }
.save { background: var(--honey); color: var(--brown); font-weight: 700; text-align: center; padding: .7rem; border-radius: 999px; }
.offline { font-size: .78rem; color: var(--sage-dark); text-align: center; padding-bottom: .6rem; }

/* Three cards */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--tone, var(--sage)); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.2rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(58, 51, 45, .06), 0 22px 40px -18px rgba(58, 51, 45, .35); }
.cards > .card:nth-child(1) { --tone: var(--sage); }
.cards > .card:nth-child(2) { --tone: var(--blue); }
.cards > .card:nth-child(3) { --tone: var(--honey); }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card__mark { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--sage-light); display: grid; place-items: center; margin-bottom: .9rem; color: var(--sage-dark); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.card__mark--honey { background: #F6E7D3; color: var(--bark); }
.card__mark--blue { background: var(--blue-light); color: var(--blue-dark); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; } }
.steps li { counter-increment: step; position: relative; padding-top: 3rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--brown); color: var(--cream); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; color: var(--brown); font-family: var(--serif); font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--charcoal); font-size: .98rem; }

/* Split sections */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--flip > :first-child { order: 2; } }
.split h2 { margin-bottom: .8rem; }
.split ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.split li { margin-bottom: .4rem; }

/* Evidence mock-up: a paragraph of the day's story with the notes behind it */
.story { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); max-width: 30rem; margin: 0 auto; }
.story__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.story__head b { color: var(--brown); font-family: var(--serif); font-size: 1.1rem; }
.story p { font-size: .98rem; }
.cite { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--blue-dark); background: var(--blue-light); border-radius: 6px; padding: 0 .4rem; vertical-align: middle; margin-left: .15rem; }
.story__notes { border-top: 1px dashed var(--line); margin-top: .8rem; padding-top: .8rem; font-size: .85rem; color: var(--muted); display: grid; gap: .35rem; }
.story__notes span { display: flex; gap: .5rem; }
.story__actions { display: flex; gap: .6rem; margin-top: 1rem; }
.story__actions span { padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.story__actions .ok { background: var(--honey); color: var(--brown); }
.story__actions .edit { border: 1px solid var(--linen); color: var(--bark); }

/* Duties list mock-up */
.duties { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 30rem; margin: 0 auto; overflow: hidden; font-size: .92rem; }
.duties div { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.duties div:last-child { border-bottom: 0; }
.duties small { color: var(--muted); display: block; }
.due { font-weight: 700; white-space: nowrap; }
.due--ok { color: var(--sage-dark); } .due--soon { color: #B07A1E; } .due--over { color: #B3413A; }

/* Pricing */
.price-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); }
.price h3 { margin: 0 0 .3rem; }
.price__amount { font-family: var(--serif); font-size: 2.6rem; color: var(--brown); line-height: 1; margin: .5rem 0 .2rem; }
.price__amount small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 400; }
.price__per { color: var(--muted); margin-bottom: 1rem; }
.price ul { padding-left: 1.2rem; margin: 0; }
.price li { margin-bottom: .35rem; }
.price-note { background: var(--sage-light); border-radius: 12px; padding: 1rem 1.2rem; }
.example { display: grid; gap: .6rem; margin: 1rem 0; }
.example div { display: flex; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; }
.example b { white-space: nowrap; }

/* Contact form */
.split--top { align-items: start; }
.form { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--brown); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--charcoal); background: var(--cream); border: 1px solid var(--linen); border-radius: 10px; padding: .65rem .8rem; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.form textarea { resize: vertical; min-height: 8rem; }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 46rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 700; color: var(--brown); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; }

/* Feature pages */

/* Final call */
.band { background: var(--sage-dark); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.band h2 { color: var(--cream); }
.band p { color: var(--sage-light); max-width: 34em; margin: 0 auto 1.4rem; }
.band .btn--primary { background: var(--honey); }
.band .gap { color: var(--charcoal); }

/* Prose pages (privacy) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--sage-light); color: var(--brown); }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.foot { background: var(--taupe-light); border-top: 1px solid var(--line); color: var(--bark); font-size: .93rem; }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter) 2rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .foot__inner { grid-template-columns: 1.4fr 1fr 1.2fr; } .foot__legal { grid-column: 1 / -1; } }
.foot__brand img { height: 2.6rem; width: auto; }
.foot__name { font-family: var(--serif); font-weight: 700; color: var(--brown); font-size: 1.3rem; margin: .4rem 0 0; }
.foot__tag { margin: 0; color: var(--muted); }
.foot__col h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.foot__col a { display: block; color: var(--brown); text-decoration: none; margin-bottom: .35rem; }
.foot__col a:hover { text-decoration: underline; }
.foot__col p { margin: 0 0 .4rem; }
.foot__legal { border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--muted); font-size: .88rem; }
.foot__legal p { margin: 0 0 .3rem; }

/* Feature groups: each has its own colour, from the app's tone palette (admin.css) */
.tone-sage  { --tone: #5F6648; --edge: #7FA37A; --tint: #EDEFE3; }
.tone-blue  { --tone: #46607A; --edge: #6F8FB5; --tint: #E7EEF7; }
.tone-plum  { --tone: #6B5A8E; --edge: #8A78AE; --tint: #EDE8F4; }
.tone-clay  { --tone: #8F5646; --edge: #B97A68; --tint: #F6E7E3; }
.tone-honey { --tone: #8A6420; --edge: #C9993A; --tint: #FBF0D9; }
.tone-bark  { --tone: #5E4A3B; --edge: #A39686; --tint: #F1EBE0; }
.page-band { background: linear-gradient(135deg, var(--sage-light) 0%, var(--blue-light) 55%, #FBF0D9 100%); border-bottom: 1px solid var(--line); padding-bottom: 2.5rem; }
.page-band .section__head { margin-bottom: 0; }
.feature-group { margin-bottom: 3rem; }
.feature-group h2 { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.feature-group h2::before { content: ""; width: .9rem; height: .9rem; border-radius: 50%; background: var(--edge, var(--sage)); box-shadow: 0 0 0 5px var(--tint, var(--sage-light)); flex: none; }
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
@media (min-width: 48rem) { .features:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
.feature { position: relative; background: linear-gradient(180deg, var(--tint, var(--sage-light)) 0, var(--paper) 4.5rem); border: 1px solid var(--line); border-top: 4px solid var(--edge, var(--sage)); border-radius: 14px; padding: 1.1rem 1.2rem 1.2rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); background: var(--tint, var(--sage-light)); border-color: var(--edge, var(--sage)); box-shadow: 0 2px 4px rgba(58, 51, 45, .06), 0 22px 40px -18px rgba(58, 51, 45, .35); }
.feature h3 { font-size: 1.08rem; margin-bottom: .35rem; color: var(--tone, var(--brown)); }
.feature p { margin: 0; font-size: .97rem; }
.price { transition: transform .2s ease, box-shadow .2s ease; border-top: 4px solid var(--honey); }
.price:nth-child(2) { border-top-color: var(--sage); }
.price:hover, .duties:hover, .story:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(58, 51, 45, .06), 0 22px 40px -18px rgba(58, 51, 45, .35); }
.duties, .story { transition: transform .2s ease, box-shadow .2s ease; }
.faq details { transition: border-color .2s ease, background-color .2s ease; }
.faq details:hover, .faq details[open] { border-color: var(--sage); background: #FDFCF8; }
@media (prefers-reduced-motion: reduce) { .card, .feature, .price, .duties, .story { transition: none; } .card:hover, .feature:hover, .price:hover, .duties:hover, .story:hover { transform: none; } }
