/* Pivot website: a contractor's planning sheet. Graph paper, tape-measure yellow, ink and a red pencil. */
:root {
  --paper: #fbf8f1;
  --grid: rgba(120, 160, 215, 0.22);
  --grid-strong: rgba(120, 160, 215, 0.42);
  --ink: #1f2430;
  --muted: #5b6170;
  --tape: #ffc21a;
  --tape-ink: #1b1b1b;
  --pencil: #c73d33;
  --fits: #126b37;
  --card: #ffffff;
  --bezel: #1f2430;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --hand: "Noteworthy", "Bradley Hand", "Segoe Print", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151b;
    --grid: rgba(120, 160, 215, 0.10);
    --grid-strong: rgba(120, 160, 215, 0.20);
    --ink: #f1ede4;
    --muted: #a7aebb;
    --pencil: #ff7a6b;
    --fits: #5fd08a;
    --card: #1c2029;
    --bezel: #05070a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.6 var(--body);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}
/* The tape-measure blade down the left edge. */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 22px;
  background:
    repeating-linear-gradient(to bottom, var(--tape-ink) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(to bottom, transparent 0 16px, var(--tape-ink) 16px 17px, transparent 17px 32px) 0 0 / 10px 100% no-repeat,
    var(--tape);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.12);
  z-index: 1;
}
a { color: inherit; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 0 40px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 1.35rem var(--rounded); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.site-header nav { display: flex; gap: 20px; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; }

/* Type */
h1, h2, h3 { font-family: var(--rounded); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.note { font-family: var(--hand); font-weight: 700; color: var(--pencil); font-size: 1.45rem; display: inline-block; transform: rotate(-3deg); }

/* Buttons */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--tape); color: var(--tape-ink);
  font: 800 1.05rem var(--rounded); text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 40px 0 72px; }
.hero .lead { margin: 22px 0 28px; }
.hero .note { margin-top: 18px; }

/* A phone taped to the page. */
/* Each tape strip reaches 34px past the phone, so the phone always leaves that much room on both sides. */
.phone { position: relative; max-width: min(340px, calc(100% - 68px)); margin: 0 auto; }
.phone .screen {
  border: 10px solid var(--bezel); border-radius: 46px; overflow: hidden; background: var(--card);
  box-shadow: 0 24px 60px rgba(31, 36, 48, 0.28);
}
.phone::before, .phone::after {
  content: ""; position: absolute; top: -12px; width: 118px; height: 34px;
  background: rgba(255, 213, 79, 0.88); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); z-index: 2;
}
.phone::before { left: -34px; transform: rotate(-34deg); }
.phone::after { right: -34px; transform: rotate(32deg); }
.phone.small { max-width: min(280px, calc(100% - 68px)); }

/* Video */
.video { padding: 24px 0 80px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 22px; box-shadow: 0 24px 60px rgba(31, 36, 48, 0.25); background: #000; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 56px 0; }
.feature:nth-of-type(even) .copy { order: 2; }
.feature .copy p { color: var(--muted); font-size: 1.15rem; }
.feature .copy h2 { margin-bottom: 16px; }

/* Privacy band */
.privacy-band {
  margin: 48px 0; padding: 40px; border-radius: 28px; background: var(--card);
  box-shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
}
.privacy-band p { color: var(--muted); font-size: 1.15rem; margin: 12px 0 0; }

/* Closing call */
.closing { text-align: center; padding: 64px 0 40px; }
.closing img { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 20px; }
.closing .lead { margin: 14px auto 28px; }

/* Text pages */
.page { padding: 24px 0 64px; }
.page h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 16px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.page li { margin: 8px 0; }
.meta { color: var(--muted); }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 820px) {
  .wrap { padding: 0 16px 0 34px; }
  .hero, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature:nth-of-type(even) .copy { order: 0; }
  .hero { padding-top: 16px; }
  .privacy-band { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
