/* Dinnu website: "The Desk". Paper cards lying on a kraft desk.
   Colours mirror the app's Scrapbook "Kraft & Teal" palette (dinu src/ui/themes/scrapbook-palettes.ts). */
/* Kalam (SIL Open Font License 1.1), self-hosted so no visitor data goes to a font CDN */
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/kalam-400-devanagari.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/kalam-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/kalam-700-devanagari.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/kalam-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --desk: #e6d6ba;
  --desk-2: #dccaa9;
  --paper: #fffcf4;
  --paper-2: #f5ead5;
  --ink: #2a2320;
  --ink-soft: #56473c;
  --line: #cdb995;
  --teal: #25586a;
  --teal-ink: #fffcf4;
  --link: #1f4d5d;
  --mustard: #e8b24c;
  --mustard-ink: #2a2320;
  --sage: #c9dbbd;
  --sage-ink: #2f4424;
  --rose: #f2c4b3;
  --tape: rgba(201, 219, 189, .78);
  --shadow: 0 1px 1px rgba(60, 40, 20, .16), 0 6px 14px -4px rgba(60, 40, 20, .28);
  --title: "Kalam", "Bradley Hand", "Segoe Print", cursive;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .17 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #1f1a17;
    --desk-2: #29221e;
    --paper: #2e2824;
    --paper-2: #38302b;
    --ink: #f3e9d8;
    --ink-soft: #d4c6b0;
    --line: #4a3f37;
    --teal: #2f6f84;
    --teal-ink: #fffcf4;
    --link: #8cc3d3;
    --mustard: #e8b24c;
    --mustard-ink: #2a2320;
    --sage: #3c4a35;
    --sage-ink: #e3efd9;
    --rose: #5a3d36;
    --tape: rgba(150, 170, 140, .45);
    --shadow: 0 0 0 1px rgba(255, 240, 220, .06), 0 8px 18px -6px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--desk) var(--grain);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--link); } }
h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* header */
header.site { padding: 18px 0 6px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.6rem/1 var(--title); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow); }
nav.site { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .95rem; }
nav.site a { color: var(--ink-soft); text-decoration: none; padding: 6px 2px; }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); text-decoration: underline; }

/* paper pieces */
.card {
  position: relative;
  background: var(--paper);
  border-radius: 3px 5px 4px 6px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
}
.tilt-l { transform: rotate(-1deg); }
.tilt-r { transform: rotate(.9deg); }
.torn {
  /* a hand-cut bottom edge; the shadow sits on the parent so clip-path doesn't clip it */
  clip-path: polygon(0 0, 100% 0, 100% 97.4%, 96% 99.2%, 91% 97.6%, 85% 99.6%, 78% 98%, 70% 99.8%, 63% 97.9%, 55% 99.4%, 47% 97.7%, 39% 99.7%, 31% 98.1%, 24% 99.5%, 16% 97.8%, 9% 99.6%, 4% 98%, 0 99.3%);
  box-shadow: none;
}
.drop { filter: drop-shadow(0 6px 8px rgba(60, 40, 20, .22)); }
@media (prefers-color-scheme: dark) { .drop { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); } }
.tape::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 12%, 96% 0, 100% 10%, 100% 92%, 96% 100%, 92% 88%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 90%);
}
.sticker {
  display: inline-block; background: var(--mustard); color: var(--mustard-ink);
  font: 700 1rem/1.2 var(--title); padding: 8px 14px 6px; border-radius: 6px;
  box-shadow: 0 2px 0 rgba(60, 40, 20, .25); transform: rotate(-2deg);
}
.sticker.sage { background: var(--sage); color: var(--sage-ink); }
.stitch { border: 0; border-top: 2px dashed var(--line); margin: 1.6em 0; }

/* buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px 10px 16px;
  background: var(--teal); color: var(--teal-ink); text-decoration: none; border-radius: 10px;
  box-shadow: 0 3px 0 rgba(20, 40, 50, .35); font-weight: 600; line-height: 1.15;
}
.btn small { display: block; font-weight: 400; font-size: .74rem; opacity: .9; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(20, 40, 50, .35); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 rgba(60, 40, 20, .18); }

/* home: hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding: 18px 0 40px; }
.hero .card { max-width: 620px; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); }
.hero .price { margin-top: 14px; }
.phone {
  justify-self: center; width: min(240px, 64vw); padding: 10px; background: #1d1a18; border-radius: 34px;
  box-shadow: 0 18px 30px -12px rgba(40, 25, 10, .5); position: relative; transform: rotate(2deg);
}
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 300 / 671; }
.phone.tape::before { top: -14px; z-index: 1; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.25fr .75fr; padding-top: 34px; }
  .phone { width: 300px; }
}

/* home: notes */
.notes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 10px 0 46px; }
.note { padding: 22px 22px 18px; }
.note:nth-child(2) { transform: rotate(.7deg); background: var(--paper-2); }
.note:nth-child(3) { transform: rotate(-.6deg); }
.note p { color: var(--ink-soft); margin: 0; }
.note .num { font: 700 .95rem/1 var(--title); color: var(--ink-soft); display: block; margin-bottom: 6px; }

