/* ==================================================================
   Sheet.Developments -- the site's shared look.

   THE APP'S OWN COLOURS. The software was reworked in September 2026:
   a dark window with a rail of workspaces down the left and a toolbar
   of drawn icons. The site takes its dark surfaces from that window
   (sampled off the screenshots, not guessed), its blue from the app's
   buttons and tab underline, and its green, red and yellow from the
   icon set -- so the pages and the program read as one thing.

   THE DRAFTING SHEET STAYS. Explanations sit on the ruled paper the
   site has always had: the dark bands are the app, the paper is the
   drawing office.

   Every page links this file and keeps only what is its own inline.
   The old token names (--accent, --dark, --card-wash...) are kept as
   aliases so the pages' own rules carry on working.
   ================================================================== */
:root{
  /* the app's window */
  --night:#0c0d10;        /* the rail and the panels */
  --window:#181b21;       /* the window behind them */
  --panel:#20242c;        /* a panel's header */
  --edge:#2e343e;         /* borders on dark */
  --on-dark:#dfe5ec;      /* the icons' ink */
  --on-dark-2:#a9b5c1;
  --on-dark-3:#7d8b98;
  --blue:#3fa9f5;         /* the tab underline */
  --blue-deep:#186ba9;    /* Insert New Part */
  --green:#4cd07d; --red:#ff5a5f; --yellow:#f6d32d;

  /* the drafting sheet */
  --paper:#e6ecf0;
  --grid:rgba(24,60,90,.075); --grid-size:28px;
  --wash:rgba(255,255,255,.52);
  --soft:rgba(24,60,90,.05);
  --ink:#10171f; --body:#39464f; --muted:#56626d; --line:#c6d0d8;
  --link:#145f98;

  --display:"Archivo","Arial Narrow","Segoe UI",sans-serif;
  --text:"IBM Plex Sans","Segoe UI",Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",Consolas,"Courier New",monospace;
  --max:1160px;

  /* the names the pages' own rules still use */
  --bg:var(--paper); --accent:var(--blue-deep); --accent-dark:var(--link);
  --card-wash:var(--wash); --soft-wash:var(--soft);
  --dark:var(--window); --dark-soft:var(--night); --steel:#8ba4b8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0; color:var(--body); font:400 17px/1.65 var(--text);
  -webkit-font-smoothing:antialiased; background-color:var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:var(--grid-size) var(--grid-size);
}
h1,h2,h3{
  color:var(--ink); line-height:1.08; margin:0 0 .5em; font-family:var(--display);
  font-weight:700; font-stretch:88%; text-wrap:balance;
}
h1{font-size:clamp(36px,5.6vw,64px); letter-spacing:-.015em; font-weight:800}
h2{font-size:clamp(27px,3.5vw,38px); letter-spacing:-.01em}
h3{font-size:20px; font-weight:650; line-height:1.2}
p{margin:0 0 1em}
a{color:var(--link)}
a:focus-visible,.btn:focus-visible,button:focus-visible{outline:2px solid var(--blue); outline-offset:3px}
code{font-family:var(--mono); font-size:.9em}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px}
.eyebrow{
  font:500 12.5px/1.2 var(--mono); letter-spacing:.14em; text-transform:uppercase;
  color:var(--link); margin:0 0 14px;
}
.lede{font-size:clamp(18px,2.1vw,21px); color:var(--body); max-width:680px}
.muted{color:var(--muted)}
section{padding:84px 0; border-top:1px solid var(--line); background:transparent}
section.soft{background:var(--soft)}
.num{font-family:var(--mono); font-variant-numeric:tabular-nums}

