/* Cobble's website. Colors are the app's Default theme tokens; type is Apple's system faces only. */
:root {
  color-scheme: light dark;
  --plane: #FBFAF8; --list: #F5F4F2; --raised: #FFFFFF; --stone: #EFEDE9; --stone-deep: #E4E1DC;
  --ink: #464440; --caption: #797773; --muted: #B1AFAB; --granite: #625E57; --on-granite: #FBFAF8;
  --link: #94553A; --shadow: rgba(70, 68, 64, .08); --lift-near: rgba(70, 68, 64, .10); --lift-far: rgba(70, 68, 64, .24);
  --inbox: #12BCF9; --today: #FFDA00; --upcoming: #FF4F83; --someday: #D6C990; --logbook: #59C773; --evening: #80A4D6;
  --face: ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --plane: #31302D; --list: #2D2C29; --raised: #403F3C; --stone: #3A3936; --stone-deep: #46443F;
    --ink: #E1E0DD; --caption: #A8A7A4; --muted: #73726F; --granite: #B5AFA4; --on-granite: #2D2C29;
    --link: #D9A084; --shadow: rgba(0, 0, 0, .28); --lift-near: rgba(0, 0, 0, .30); --lift-far: rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, .brand { font-family: var(--face); text-wrap: balance; color: var(--ink); margin: 0; }
p, li { text-wrap: pretty; }
p { margin: 0; }
a { color: var(--link); }
kbd { font: 600 .85em var(--text); background: var(--plane); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.icon { border-radius: 22.5%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--granite); outline-offset: 3px; }

/* header and footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; padding-top: max(18px, env(safe-area-inset-top, 0px)); }
.brandrow { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--granite); }
footer a { color: var(--caption); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer { padding-block: 0 48px; padding-bottom: max(48px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; color: var(--caption); font-size: 14px; }
footer nav { display: flex; gap: 24px; }

/* the landing page's ground: a faint cobbled path in perspective behind the page, strongest at the edges and gone behind the text; scrolling walks it toward you */
.ground { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 700px; perspective-origin: 50% -10%; }
.ground > div {
  position: absolute; left: -30%; right: -30%; top: -60%; height: 200%;
  background: var(--stone-deep); opacity: .4;
  transform-origin: 50% 100%; transform: rotateX(48deg);
  --sides: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-image: url(/assets/cobbles.svg), radial-gradient(ellipse 42% 60% at 50% 62%, transparent 22%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.68) 78%, #000 100%), var(--sides);
          mask-image: url(/assets/cobbles.svg), radial-gradient(ellipse 42% 60% at 50% 62%, transparent 22%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.68) 78%, #000 100%), var(--sides);
  -webkit-mask-size: 360px 288px, 100% 100%, 100% 100%; mask-size: 360px 288px, 100% 100%, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat, no-repeat; mask-repeat: repeat, no-repeat, no-repeat;
  -webkit-mask-composite: source-in, source-in; mask-composite: intersect, intersect;
  -webkit-mask-position: 0 0, center, center; mask-position: 0 0, center, center;
}
@media (prefers-color-scheme: dark) { .ground > div { background: var(--stone); opacity: .47; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .ground > div { animation: stroll linear both; animation-timeline: scroll(root); }
    @keyframes stroll { to { -webkit-mask-position: 0 1440px, center, center; mask-position: 0 1440px, center, center; } }
  }
}

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; padding-block: 48px 72px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--face); color: var(--granite); background: var(--stone); padding: 8px 14px; border-radius: 999px; }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--today); flex: none; }
/* each half of the headline sizes to the text column so it stays on one line: "together in Markdown." is ten times its font size wide */
.hero > div:first-child { container-type: inline-size; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-size: min(68px, 9.6cqi); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; margin-top: 22px; }
.hero h1 span { display: block; color: var(--granite); }
.lede { font-size: 19px; color: var(--caption); max-width: 34em; margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.fine { font-size: 13px; color: var(--caption); margin-top: 18px; }

/* the waitlist form */
form.wait { display: flex; gap: 8px; background: var(--raised); padding: 6px; border-radius: 999px; box-shadow: 0 1px 2px var(--shadow), 0 8px 24px var(--shadow); flex: 1 1 340px; max-width: 440px; }
form.wait input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--text); color: var(--ink); padding: 10px 14px; outline: none; }
form.wait input::placeholder { color: var(--muted); }
form.wait button { border: 0; background: var(--granite); color: var(--on-granite); font: 700 15px var(--face); padding: 0 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
form.wait:focus-within { box-shadow: 0 0 0 3px var(--stone-deep), 0 8px 24px var(--shadow); }

/* the icon's wall: its fifteen stones cut from the app icon (assets/wall-*.png, 598×773), each placed by its box in that image so it can settle on its own */
.wall { position: relative; width: min(100%, 340px); aspect-ratio: 598 / 773; justify-self: center; }
.peb { position: absolute; left: calc(var(--x) / 598 * 100%); top: calc(var(--y) / 773 * 100%); width: calc(var(--w) / 598 * 100%); height: calc(var(--h) / 773 * 100%); background: url(/assets/wall-light.png) no-repeat; background-size: calc(598 / var(--w) * 100%) calc(773 / var(--h) * 100%); background-position: calc(var(--x) / (598 - var(--w)) * 100%) calc(var(--y) / (773 - var(--h)) * 100%); animation: settle .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@media (prefers-color-scheme: dark) { .peb { background-image: url(/assets/wall-dark.png); } }
@keyframes settle { from { transform: translateY(-10px); } to { transform: none; } }

/* screenshots */
.shots { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr) minmax(0, .55fr); gap: 28px; align-items: end; padding-block: 8px 88px; }
.shots figure { margin: 0; }
/* each screenshot floats bare, its corners rounded like the device's screen, lifted off the page by a soft shadow */
.shots .frame img { display: block; width: 100%; box-shadow: 0 1px 2px var(--lift-near), 0 10px 20px -4px var(--lift-near), 0 30px 56px -12px var(--lift-far); }
.shots .mac .frame img { border-radius: 1.1% / 1.7%; }
.shots .ipad .frame img { border-radius: 1.8% / 2.5%; }
.shots .frame.phone img { border-radius: 13.5% / 6.2%; }
/* the iPhone keeps its Dynamic Island, drawn at its place on the 402×874pt screen */
.shots .frame.phone { position: relative; }
.shots .frame.phone::before { content: ""; position: absolute; left: 50%; translate: -50% 0; top: 1.26%; width: 31.3%; height: 4.23%; border-radius: 99px; background: #000; }
.shots figcaption { text-align: center; font: 600 13px var(--face); color: var(--caption); margin-top: 18px; }

/* the lead stone: delightful and familiar */
.section-h { display: grid; gap: 10px; max-width: 640px; padding-block: 88px 36px; }
.section-h h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.section-h p { color: var(--caption); font-size: 18px; }
.lead { background: var(--granite); color: var(--on-granite); border-radius: 46px 40px 52px 38px / 40px 50px 38px 46px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lead h2 { color: var(--on-granite); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.lead p { opacity: .82; font-size: 18px; margin-top: 14px; }
.lead ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lead li { background: color-mix(in srgb, var(--on-granite) 12%, transparent); border-radius: 22px 26px 20px 24px; padding: 14px 18px; font: 600 16px/1.35 var(--face); }
.lead li span { display: block; font: 400 14px/1.4 var(--text); opacity: .8; margin-top: 2px; }

/* the wall of feature stones: corners, tilt, and width per stone come from the seed */
.stones { display: flex; flex-wrap: wrap; gap: 16px; }
.st { flex: var(--g) 1 calc(var(--g) * 170px); position: relative; isolation: isolate; padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; animation: settle .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.st::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stone); border-radius: var(--r); transform: rotate(var(--t)); transition: box-shadow .3s; }
.st:hover { transform: translateY(-3px); }
.st:hover::before { box-shadow: 0 10px 28px var(--shadow); }
.st h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.st p { color: var(--caption); font-size: 15.5px; line-height: 1.5; }
.glyph { width: 46px; height: 30px; border-radius: 15px 13px 16px 12px; background: var(--stone-deep); color: var(--granite); display: grid; place-items: center; }
.glyph svg { width: 18px; height: 18px; }
.plus { font: 700 12px/1 var(--face); color: var(--granite); background: var(--plane); padding: 5px 9px; border-radius: 999px; justify-self: start; letter-spacing: .02em; }
.dests { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font: 600 13.5px var(--face); color: var(--ink); }
.dests span { display: inline-flex; align-items: center; gap: 6px; }
.dests b { width: 11px; height: 11px; border-radius: 4px; }

/* the plain-files band: the claim, then its three points side by side */
.files { padding-block: 96px 0; }
.files h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.files .sub { color: var(--caption); font-size: 18px; margin-top: 14px; max-width: 40em; }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.points li { color: var(--caption); font-size: 15.5px; line-height: 1.45; padding-left: 18px; border-left: 3px solid var(--stone-deep); }
.points b { display: block; font: 700 17px/1.3 var(--face); color: var(--ink); }

/* the per-device pair, two stones of one width */
.stones.pair .st { flex-basis: 300px; }

/* the smaller features, after the stones */
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-block: 28px 96px; }
.more h3 { font-size: 15px; font-weight: 700; color: var(--caption); margin-right: 6px; }
.more span { background: var(--stone); border-radius: 999px; padding: 6px 13px; font: 600 13.5px/1.3 var(--face); color: var(--ink); }
.more kbd { background: var(--plane); }
.more i { font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--granite); margin-left: 4px; }

/* closing */
.closing { grid-template-columns: minmax(0, 1fr); background: var(--list); border-radius: 60px 48px 56px 44px / 48px 60px 44px 56px; padding: clamp(32px, 6vw, 72px); display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: 72px; }
.closing h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; font-weight: 800; line-height: 1.08; }
.closing p { color: var(--caption); max-width: 30em; }
.closing form.wait { width: 100%; }

