/* Daystub site — one typeface, one accent, one shape (the stub) repeated with small differences. */
:root {
  --paper: #FAF9F6; --paper2: #F2F0EB; --card: #FFFEFC;
  --ink: #111; --ink2: rgba(17,17,17,.62); --ink3: rgba(17,17,17,.36); --line: rgba(17,17,17,.12);
  --mari: #EAA221; --mari-soft: rgba(234,162,33,.18);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 14px; --wrap: 1080px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--mono); }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
.caps { text-transform: uppercase; letter-spacing: .06em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill { fill: currentColor; stroke: none; }

/* ---- the logo: stub mark + DAY┆STUB ---- */
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .08em; }
.logo svg { width: 46px; height: auto; }
.wordmark { display: inline-flex; align-items: center; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.wordmark i { display: inline-block; width: 0; align-self: stretch; margin: -.12em .32em; border-left: .1em dashed var(--mari); }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.top .logo { font-size: 17px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); transition: background .15s, color .15s; }
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .ic { width: 16px; height: 16px; }

/* ---- Continue with Apple (Apple's own look: black, white logo) ---- */
.apple { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: var(--r);
  background: #000; color: #fff; font: 500 17px/1 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; letter-spacing: 0; position: relative; }
.apple svg { width: 15px; height: 18px; fill: #fff; margin-top: -2px; }
.apple[aria-disabled="true"] { cursor: default; }
.apple .soon { position: absolute; top: -9px; right: -8px; background: var(--mari); color: var(--ink); font: 600 10px/1 var(--mono); letter-spacing: .1em;
  padding: 5px 7px 4px; border-radius: 6px; transform: rotate(4deg); }
.apple.small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.apple.small svg { width: 12px; height: 15px; }
.apple.small .soon { top: -8px; right: -10px; font-size: 9px; padding: 4px 5px 3px; }
@media (max-width: 560px) { .top .apple.small { display: none; } }

/* ---- hero ---- */
.hero { display: grid; gap: 40px; align-items: center; padding-block: 28px 56px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: 48px 80px; } }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 22px; border-top: 2px dashed var(--mari); }
h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.01em; margin: 14px 0 0; text-transform: uppercase; }
.underline { width: min(300px, 70%); height: 14px; margin: 6px 0 0; color: var(--mari); }
.lede { font-size: 16.5px; color: var(--ink2); max-width: 30em; margin: 22px 0 28px; }
.lede b { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta small { font-size: 12.5px; color: var(--ink2); max-width: 22em; line-height: 1.45; }
.devices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.devices span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); border: 1px dashed var(--ink3); border-radius: 6px; padding: 5px 9px 4px; }
.devices span:first-child { border-style: solid; border-color: var(--ink); color: var(--ink); }

