/* Cosas website. Light only, SF like the app, the icon's paper and inks. */

:root {
  --paper: #F4F3F0;
  --sheet: #FFFFFF;
  --well: #ECEAE6;
  --foot: #EFEDEA;
  --ink: #201E1D;
  --ink-2: #5E5A56;
  --ink-3: #69645F;
  --hair: rgba(32, 30, 29, .12);
  --hair-2: rgba(32, 30, 29, .2);
  --tint: #00708F;
  --cyan: #0088B0;
  --magenta: #D6006C;
  --yellow: #EDBB00;
  /* The app's own system colors, for the drawn screens. */
  --label: #000000;
  --secondary: #6C6C70;
  --fill: rgba(116, 116, 128, .09);
  --fill-2: rgba(120, 120, 128, .12);
  --system-blue: #007AFF;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  min-height: 100svh; display: flex; flex-direction: column;
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(237, 187, 0, .45); color: var(--ink); }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
.icon { width: 1em; height: 1em; flex: none; }

/* Type */
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.032em; font-weight: 700; margin-bottom: 26px; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.028em; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.016em; font-weight: 600; margin-bottom: 8px; }
.lead { font-size: clamp(18px, 1.55vw, 20px); line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; max-width: 32em; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 33em; text-wrap: pretty; }
.more-link { font-weight: 600; }

/* Header */
.top { border-bottom: 1px solid var(--hair); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.menu a { color: var(--ink-2); white-space: nowrap; }
.menu a:hover { color: var(--ink); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--ink); }
.soon { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* App Store placeholder: swap for Apple's badge once the app is live */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; height: 54px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: #fff; line-height: 1.1; }
.badge small { font-size: 11px; font-weight: 500; opacity: .8; }
.badge b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.made { font-size: 15px; color: var(--ink-2); font-style: italic; }
.marks { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.marks li { display: flex; align-items: center; gap: 10px; }
.marks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.marks .c::before { background: var(--cyan); }
.marks .m::before { background: var(--magenta); }
.marks .y::before { background: var(--yellow); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 6vw, 80px); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); }
.hero > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 72px); align-items: end; }
.hero h1 { grid-row: 1 / span 3; align-self: end; margin-bottom: 0; }
.hero .lead { margin-bottom: 26px; }
.hero .marks { margin-top: 28px; }

/* Plates: a framed sheet holding a piece of the app */
.plate { margin: 0; }
.sheet { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); box-shadow: 0 1px 2px rgba(32, 30, 29, .05), 0 30px 60px -30px rgba(32, 30, 29, .28); }
.plate figcaption { font-size: 14px; font-style: italic; color: var(--ink-3); margin: 14px 4px 0; display: flex; justify-content: space-between; gap: 16px; }

/* Screenshots of the app. Each picture shows the visitor's own kind of device: iPhone screens
   on phones, iPad screens on touch tablets, Mac windows everywhere else (index.html's sources use
   the same queries). */
.shot img { width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(32, 30, 29, .05), 0 30px 60px -30px rgba(32, 30, 29, .28); }
/* A Mac window brings its own corners and shadow; the shadow reaches past the column. */
.shot.win img, .devices .mac { width: 108.8%; max-width: none; margin: -2.9% -4.4% -5.6%; background: none; border: 0; border-radius: 0; box-shadow: none; }
.shot.phone-crop { max-width: 440px; }
.devices { position: relative; padding: 0 13% 12% 0; }
.devices .iphone { position: absolute; right: 0; bottom: 0; width: 28%; border: 1px solid var(--hair-2); border-radius: 13.8% / 6.35%; box-shadow: 0 1px 2px rgba(32, 30, 29, .06), 0 30px 60px -24px rgba(32, 30, 29, .4); }
/* Phones and touch tablets get the device's own screen, framed like the other screenshots: the
   same queries as the iPhone and iPad <source>s, so the shape always matches the picture shown. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse), (hover: none) and (pointer: coarse) {
  .shot.win img { width: 100%; max-width: 100%; margin: 0; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(32, 30, 29, .05), 0 30px 60px -30px rgba(32, 30, 29, .28); }
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  /* Whole iPhone screens keep the screen's corners. */
  .shot.win, .shot.screen { max-width: 340px; margin-left: auto; margin-right: auto; }
  .shot.win img, .shot.screen img { border-radius: 13.8% / 6.35%; }
}