/* Privacy and Support */
.doc { max-width: 720px; padding-block: 40px 88px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.025em; font-weight: 800; line-height: 1.05; }
.doc .updated { color: var(--caption); font-size: 15px; margin-top: 10px; }
.doc .summary { background: var(--stone); border-radius: 34px 28px 38px 26px / 28px 36px 26px 34px; padding: 24px 28px; margin-top: 32px; font: 600 19px/1.4 var(--face); }
.doc .summary span { display: block; font: 400 16px/1.55 var(--text); color: var(--caption); margin-top: 6px; }
.doc h2 { font-size: 24px; letter-spacing: -.01em; font-weight: 700; margin-top: 44px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc .muted { color: var(--caption); }
.contact { display: inline-block; font: 600 18px var(--face); background: var(--stone); padding: 10px 18px; border-radius: 999px; margin-top: 14px; text-decoration: none; color: var(--ink); }
.doc form.wait { margin-top: 20px; }
.faq { display: grid; gap: 14px; margin-top: 20px; }
.faq div { background: var(--stone); border-radius: 26px 22px 30px 20px / 22px 28px 20px 26px; padding: 20px 24px; }
.faq div:nth-child(even) { border-radius: 22px 30px 20px 26px / 28px 20px 26px 22px; }
.faq h3 { font-size: 18px; font-weight: 700; }
.faq p { color: var(--caption); margin-top: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 20px 48px; }
  .hero > div:first-child { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero .wall { order: -1; width: 116px; }
  .shots { grid-template-columns: minmax(0, 1fr) minmax(0, .36fr); }
  .shots .mac { grid-column: 1 / -1; }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .files { padding-block: 72px 0; }
  .points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { margin-top: 16px; }
  .lede { font-size: 17px; margin-top: 14px; }
  .cta { margin-top: 22px; }
  form.wait { flex-basis: 100%; max-width: none; }
  .st::before { transform: rotate(calc(var(--t) * .6)); }
}
@media (prefers-reduced-motion: reduce) { .peb, .st { animation: none; } .st, .st::before { transition: none; } }