/* ---- the day stub (receipt + tear-off) ---- */
.daystub { position: relative; width: min(370px, 100%); justify-self: center; transform: rotate(1.6deg); filter: drop-shadow(0 18px 30px rgba(17,17,17,.10)); }
.receipt { background: var(--card); padding: 24px 24px 18px; border-radius: 6px 6px 0 0; font-size: 13.5px; }
.receipt header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1.5px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.receipt header .wordmark { font-size: 15px; }
.receipt header .when { text-align: right; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); line-height: 1.5; }
.receipt header .when b { display: block; color: var(--ink); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.row .box { width: 17px; height: 17px; flex: none; border: 1.6px solid var(--ink); border-radius: 4px; display: grid; place-items: center; }
.row.done .box { background: var(--ink); }
.row.done .box svg { width: 13px; height: 13px; stroke: var(--mari); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.row.done span { color: var(--ink2); text-decoration: line-through; text-decoration-color: var(--ink3); }
.row .ic { width: 18px; height: 18px; color: var(--ink2); }
.sum { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 3px 0; }
.sum b { color: var(--ink); font-weight: 600; }
.sub-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin: 14px 0 4px; }
.total { border-top: 1.5px dashed var(--ink3); margin-top: 12px; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.total span:last-child { font-size: 22px; }
.tear { height: 18px; background: var(--card); position: relative;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000), radial-gradient(circle 9px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.tear::after { content: ''; position: absolute; left: 16px; right: 16px; top: 8px; border-top: 2px dashed var(--mari); }
.keep { background: var(--ink); color: var(--paper); padding: 14px 24px 16px; border-radius: 0 0 6px 6px; margin-top: -1px; display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.keep b { color: var(--mari); font-weight: 600; }
.barcode { height: 26px; width: 92px; background: repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 4px, var(--paper) 4px 5px, transparent 5px 8px, var(--paper) 8px 11px, transparent 11px 12px); opacity: .9; }

/* ---- section heads ---- */
.sec { padding: 56px 0; border-top: 1px solid var(--line); }
.sec-h { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--mari); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.sec-h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sec > .wrap > p.intro { color: var(--ink2); max-width: 36em; margin: 0 0 30px; }

/* ---- three stubs: same shape, small differences ---- */
.stubs { display: grid; gap: 22px; }
@media (min-width: 820px) { .stubs { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.stub { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px 22px;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) , radial-gradient(circle 9px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.stub:nth-child(1) { transform: rotate(-.8deg); }
.stub:nth-child(2) { transform: rotate(.6deg) translateY(6px); }
.stub:nth-child(3) { transform: rotate(-.3deg) translateY(-3px); }
.stub .top-line { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px dashed var(--mari); }
.stub .top-line .ic { width: 28px; height: 28px; }
.stub .top-line small { font-size: 10.5px; letter-spacing: .14em; color: var(--ink3); text-transform: uppercase; }
.stub h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.stub p { margin: 0; color: var(--ink2); font-size: 14px; }
.stub code { display: inline-block; margin-top: 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 6px 8px 5px; border-radius: 5px; }

/* ---- sync ---- */
.sync { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .sync { grid-template-columns: 1fr 1fr; } }
.sync ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sync li { counter-increment: s; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sync li::before { content: counter(s, decimal-leading-zero); font-weight: 600; color: var(--mari); flex: none; }
.sync li span { color: var(--ink2); }
.sync li b { color: var(--ink); font-weight: 600; }
.trio { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 10px 0; }
.dev { background: var(--card); border: 1.6px solid var(--ink); border-radius: 12px; display: grid; place-items: center; color: var(--ink2);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.dev.mac { width: 170px; height: 112px; border-radius: 8px; }
.dev.mac::after { content: ''; position: absolute; bottom: -12px; left: -16px; right: -16px; height: 8px; border: 1.6px solid var(--ink); border-radius: 0 0 8px 8px; background: var(--card); }
.dev.ipad { width: 96px; height: 136px; border-color: var(--ink); background: var(--mari-soft); color: var(--ink); font-weight: 600; }
.dev.phone { width: 52px; height: 104px; border-radius: 12px; }
.dev .ic { width: 18px; height: 18px; color: var(--mari); margin: 0 auto 4px; }

/* ---- build log (receipt list, older folded) ---- */
.log { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 22px; max-width: 720px; }
.log .entry { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.log .entry:last-child { border-bottom: 0; }
.log time { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding-top: 2px; }
.log .entry b { display: block; font-weight: 600; }
.log .entry span { color: var(--ink2); font-size: 14px; }
.fold { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); border-top: 1px dashed var(--line); }
.fold[aria-expanded="true"] .arr { transform: rotate(180deg); }
.fold .arr { transition: transform .2s; }
.older[hidden] { display: none; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .made { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
footer nav { display: flex; gap: 8px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .daystub { animation: print .9s cubic-bezier(.2,.8,.2,1) both .15s; }
  @keyframes print { from { transform: rotate(1.6deg) translateY(-26px); clip-path: inset(0 0 100% 0); } to { transform: rotate(1.6deg); clip-path: inset(-40px -40px -60px -40px); } }
}