/* home: screenshot strip */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 26px; margin: 0 -4px 30px; scrollbar-width: thin; }
.strip figure { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: start; background: var(--paper); padding: 10px 10px 12px; box-shadow: var(--shadow); border-radius: 3px; }
.strip figure:nth-child(odd) { transform: rotate(-1.2deg); }
.strip figure:nth-child(even) { transform: rotate(1deg); }
.strip img { border-radius: 2px; aspect-ratio: 300 / 671; width: 100%; background: var(--paper-2); }
.strip figcaption { font: 700 1.02rem/1.25 var(--title); margin-top: 8px; text-align: center; }

/* home: two-up */
.two { display: grid; gap: 28px; grid-template-columns: 1fr; margin: 0 0 46px; align-items: start; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.diary { background: var(--paper) repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); background-position: 0 14px; }
.diary .date { font: 700 1.5rem/1 var(--title); margin-bottom: 4px; }
.diary .entry { font: 400 1.12rem/32px var(--title); margin: 12px 0 0; }
.diary .sub { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) { .checks li::before { border-color: var(--link); } }

/* price table */
table.prices { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .98rem; }
.prices th, .prices td { text-align: left; padding: 8px 6px; border-bottom: 2px dashed var(--line); }
.prices th { font: 700 1.02rem/1.2 var(--title); }
.prices td:not(:first-child), .prices th:not(:first-child) { text-align: right; white-space: nowrap; }

/* FAQ */
.faq { margin: 0 0 50px; }
.faq .list { display: grid; gap: 16px; }
.faq details { background: var(--paper); box-shadow: var(--shadow); border-radius: 3px; padding: 0 20px; }
.faq details:nth-child(even) { transform: rotate(.4deg); }
.faq details:nth-child(odd) { transform: rotate(-.3deg); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font: 700 1.2rem/1.3 var(--title); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 700 1.6rem/1 var(--title); color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

.cta { text-align: center; margin: 0 auto 56px; max-width: 640px; }
.cta .stores { justify-content: center; }

/* documents (privacy, terms, support, delete, press) */
main.doc { padding: 18px 0 50px; }
.sheet { max-width: 780px; margin: 0 auto; }
.sheet .card { padding: clamp(22px, 5vw, 52px); }
.sheet h1 { font-size: clamp(2rem, 5.4vw, 2.8rem); }
.sheet h2 { font-size: 1.55rem; margin-top: 1.5em; padding-bottom: .2em; border-bottom: 2px dashed var(--line); }
.sheet h3 { margin-top: 1.2em; }
.sheet p, .sheet li { max-width: 68ch; }
.sheet ul, .sheet ol { padding-left: 1.3em; }
.sheet li { margin-bottom: .45em; }
.updated { color: var(--ink-soft); font-size: .95rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table.data { border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.data th, .data td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.data th { font-weight: 700; }
.callout { background: var(--sage); color: var(--sage-ink); padding: 14px 18px; border-radius: 6px; margin: 0 0 1.2em; }
.callout a { color: inherit; }
.press-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 12px 0 1em; }
.press-grid a { display: block; text-decoration: none; color: var(--ink); background: var(--paper-2); padding: 10px; border-radius: 4px; font-size: .9rem; }
.press-grid img { margin-bottom: 8px; border-radius: 3px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }

/* invite (/c/CODE) */
.invite { max-width: 520px; margin: 10px auto 60px; text-align: center; }
.ticket { padding: 30px 24px 28px; -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.code { font: 700 clamp(1.9rem, 9vw, 2.6rem)/1 var(--mono); letter-spacing: .14em; padding: 14px 18px 12px; margin: 10px 0 6px; }
.invite ol { text-align: left; display: inline-block; margin: 8px auto 4px; padding-left: 1.3em; }
.invite .stores { justify-content: center; }
.copy { font: inherit; font-size: .92rem; background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; padding: 6px; }

/* footer */
footer.site { border-top: 2px dashed var(--line); padding: 22px 0 34px; font-size: .9rem; color: var(--ink-soft); }
footer.site .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }

/* settle-in motion: cards drop onto the desk once; nothing moves for people who prefer less motion */
@media (prefers-reduced-motion: no-preference) {
  .settle { animation: settle .5s cubic-bezier(.2, .8, .25, 1) both; }
  .settle.d1 { animation-delay: .06s; }
  .settle.d2 { animation-delay: .14s; }
  @keyframes settle { from { opacity: 0; translate: 0 -8px; rotate: -1deg; } }
  .faq details, .btn { transition: transform .2s ease; }
}
@media print {
  body { background: #fff; color: #000; }
  header.site nav, footer.site nav, .stores { display: none; }
  .card { box-shadow: none; transform: none; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.invite .sub { font: 700 1rem/1.2 var(--title); color: var(--ink-soft); margin-bottom: 4px; }