/* ---- the header: the app's menu bar ---- */
header.site{
  position:sticky; top:0; z-index:30;
  background:rgba(12,13,16,.94); border-bottom:1px solid #1e232b;
  backdrop-filter:saturate(160%) blur(8px);
}
.bar{display:flex; align-items:center; gap:18px; height:62px}
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
  font-family:var(--display); font-stretch:92%; font-size:20px; letter-spacing:-.01em; color:#fff;
}
.brand .mark{color:var(--blue); flex:0 0 auto; display:block}
.brand .name{font-weight:500}
.brand .name b{font-weight:800}
.brand .dot{color:var(--blue); font-weight:800}
.bar nav{margin-left:auto; display:flex; gap:4px; align-items:center}
.bar nav a{
  color:var(--on-dark-2); text-decoration:none; font-size:14.5px; white-space:nowrap;
  padding:19px 10px 17px; border-bottom:2px solid transparent;
}
.bar nav a:hover{color:#fff}
/* The page you are on, underlined the way the app marks its tab. */
.bar nav a[aria-current="page"]{color:#fff; border-bottom-color:var(--blue)}
.bar nav a.nav-cta{
  margin-left:10px; padding:8px 14px; border:0; border-radius:6px;
  background:var(--blue-deep); color:#fff; font-weight:600;
}
.bar nav a.nav-cta:hover{background:#1f7fc6}
@media (max-width:1180px){ .bar nav a.minor{display:none} }
@media (max-width:900px){ .bar nav a:not(.nav-cta){display:none} }
/* A phone: the wordmark and the one button, and a narrower gutter. */
@media (max-width:480px){
  .wrap{padding:0 16px}
  .bar{gap:10px}
  .brand{font-size:17px; gap:8px}
  .bar nav a.nav-cta{margin-left:0; padding:7px 11px; font-size:14px}
}

/* ---- buttons ---- */
.btn{
  display:inline-block; padding:13px 24px; border-radius:7px; font-weight:600;
  font-size:16px; text-decoration:none; border:1px solid transparent; cursor:pointer;
  font-family:var(--text);
}
.btn-primary{background:var(--blue-deep); color:#fff}
.btn-primary:hover{background:#1f7fc6}
.btn-ghost{border-color:rgba(223,229,236,.3); color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.07); border-color:rgba(223,229,236,.55)}
.btn-line{border-color:var(--line); color:var(--ink); background:var(--wash)}
.btn-line:hover{border-color:var(--link)}

/* ---- dark bands: the app's window ---- */
.dark{
  background-color:var(--window); color:var(--on-dark-2); border:0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:var(--grid-size) var(--grid-size);
}
.dark h1,.dark h2,.dark h3{color:#fff}
.dark .eyebrow{color:var(--blue)}
.dark .lede{color:var(--on-dark-2)}
.dark a{color:#8cc8f7}
.dark .muted{color:var(--on-dark-3)}

/* ---- a screenshot of the app, in a window's frame ---- */
.frame{
  display:block; border:1px solid var(--edge); border-radius:10px; overflow:hidden;
  background:var(--night); line-height:0;
  box-shadow:0 22px 48px -24px rgba(6,12,18,.6), 0 2px 6px rgba(6,12,18,.18);
}
.frame img{width:100%; height:auto; display:block}
a.frame:hover{border-color:var(--blue)}
.paper-frame{
  display:block; border:1px solid var(--line); border-radius:8px; overflow:hidden;
  background:#fff; line-height:0; box-shadow:0 10px 30px -18px rgba(16,23,31,.45);
}
.paper-frame img{width:100%; height:auto; display:block}
.caption{font-size:14px; color:var(--muted); margin:12px 0 0; max-width:70ch}
.caption b{color:var(--ink); font-weight:600}
.dark .caption{color:var(--on-dark-3)}
.dark .caption b{color:var(--on-dark)}

/* ---- the app's icons, on its toolbar's tiles ---- */
.ico{
  width:48px; height:48px; flex:0 0 48px; border-radius:9px; display:grid; place-items:center;
  background:var(--window); border:1px solid var(--edge);
}
.ico img{width:34px; height:34px; display:block}
.ico.big{width:60px; height:60px; flex-basis:60px; border-radius:11px}
.ico.big img{width:42px; height:42px}

/* ---- a feature: its icon, its name, what it does ---- */
.feature{display:grid; grid-template-columns:48px minmax(0,1fr); gap:16px; align-items:start}
.feature h3{font-size:19px; margin:2px 0 6px}
.feature p{font-size:15.5px; color:var(--muted); margin:0}
.dark .feature p{color:var(--on-dark-3)}
.features{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px 34px}
.features.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){ .features{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){ .features,.features.two{grid-template-columns:1fr} }

/* ---- layout helpers ---- */
.grid2{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center}
.grid2.top{align-items:start}
.grid3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px}
.stack{display:grid; gap:18px}
@media (max-width:860px){
  /* minmax(0,1fr), not 1fr: a plain 1fr will not shrink below its
     widest word or button, and pushed a phone's page sideways. */
  .grid2,.grid3{grid-template-columns:minmax(0,1fr); gap:32px}
  section{padding:60px 0}
}

/* ---- a notice ---- */
.callout{
  border:1px solid var(--blue-deep); border-left-width:4px; border-radius:10px;
  background:var(--wash); padding:26px 30px; max-width:820px;
}
.callout .tag{
  display:inline-block; font:500 11.5px/1.4 var(--mono); letter-spacing:.1em;
  text-transform:uppercase; color:#fff; background:var(--blue-deep);
  padding:3px 10px; border-radius:4px; margin-bottom:14px;
}
.callout h3{font-size:22px; margin-bottom:10px}
.callout p:last-of-type{margin-bottom:0}

/* ---- the numbers table ---- */
table.figures{border-collapse:collapse; width:100%; font-size:15.5px; margin:6px 0 14px}
table.figures th, table.figures td{padding:9px 12px; border-bottom:1px solid var(--line); text-align:right; font-variant-numeric:tabular-nums}
table.figures th:first-child, table.figures td:first-child{text-align:left}
table.figures thead th{color:var(--muted); font:500 12px/1.3 var(--mono); text-transform:uppercase; letter-spacing:.08em}
table.figures td.bad{color:#b23b3b; font-weight:600}
.table-scroll{overflow-x:auto; max-width:100%}
@media (max-width:480px){
  table.figures{font-size:14px}
  table.figures th, table.figures td{padding:8px 6px}
}

/* ---- the footer: the app's rail ---- */
footer.site{background:var(--night); color:var(--on-dark-3); padding:44px 0; font-size:14.5px; border-top:1px solid #1e232b}
footer.site a{color:var(--on-dark-2); text-decoration:none}
footer.site a:hover{color:#fff}
.foot{display:flex; gap:22px; flex-wrap:wrap; align-items:center}
.foot .sp{margin-left:auto}
.foot b{color:var(--on-dark)}

/* ==================================================================
   THE SITE, NOT ONE PAGE. October 2026: ten pages, the add-ons each
   with their own, and the beta's trial announced on every one. The
   chrome (strip, header, footer) is written by tools/site_chrome.py.
   ================================================================== */

/* ---- the trial strip, above the header ---- */
.trial-strip{
  background:linear-gradient(90deg,#0b2f4f 0%,#145f98 50%,#0b2f4f 100%);
  color:#e8f3fc; font-size:14px; line-height:1.35; border-bottom:1px solid #1f77b8;
}
.trial-strip .wrap{display:flex; align-items:center; justify-content:center; gap:12px; min-height:38px; padding-top:6px; padding-bottom:6px}
.trial-strip b{color:#fff; font-weight:600}
.trial-strip a{color:#fff; font-weight:600; text-decoration:none; white-space:nowrap;
  border-bottom:1px solid rgba(255,255,255,.45); padding-bottom:1px}
.trial-strip a:hover{border-bottom-color:#fff}
.trial-strip .live{
  width:8px; height:8px; border-radius:50%; background:var(--green); flex:0 0 8px;
  box-shadow:0 0 0 0 rgba(76,208,125,.7); animation:live 2.4s infinite;
}
@keyframes live{
  0%{box-shadow:0 0 0 0 rgba(76,208,125,.65)}
  70%{box-shadow:0 0 0 9px rgba(76,208,125,0)}
  100%{box-shadow:0 0 0 0 rgba(76,208,125,0)}
}
@media (prefers-reduced-motion:reduce){ .trial-strip .live{animation:none} }
@media (max-width:760px){ .trial-strip .long{display:none} }

/* ---- the menu's "New", and the phone menu ---- */
.bar nav .new, .menu-panel .new{
  display:inline-block; font:600 10px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase;
  color:#0c0d10; background:var(--green); border-radius:3px; padding:3px 5px 2px; margin-left:4px;
  position:relative; top:-1px;
}
details.menu{display:none; margin-left:2px; position:relative}
details.menu summary{
  list-style:none; cursor:pointer; color:var(--on-dark); display:grid; place-items:center;
  width:40px; height:40px; border-radius:7px; border:1px solid var(--edge);
}
details.menu summary::-webkit-details-marker{display:none}
details.menu[open] summary{background:var(--panel); border-color:var(--blue)}
.menu-panel{
  position:absolute; right:0; top:48px; width:min(300px, calc(100vw - 32px));
  background:var(--night); border:1px solid var(--edge); border-radius:10px; padding:8px;
  box-shadow:0 24px 48px -12px rgba(0,0,0,.6); display:grid; gap:2px;
}
.menu-panel a{color:var(--on-dark); text-decoration:none; padding:11px 12px; border-radius:7px; font-size:15.5px}
.menu-panel a:hover{background:var(--panel)}
.menu-panel a[aria-current="page"]{color:#fff; box-shadow:inset 3px 0 0 var(--blue)}
.menu-panel a.menu-cta{margin-top:6px; background:var(--blue-deep); color:#fff; text-align:center; font-weight:600}
@media (max-width:900px){ details.menu{display:block} .bar nav{margin-left:auto} }
/* The narrowest phones: logo, button and menu in 343 px. */
@media (max-width:420px){ .bar nav a.nav-cta .cta-long{display:none} }
/* Smaller still, the strip above and the menu carry the trial. */
@media (max-width:359px){ .bar nav a.nav-cta{display:none} }

/* ---- the footer, in columns ---- */
footer.site{padding:56px 0 28px}
.foot-grid{display:grid; grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap:36px}
.foot-brand .brand{margin-bottom:14px}
.foot-brand p{max-width:34ch; color:var(--on-dark-3); font-size:14.5px}
footer.site h4{
  margin:4px 0 12px; font:500 11.5px/1.3 var(--mono); letter-spacing:.12em; text-transform:uppercase;
  color:var(--on-dark-2);
}
footer.site ul{list-style:none; margin:0; padding:0; display:grid; gap:8px}
footer.site a.btn{color:#fff}
.foot-base{
  display:flex; flex-wrap:wrap; gap:8px 26px; justify-content:space-between; margin-top:40px;
  padding-top:22px; border-top:1px solid #1e232b; font-size:13.5px;
}
@media (max-width:860px){ .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))} .foot-brand{grid-column:1/-1} }
@media (max-width:480px){ .foot-grid{grid-template-columns:minmax(0,1fr)} }
.btn-small{padding:9px 16px; font-size:14.5px}

/* ---- a page's opening: the add-on pages, the trial ---- */
.page-hero{padding:64px 0 72px; position:relative; overflow:hidden}
.page-hero h1{max-width:17ch}
.page-hero .lede{max-width:720px}
.page-hero .cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:28px}
.page-hero .hero-shot{margin-top:48px}
.crumbs{font:500 12.5px/1.2 var(--mono); letter-spacing:.06em; margin:0 0 18px; color:var(--on-dark-3)}
.crumbs a{color:var(--on-dark-2); text-decoration:none}
.crumbs a:hover{color:#fff}
.badge{
  display:inline-block; font:600 11px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase;
  padding:5px 8px 4px; border-radius:4px; vertical-align:middle;
}
.badge.new{background:var(--green); color:#0c0d10}
.badge.addon{border:1px solid currentColor; color:var(--blue)}
.badge.beta{background:var(--yellow); color:#0c0d10}
.hero-tags{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 18px}

/* A run of figures, set as dimensions on a drawing (as on the home page). */
.dims{display:flex; flex-wrap:wrap; gap:10px 34px; margin-top:22px}
.dims span{
  font:500 13px/1.3 var(--mono); color:var(--on-dark-2); letter-spacing:.02em;
  padding-top:10px; position:relative; min-width:120px;
}
.dims span::before{
  content:""; position:absolute; left:0; right:0; top:0; height:7px;
  border:1px solid var(--blue); border-top:0; border-bottom:0;
  background:linear-gradient(var(--blue),var(--blue)) center/100% 1px no-repeat;
}
.dims b{color:#fff; font-weight:500; display:block; font-size:17px}

/* ---- a feature told beside its picture, alternating sides ---- */
.story{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:56px; align-items:center}
.story.flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.story.flip > .words{order:2}
.story .words h2{margin-bottom:.45em}
.story .words > p{color:var(--body)}
.dark .story .words > p{color:var(--on-dark-2)}
@media (max-width:900px){
  .story,.story.flip{grid-template-columns:minmax(0,1fr); gap:30px}
  .story.flip > .words{order:0}
}
ul.points{list-style:none; margin:18px 0 0; padding:0; display:grid; gap:12px}
ul.points li{position:relative; padding-left:28px; font-size:15.5px; color:var(--muted)}
ul.points li b{color:var(--ink); font-weight:600}
.dark ul.points li{color:var(--on-dark-3)}
.dark ul.points li b{color:var(--on-dark)}
ul.points li::before{
  content:""; position:absolute; left:2px; top:.55em; width:12px; height:7px;
  border-left:2px solid var(--blue-deep); border-bottom:2px solid var(--blue-deep);
  transform:rotate(-45deg);
}
.dark ul.points li::before{border-color:var(--blue)}

/* ---- the add-on cards ---- */
.addon-cards{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; margin-top:38px}
.addon-card{
  display:flex; flex-direction:column; gap:14px; text-decoration:none; color:inherit;
  background:var(--wash); border:1px solid var(--line); border-radius:14px; padding:14px 14px 24px;
  transition:border-color .15s, box-shadow .15s, transform .15s;
}
.addon-card:hover{border-color:var(--blue-deep); box-shadow:0 18px 40px -26px rgba(16,23,31,.55); transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){ .addon-card{transition:none} .addon-card:hover{transform:none} }
.addon-card .frame{border-radius:8px; aspect-ratio:16/10}
.addon-card .frame img{height:100%; object-fit:cover; object-position:left top}
.addon-card .head{display:flex; align-items:center; gap:12px; margin:6px 8px 0}
.addon-card h3{font-size:23px; margin:0}
.addon-card p{margin:0 8px; color:var(--muted); font-size:15.5px}
.addon-card .go{margin:auto 8px 0; padding-top:6px; font-weight:600; color:var(--link)}
.dark .addon-card{background:var(--night); border-color:var(--edge)}
.dark .addon-card:hover{border-color:var(--blue)}
.dark .addon-card p{color:var(--on-dark-3)}
.dark .addon-card .go{color:#8cc8f7}
@media (max-width:860px){ .addon-cards{grid-template-columns:minmax(0,1fr)} }

/* ---- steps, numbered like stations on a drawing ---- */
ol.steps{list-style:none; margin:40px 0 0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:26px; counter-reset:step}
ol.steps li{counter-increment:step; border-top:2px solid var(--blue-deep); padding-top:16px}
.dark ol.steps li{border-top-color:var(--blue)}
ol.steps li::before{
  content:counter(step, decimal-leading-zero); display:block; font:500 12px/1 var(--mono);
  letter-spacing:.12em; color:var(--link); margin-bottom:10px;
}
.dark ol.steps li::before{color:var(--blue)}
ol.steps h3{font-size:19px; margin-bottom:6px}
ol.steps p{font-size:15px; color:var(--muted); margin:0}
.dark ol.steps p{color:var(--on-dark-3)}
@media (max-width:980px){ ol.steps{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){ ol.steps{grid-template-columns:minmax(0,1fr)} }

/* ---- questions and answers ---- */
.faq{max-width:840px; margin-top:30px; display:grid; gap:10px}
.faq details{border:1px solid var(--line); border-radius:10px; background:var(--wash); padding:0 20px}
.faq summary{
  cursor:pointer; list-style:none; padding:17px 30px 17px 0; position:relative;
  font:650 17px/1.35 var(--display); font-stretch:92%; color:var(--ink);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+"; position:absolute; right:0; top:13px; font:400 24px/1 var(--text); color:var(--link);
}
.faq details[open] summary::after{content:"\2212"}
.faq details > div{padding:0 0 18px; color:var(--body); font-size:15.5px}
.faq details > div p:last-child{margin-bottom:0}

/* ---- the add-on's place in the price ---- */
.strip-cta{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 40px}
.strip-cta h2{margin:0}
.strip-cta .cta{display:flex; gap:12px; flex-wrap:wrap}

/* ---- a framed picture that is not 16:10 (a dialog) ---- */
.frame.dialog{max-width:420px; margin:0 auto}

/* ---- the beta's download: version and size under the button, and the
   optional form after it ---- */
.dl-meta{margin-top:12px; font:500 12.5px/1.5 var(--mono); letter-spacing:.02em; color:var(--on-dark-3)}
/* How many times it has been downloaded, from the site's Worker
   (site.js); hidden until there is a number to show. */
.dl-count{white-space:nowrap}
.dl-count b{color:var(--on-dark); font-weight:600}
.form-head{margin-top:44px; font-size:20px}
.form-head span{font-weight:400; font-size:15px; color:var(--on-dark-3)}
