/*
  MyShoebox — public site.

  Hand-written CSS with no framework and no build step. The whole file is
  ~9KB and Caddy serves it straight from disk, so the page paints before a
  framework would have finished parsing.

  The palette is a soft muted red on warm white. Deliberately not the dark
  theme the client portal uses: this page is read once by someone deciding
  whether to trust us, often printed or screenshotted, and a dark marketing
  page reads as a developer tool rather than an accounting product.
*/

/* ---------------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------------- */

:root {
  /* The brand red, muted. --brand is the one that appears on buttons and
     headings; --brand-deep is for the hover state and the footer, where a
     flatter red stops the page feeling like it is flashing. */
  --brand: #a8514f;
  --brand-deep: #8d4240;
  --brand-soft: #f3e6e4;
  --brand-tint: #fbf5f4;

  /* Warm white rather than #fff. Pure white against a red accent has a
     clinical glare that a slightly warm paper tone does not. */
  --paper: #fdfbfa;
  --paper-raised: #ffffff;

  --ink: #2b2320;
  --ink-soft: #6b5f5a;
  --ink-faint: #9a8d87;
  --rule: #e8dedb;

  --measure: 62ch; /* comfortable reading width */
  --page: 1140px; /* maximum layout width */
  --gutter: clamp(20px, 5vw, 56px);

  --radius: 12px;
  --radius-lg: 20px;

  /* A single shadow, used sparingly. More than one depth makes a flat page
     look accidentally three-dimensional. */
  --lift: 0 1px 2px rgba(43, 35, 32, 0.04), 0 8px 24px rgba(43, 35, 32, 0.06);

  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Anchored sections land below the sticky header rather than under it. */
  scroll-padding-top: 90px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.021em;
  /* Evens out the line lengths instead of leaving one word stranded on the
     last line. Ignored by browsers that do not know it, which is the right
     kind of enhancement for a headline. */
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 650;
}
h3 {
  font-size: 1.14rem;
  font-weight: 640;
}
/* `pretty` only prevents orphans, so it is safe on long paragraphs where
   `balance` would be expensive and would make the rag look artificial. */
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-deep);
}

/* Visible focus everywhere, not just on buttons. Accountants use keyboards. */
:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 250, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 680;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img {
  width: 34px;
  height: 34px;
  display: block;
}
.brand span small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin-top: -3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* The two sign-in routes are the point of the header, so they are the only
   things in it that look like controls. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-deep);
  color: #fff;
}
.btn--outline {
  border-color: var(--rule);
  color: var(--ink);
  background: var(--paper-raised);
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn--ghost {
  color: var(--ink-soft);
}
.btn--ghost:hover {
  color: var(--brand);
  background: var(--brand-tint);
}
.btn--lg {
  padding: 14px 26px;
  font-size: 1.02rem;
}

/* Below 760px the two sign-in buttons would wrap under the logo and push the
   header to two rows, so the quieter one loses its label. */
@media (max-width: 760px) {
  .btn--ghost {
    display: none;
  }
  .brand span small {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 7vw, 80px);
  background: radial-gradient(1200px 420px at 72% -8%, var(--brand-soft), transparent 68%),
    var(--paper);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------------------
   Phone mock
   --------------------------------------------------------------------------- */

/* A CSS-drawn phone rather than a screenshot: it stays sharp on any display,
   weighs nothing, and never goes stale when the app's styling changes. */
.phone {
  width: min(290px, 78vw);
  margin-inline: auto;
  border-radius: 34px;
  padding: 11px;
  background: #1a1410;
  box-shadow: var(--lift);
}
.phone__screen {
  border-radius: 25px;
  background: #0f1620;
  padding: 26px 20px 22px;
  min-height: 450px;
  color: #e8edf4;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.phone__bar {
  width: 92px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 auto 10px;
}
.phone__step {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a6;
}
.phone__q {
  font-size: 1.04rem;
  font-weight: 620;
  line-height: 1.35;
}
.phone__opt {
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 0.92rem;
  color: #c9d2de;
}
.phone__opt--on {
  border-color: #c56b6c;
  background: rgba(197, 107, 108, 0.14);
  color: #fff;
}
.phone__shot {
  margin-top: auto;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  padding: 17px;
  text-align: center;
  font-size: 0.87rem;
  color: #8a94a6;
}
.phone__saved {
  font-size: 0.78rem;
  color: #6ea87f;
  text-align: right;
}

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */

section {
  padding: clamp(52px, 8vw, 92px) 0;
}
section.tinted {
  background: var(--brand-tint);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head h2 {
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  margin-bottom: 9px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 15px;
}
.card__icon svg {
  width: 21px;
  height: 21px;
}

/* Numbered steps. The number is the only decorative element on the page. */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 62px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 680;
  font-size: 1.04rem;
}
.step h3 {
  margin-bottom: 7px;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------------------------------------------------------------------------
   Video placeholders
   --------------------------------------------------------------------------- */

/* Real videos are not recorded yet. These are honest placeholders rather than
   stock footage: a stand-in that admits what it is costs nothing, whereas a
   stock video of somebody pointing at a laptop actively misleads. */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--rule);
  background: linear-gradient(135deg, var(--brand-tint), var(--paper-raised));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
}
.video__play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  box-shadow: var(--lift);
}
.video__play svg {
  width: 21px;
  height: 21px;
  margin-left: 3px;
}
.video h3 {
  margin-bottom: 5px;
}
.video p {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------------------
   Split feature
   --------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.ticks svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--brand);
  margin-top: 3px;
}

/* A miniature of the firm console's client table. Same reasoning as the
   phone: drawn, not screenshotted, so it cannot go stale. */
.table-mock {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--lift);
  font-size: 0.82rem;
}
.table-mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--brand-tint);
  font-weight: 640;
  color: var(--ink-soft);
}
.table-mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.table-mock table {
  width: 100%;
  border-collapse: collapse;
}
.table-mock th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 620;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
}
.table-mock td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.table-mock tr:last-child td {
  border-bottom: 0;
}
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 620;
}
.pill--done {
  background: #e4f0e8;
  color: #2d7d46;
}
.pill--open {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.pill--wait {
  background: #f4ecdd;
  color: #8a6116;
}

/* ---------------------------------------------------------------------------
   Call to action
   --------------------------------------------------------------------------- */

.cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 62px);
  text-align: center;
}
.cta h2 {
  color: #fff;
  margin-bottom: 13px;
}
.cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
  margin-inline: auto;
}
.cta .btn--primary {
  background: #fff;
  color: var(--brand);
  margin-top: 28px;
}
.cta .btn--primary:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 44px 0 56px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.site-footer nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand);
}

/* Printed pages drop the interactive furniture. Firms do print these. */
@media print {
  .site-header,
  .hero__actions,
  .cta,
  .video {
    display: none;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
}