/* Facts band */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); margin: 0; }
.facts div { padding: 26px 26px 28px; border-left: 1px solid var(--hair); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }

/* Sections */
.sec { padding: clamp(88px, 11vw, 144px) 0 0; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.duo.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.duo.flip > :first-child { order: 2; }
.kinds { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--hair); }
.kinds li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.kinds .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-2); }
.kinds b { font-weight: 600; }
.kinds span { color: var(--ink-2); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.topics li { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--hair-2); font-size: 14.5px; font-weight: 500; color: var(--ink); background: var(--sheet); }

/* Search: the words above, the screenshot across the page */
.wide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.wide-head .where { margin: 0 0 6px; }
.where { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.where li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.where .icon { width: 18px; height: 18px; color: var(--tint); }

/* Privacy: ruled points beside the app's Settings */
.points li { grid-template-columns: minmax(0, 1fr); }
.fine { font-size: 15px; color: var(--ink-3); margin: 24px 0 0; max-width: 40em; }
/* Find: four framed cards */
.four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.four article { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px 28px 30px; display: grid; grid-template-rows: 150px auto; gap: 22px; }
.four .vis { background: var(--paper); border-radius: 12px; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.four p { color: var(--ink-2); margin: 0; }
.days { display: grid; grid-template-columns: repeat(7, 34px); gap: 4px; text-align: center; font-size: 13px; color: var(--label); }
.days span { height: 34px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.days .w { color: var(--secondary); font-size: 10.5px; font-weight: 600; height: 16px; }
.days .has::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); }
.days .sel { background: #0071E3; color: #fff; font-weight: 600; }
.days .sel::after { background: #fff; }
.rows { width: 100%; max-width: 280px; background: #fff; border-radius: 12px; border: 1px solid var(--hair); }
.rows div { display: flex; align-items: center; gap: 9px; padding: 7px 12px; font-size: 13.5px; color: var(--label); border-bottom: 1px solid var(--hair); }
.rows div:last-child { border: 0; }
.rows .icon { width: 15px; height: 15px; }
.rows span { margin-left: auto; color: var(--secondary); }
.rows .tick { margin-left: auto; color: var(--system-blue); }
.colors { display: flex; gap: 12px; }
.colors span { width: 26px; height: 26px; border-radius: 50%; }
.colors .sel { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4.5px rgba(32, 30, 29, .35); }
.c-red { background: #FF3B30; } .c-orange { background: #FF9500; } .c-yellow { background: #FFCC00; }
.c-green { background: #34C759; } .c-blue { background: #007AFF; } .c-purple { background: #AF52DE; }
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 56px; border-top: 1px solid var(--hair); }
.also div { padding: 26px 0 0; }
.also p { color: var(--ink-2); margin: 0; }

/* Roadmap */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--well); border-radius: 99px; padding: 4px 12px 4px 10px; margin: -6px 0 18px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.reader { padding: clamp(24px, 3.5vw, 44px) clamp(24px, 4vw, 52px); }
.reader .src { font-size: 12px; color: var(--secondary); margin-bottom: 10px; }
.reader b { display: block; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: var(--label); margin-bottom: 14px; }
.reader p { font-size: 14px; line-height: 1.65; color: #3A3A3C; margin: 0 0 10px; }

.sec.first { padding-top: clamp(48px, 6vw, 80px); }
.also.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 104px); }
.spacer { height: clamp(72px, 8vw, 112px); }

/* Closing */
.closing { margin: clamp(88px, 11vw, 144px) 0 clamp(72px, 8vw, 112px); background: var(--sheet); border: 1px solid var(--hair); box-shadow: 0 1px 2px rgba(32, 30, 29, .05), 0 30px 60px -30px rgba(32, 30, 29, .28); border-radius: 22px; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; }
.closing h2 { margin-bottom: 14px; }
.closing p { color: var(--ink-2); margin: 0; max-width: 34em; }
.closing .req { font-size: 14px; margin-top: 18px; color: var(--ink-3); }

/* Inner pages */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--hair); }
.page-head h1 { max-width: 15em; }
.page-head .lead { margin-bottom: 0; }
.tips { list-style: none; padding: 0; margin: 0; }
.tips > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(36px, 4vw, 52px) 0; border-bottom: 1px solid var(--hair); }
.tips h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.022em; line-height: 1.15; margin: 0; }
.tips p { color: var(--ink-2); max-width: 36em; }
.note { margin: 18px 0 0; padding: 14px 18px; background: var(--sheet); border: 1px solid var(--hair); border-radius: 12px; font-size: 15px; font-style: italic; color: var(--ink-2); max-width: 40em; }
kbd { font: 600 13px/1 var(--sans); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--hair-2); background: var(--sheet); color: var(--ink); white-space: nowrap; font-style: normal; }

