/* Pino site: the same look as the app (lib/ui/theme.dart): warm cream background, white cards with a
   darker "3D" edge, bold pastel cards for the skills, green buttons, Fraunces titles and Nunito text. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(/fonts/fraunces-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: 'Fraunces'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f1e8;
  --surface: #ffffff;
  --surface-high: #f0e7da;
  --edge: #e0d2bf;
  --line: #e4d9ca;
  --text: #1c1b20;
  --muted: #7a746c;
  --green: #2fbf71;
  --green-dark: #1c8a4f;
  --orange: #f4b271;
  --cream: #ffebd3;
  --teal: #8dc8c4;
  --sage: #9bd39a;
  --coral: #f59e83;
  --butter: #f7d774;
  --lilac: #c9b3f2;
  --ink: #16181d;
  --link: #1c8a4f;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 17px/1.6 var(--sans); }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
a { color: var(--link); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.2rem; line-height: 1.12; margin: 0 0 10px; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 44px 0 10px; }
h3 { font-size: 1.1rem; font-weight: 800; margin: 24px 0 4px; }
p, li { color: var(--text); }
strong { font-weight: 800; }
.muted { color: var(--muted); }
mark { background: linear-gradient(transparent 55%, var(--butter) 55%, var(--butter) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.back { display: inline-block; margin-bottom: 24px; }
nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 24px 0 0; }
footer { margin-top: 32px; font-size: .9rem; color: var(--muted); text-align: center; }
footer .badges { margin: 16px 0 0; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
footer .badges img { width: 160px; height: auto; vertical-align: middle; }

/* Cards: white with the app's darker bottom edge. */
.card { background: var(--surface); border-radius: 22px; padding: 6px 22px 18px; margin: 22px 0; box-shadow: 0 5px 0 var(--edge); }
.card h2 { margin-top: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--line); }
thead th { font-weight: 800; background: var(--surface-high); }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 5px 0 var(--edge); margin: 18px 0; }
.table-wrap table { margin: 0; }
.table-wrap thead th:first-child { border-top-left-radius: 18px; }
.table-wrap thead th:last-child { border-top-right-radius: 18px; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Store buttons and the green app button. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.is-android .store-ios { order: 2; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 9px 18px 9px 14px;
  background: var(--ink); color: #fff; border-radius: 16px; text-decoration: none; line-height: 1.15;
  box-shadow: 0 4px 0 #000; transition: transform .08s, box-shadow .08s; }
.store:hover { transform: translateY(1px); box-shadow: 0 3px 0 #000; }
.store:active { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .72rem; font-weight: 600; opacity: .9; }
.store span { font-size: 1.2rem; font-weight: 800; }

/* ---------- landing page ---------- */
main.landing { max-width: 1040px; padding-top: 20px; }
.lang { justify-content: flex-end; gap: 0; margin: 0 0 8px; font-size: .92rem; }
.lang a { margin-left: 14px; }
.lang [aria-current] { color: var(--text); text-decoration: none; }
.top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-bottom: 20px; }
.top-text img.icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 5px 0 var(--edge); }
.top h1 { font-size: 3rem; line-height: 1.05; margin: 18px 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; }
.qr { display: none; align-items: center; gap: 12px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.qr img { width: 96px; height: 96px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 4px 0 var(--edge); }
.is-desktop .qr { display: flex; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; }
.facts li { background: var(--surface); border-radius: 999px; padding: 4px 14px 4px 10px; box-shadow: 0 3px 0 var(--edge); }
.facts li::before { content: "✓ "; color: var(--green); font-weight: 900; }
.top-shot { position: relative; }
.top-shot video { width: 100%; max-width: 300px; height: auto; aspect-ratio: 9 / 16; display: block; margin: 0 auto; border-radius: 28px;
  background: var(--orange); box-shadow: 0 6px 0 #b37f4a, 0 18px 40px rgba(120,70,20,.18); object-fit: cover; }
.top-shot img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; border-radius: 30px;
  box-shadow: 0 18px 50px rgba(120,70,20,.22); }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 22px; margin: 8px 0 0; }
.shots img { flex: none; width: 220px; height: auto; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Skill cards in the app's bold colours, with Pino. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid .card { margin: 0; position: relative; padding: 4px 22px 20px; overflow: hidden; }
.grid .card h3 { margin-top: 18px; font-size: 1.2rem; }
.grid .card p { margin: 6px 0 0; }
.grid .card.has-pino { padding-right: 112px; min-height: 150px; }
.grid .card .pino { position: absolute; right: 6px; bottom: 0; width: 110px; height: auto; }
.c-teal { background: var(--teal); box-shadow: 0 5px 0 #5c8d8a; }
.c-lilac { background: var(--lilac); box-shadow: 0 5px 0 #8a76b0; }
.c-coral { background: var(--coral); box-shadow: 0 5px 0 #b56a55; }
.c-sage { background: var(--sage); box-shadow: 0 5px 0 #66986a; }
.c-butter { background: var(--butter); box-shadow: 0 5px 0 #b39a45; }
.c-orange { background: var(--orange); box-shadow: 0 5px 0 #b37f4a; }
.c-teal p, .c-lilac p, .c-coral p, .c-sage p, .c-butter p, .c-orange p,
.c-teal h3, .c-lilac h3, .c-coral h3, .c-sage h3, .c-butter h3, .c-orange h3 { color: var(--ink); }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; margin: 16px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 900; display: grid; place-items: center; box-shadow: 0 3px 0 var(--green-dark); }
details { background: var(--surface); border-radius: 18px; padding: 14px 18px; margin: 12px 0; box-shadow: 0 4px 0 var(--edge); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 8px 0 0; }
.langs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { background: var(--surface); border-radius: 999px; padding: 4px 14px; box-shadow: 0 3px 0 var(--edge); }
.note { border-left: 0; background: var(--cream); box-shadow: 0 5px 0 #e8cba6; }

/* Guide links on the landing page and the guides list. */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 14px 0 0; }
.guide-cards li { margin: 0; }
.guide-cards a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: 22px; padding: 16px 18px 14px;
  box-shadow: 0 5px 0 var(--edge); color: var(--text); text-decoration: none; transition: transform .08s, box-shadow .08s; }
.guide-cards a:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--edge); }
.guide-cards img { width: 92px; height: auto; align-self: flex-end; margin: -4px -4px 4px 0; }
.guide-cards strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.guide-cards span { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* "Get the app" bar on phones. */
.appbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--surface); box-shadow: 0 3px 0 var(--edge); font-size: .9rem; line-height: 1.25; }
.appbar[hidden] { display: none; }
.appbar img { width: 44px; height: 44px; border-radius: 12px; }
.appbar div { flex: 1; min-width: 0; }
.appbar strong { display: block; }
.appbar div span { color: var(--muted); font-size: .8rem; }
.appbar-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; padding: 0 4px; cursor: pointer; }
.appbar-get { background: var(--green); color: #fff; text-decoration: none; font-weight: 900; padding: 7px 18px; border-radius: 999px; box-shadow: 0 3px 0 var(--green-dark); }

/* ---------- guides ---------- */
main.article { max-width: 760px; padding-top: 20px; }
.crumbs { justify-content: flex-start; gap: 6px; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.article-head { display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: end; background: var(--surface); border-radius: 26px;
  padding: 22px 24px 0; margin: 0 0 8px; box-shadow: 0 5px 0 var(--edge); overflow: hidden; }
.article-head > div { padding-bottom: 20px; }
.article-head h1 { font-size: 2.15rem; }
.article-head .lead { font-size: 1.05rem; margin: 0; }
.article-head img { width: 150px; height: auto; display: block; }
.head-teal { background: var(--teal); box-shadow: 0 5px 0 #5c8d8a; }
.head-lilac { background: var(--lilac); box-shadow: 0 5px 0 #8a76b0; }
.head-coral { background: var(--coral); box-shadow: 0 5px 0 #b56a55; }
.head-butter { background: var(--butter); box-shadow: 0 5px 0 #b39a45; }
.head-sage { background: var(--sage); box-shadow: 0 5px 0 #66986a; }
[class*="head-"] .lead { color: var(--ink); opacity: .8; }
.updated { font-size: .88rem; color: var(--muted); margin: 14px 0 24px; }
main.article li { margin: 6px 0; }
.tip { position: relative; background: var(--butter); border-radius: 20px; padding: 14px 18px 14px 96px; margin: 24px 0; min-height: 96px;
  box-shadow: 0 5px 0 #b39a45; color: var(--ink); }
.tip::before { content: ""; position: absolute; left: 10px; bottom: 0; width: 80px; height: 80px; background: url(/img/pino/sm/idea.webp) bottom/contain no-repeat; }
blockquote { margin: 12px 0; padding: 12px 16px; background: var(--surface-high); border-radius: 14px; }
.sample { background: var(--surface); border-radius: 22px; padding: 0 20px 14px; margin: 26px 0; box-shadow: 0 5px 0 var(--edge); overflow: hidden; }
.sample-title { margin: 0 -20px 12px; padding: 10px 20px; background: var(--teal); font-weight: 900; color: var(--ink); }
.sample details { box-shadow: none; background: var(--surface-high); padding: 10px 14px; }
.cta { position: relative; background: var(--sage); box-shadow: 0 5px 0 #66986a; padding-right: 150px; overflow: hidden; }
.cta p, .cta h2 { color: var(--ink); }
.cta .stores { margin: 10px 0 6px; }
.cta .pino { position: absolute; right: 8px; bottom: 0; width: 140px; height: auto; }
.related { padding-left: 18px; }

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr; gap: 24px; }
  .top h1 { font-size: 2.2rem; }
  .top-shot { display: none; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  .article-head { grid-template-columns: 1fr 96px; padding: 18px 16px 0; }
  .article-head h1 { font-size: 1.6rem; }
  .article-head img { width: 96px; }
  .cta { padding-right: 22px; padding-bottom: 120px; }
  .cta .pino { width: 110px; }
  table { font-size: .88rem; }
}