.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(20px, 4vw, 64px); padding: clamp(44px, 5vw, 64px) 0; border-bottom: 1px solid var(--hair); }
.release .ver { font-size: 15px; color: var(--ink-2); }
.release .ver b { display: block; font-size: 17px; color: var(--tint); margin-bottom: 2px; }
.release .state { margin: 12px 0 0; }
.release h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.022em; margin-bottom: 14px; }
.release p { color: var(--ink-2); max-width: 38em; }
.release ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); max-width: 44em; }
.release li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--hair); position: relative; }
.release li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); padding: clamp(44px, 5vw, 64px) 0 clamp(72px, 8vw, 112px); align-items: start; }
.contact { position: sticky; top: 24px; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; }
.contact h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.contact p { color: var(--ink-2); font-size: 15px; }
.contact .mail { font-weight: 600; font-size: 16px; word-break: break-all; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }
.faq .a p:last-child { margin: 0; }

.legal-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(28px, 5vw, 72px); padding: clamp(44px, 5vw, 64px) 0 clamp(72px, 8vw, 112px); align-items: start; }
.gist { position: sticky; top: 24px; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px 28px; }
.gist h2 { font-size: 20px; letter-spacing: -.015em; margin-bottom: 12px; }
.gist ul { margin: 0; padding: 0; list-style: none; }
.gist li { padding: 8px 0 8px 24px; border-top: 1px solid var(--hair); position: relative; font-size: 15px; }
.gist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.gist li:nth-child(2)::before { background: var(--magenta); }
.gist li:nth-child(3)::before { background: var(--yellow); }
.gist li:nth-child(4)::before { background: var(--ink); }
.doc { max-width: 42em; }
.doc h2 { font-size: clamp(24px, 2.4vw, 28px); letter-spacing: -.02em; margin: 44px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .date { font-size: 15px; color: var(--ink-3); }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 48px 0 40px; font-size: 14px; color: var(--ink-2); background: var(--foot); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { font-size: 18px; }
.foot .brand img { width: 30px; height: 30px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a, .foot .mail { color: var(--ink); font-weight: 500; }
.foot p { margin: 12px 0 0; }
.foot .ask { margin: 0 0 6px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hair); margin-top: 40px; padding-top: 20px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1020px) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-top: 14px; }
  .menu { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; padding: 14px 0; gap: 22px; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .soon { margin-left: auto; }
}
@media (max-width: 920px) {
  .hero h1 { grid-row: auto; margin-bottom: 26px; }
  .hero > div, .duo, .duo.flip, .wide-head, .next, .closing, .tips > li, .release, .support, .legal-doc { grid-template-columns: minmax(0, 1fr); }
  .duo.flip > :first-child { order: 0; }
  .also, .also.wide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .four { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .contact, .gist { position: static; }
}
@media (max-width: 560px) {
  .soon { display: none; }
  .menu { flex-wrap: wrap; overflow: visible; gap: 8px 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { padding: 20px; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--hair); }
  .facts dt { font-size: 21px; }
  .where { grid-template-columns: minmax(0, 1fr); }
  .four article { padding: 20px; }
  .days { grid-template-columns: repeat(7, 30px); }
  .days span { height: 30px; }
}
