/* hideberry.com: light, warm, product-led. Cream paper, near-black type, the app's purple as accent. */
:root {
  --ink: #111014;
  --ink-2: #45414d;
  --ink-3: #75707f;
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --card: #ffffff;
  --line: #e6e2d8;
  --berry: #7a24e8;
  --berry-2: #9b4dff;
  --berry-soft: #f1e8ff;
  --night: #141118;
  --night-2: #1e1a24;
  --on-night: #f6f3ee;
  --on-night-2: #bdb6c7;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(17, 16, 20, .04), 0 10px 30px rgba(17, 16, 20, .07);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, .card-title { font-family: var(--display); }
img { max-width: 100%; height: auto; }
a { color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--berry-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--berry-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .85); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 10px; }
.brand:hover { color: var(--ink); }
.nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav > ul { display: flex; gap: 2px; align-items: center; }
.nav a, .nav summary { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav a:hover, .nav summary:hover, .nav [aria-current="page"] { color: var(--ink); background: rgba(17, 16, 20, .05); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px !important; box-shadow: 0 18px 40px rgba(17, 16, 20, .12); }
.menu a { border-radius: 10px; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 16px; line-height: 1.2; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-store { background: #000; color: #fff; padding: 8px 18px 8px 14px; border-radius: 12px; }
.btn-store:hover { color: #fff; }
.btn-store span { display: flex; flex-direction: column; text-align: left; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.btn-store small { font-size: 10.5px; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.btn-store.is-soon { cursor: default; }
.btn-store.is-soon:hover { transform: none; }
.btn-small { padding: 6px 13px 6px 10px; }
.btn-small span { font-size: 14.5px; }
.btn-ghost { color: var(--ink); background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost-light { color: var(--on-night); border-color: rgba(246, 243, 238, .3); }
.btn-ghost-light:hover { color: #fff; background: rgba(246, 243, 238, .08); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 82% 30%, rgba(155, 77, 255, .14), transparent 65%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.eyebrow svg { color: var(--berry); }
.hero h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--berry); }
.hero-lede p { font-size: 18.5px; color: var(--ink-2); margin: 0 0 28px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-points li { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.hero-points li::before { content: "✓"; color: var(--berry); margin-right: 6px; font-weight: 800; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; align-items: center; }
.orb { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 77, 255, .28), rgba(155, 77, 255, 0) 68%); }
.phone { position: relative; width: 280px; aspect-ratio: 9 / 19.3; border-radius: 48px; padding: 11px; background: #0d0b10; box-shadow: 0 0 0 2px #2a2630 inset, 0 50px 90px rgba(17, 16, 20, .28), 0 12px 24px rgba(17, 16, 20, .18); transform: rotate(4deg); }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 38px; background: linear-gradient(180deg, #1e0631, #13041f); display: flex; flex-direction: column; align-items: center; padding: 66px 24px 24px; overflow: hidden; }
.phone-screen img { border-radius: 20px; box-shadow: 0 10px 30px rgba(155, 77, 255, .5); }
.ps-title { margin: 22px 0 14px; color: #f3eaff; font-weight: 700; font-size: 16px; }
.ps-dots { display: flex; gap: 12px; margin-bottom: 28px; }
.ps-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c7b5dc; }
.ps-dots i.on { background: #c87cf8; border-color: #c87cf8; }
.ps-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.ps-pad span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #f3eaff; font-size: 22px; font-weight: 600; background: rgba(243, 234, 255, .08); }
.ps-pad span:empty { background: none; }
.tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(17, 16, 20, .12); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tag small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.tag b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--berry-soft); color: var(--berry); font-size: 15px; }
.tag-1 { top: 70px; left: 2%; transform: rotate(-3deg); }
.tag-2 { top: 46%; right: -2%; transform: rotate(3deg); }
.tag-3 { bottom: 64px; left: 6%; transform: rotate(-2deg); }

/* ---------- trust strip ---------- */
.trust-strip { padding: 0 0 8px; }
.trust-strip ul { list-style: none; margin: 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.trust-strip li { display: flex; flex-direction: column; gap: 2px; }
.trust-strip li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.trust-strip strong { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.trust-strip span { color: var(--ink-3); font-size: 14px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: radial-gradient(700px 300px at 92% 0%, rgba(155, 77, 255, .12), transparent 65%), var(--paper); padding: 34px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero.is-pillar { padding: 46px 0 54px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin: 12px 0 14px; font-weight: 800; max-width: 22ch; }
.page-hero .lede { font-size: 19px; color: var(--ink-2); max-width: 64ch; margin: 0 0 20px; }
.page-hero .eyebrow { margin-bottom: 0; }
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--ink-3); }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--berry-soft); color: var(--berry) !important; text-decoration: none; font-weight: 700; font-size: 13.5px; }
.chip:hover { background: #e6d6ff; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cat-nav a { padding: 7px 15px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); }
.cat-nav a[aria-current="page"], .cat-nav a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- article layout ---------- */
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; padding-top: 48px; padding-bottom: 72px; }
.side { position: relative; }
.toc { position: sticky; top: 96px; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--berry); }

/* ---------- prose ---------- */
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.7vw, 32px); line-height: 1.18; letter-spacing: -.03em; margin: 2em 0 .6em; font-weight: 800; }
.prose h3 { font-size: 20px; line-height: 1.3; margin: 1.7em 0 .4em; letter-spacing: -.015em; font-weight: 700; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--berry); }
.prose strong { color: var(--ink); }
.prose code { font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.article-grid .prose > p:first-child { font-size: 19px; color: var(--ink); }
.callout { margin: 1.6em 0; padding: 20px 24px; border-radius: var(--radius); background: var(--berry-soft); border: 1px solid #e2d0ff; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.table-wrap { margin: 1.6em 0; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; background: var(--paper-2); color: var(--ink); font-weight: 700; padding: 13px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.prose td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:first-child td { border-top: 0; }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(17, 16, 20, .04); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details > div { padding: 0 20px 6px; color: var(--ink-2); }
.sources { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.sources h2 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 0; color: var(--ink-3); }
.sources a { color: var(--ink-2); word-break: break-word; }
.intro { max-width: 760px; padding-top: 40px; }

/* ---------- home sections ---------- */
.home-section { padding: 80px 0; }
.home-section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose-wide { max-width: 880px; }
.home-section h2 { font-size: clamp(32px, 3.8vw, 46px); margin-top: 0; letter-spacing: -.04em; line-height: 1.08; }
.home-section.dark { background: var(--night); color: var(--on-night); border: 0; }
.home-section.dark h2, .home-section.dark h3, .home-section.dark strong { color: #fff; }
.home-section.dark p, .home-section.dark li { color: var(--on-night-2); }
.home-section.dark a { color: #d7b4ff; }

/* ---------- cards ---------- */
.related { padding: 72px 0; }
.related.alt { background: var(--card); border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.035em; margin: 0 0 28px; font-weight: 800; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.card { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.related.alt .card { background: var(--paper); box-shadow: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(17, 16, 20, .1); color: var(--ink); }
.card-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--berry); }
.card-title { font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.card-text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.more { margin: 24px 0 0; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { padding: 24px 0 72px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 56px; border-radius: 32px; background: radial-gradient(600px 300px at 90% 0%, rgba(155, 77, 255, .45), transparent 65%), var(--night); color: var(--on-night); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.1; }
.cta-band p { margin: 0; color: var(--on-night-2); max-width: 54ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-band .btn-store { background: #fff; color: #000; }
.cta-band .btn-store:hover { color: #000; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); color: var(--ink-2); padding: 56px 0 28px; font-size: 15px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 14px 0 18px; max-width: 34ch; }
.site-footer h2 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.fine { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav .btn-store { display: none; }
}
@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .side { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; }
  .hero-visual { min-height: 480px; }
  .phone { width: 230px; }
  .phone-screen { padding-top: 52px; }
  .trust-strip ul { grid-template-columns: 1fr 1fr; }
  .trust-strip li + li { padding-left: 0; border-left: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav > summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 12px; border-radius: 10px; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav > summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .mobile-nav nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 320px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 18px 40px rgba(17, 16, 20, .14); }
  .mobile-nav nav a, .mobile-nav nav summary { display: block; padding: 11px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
  .mobile-nav nav summary { list-style: none; cursor: pointer; }
  .mobile-nav nav summary::-webkit-details-marker { display: none; }
  .mobile-nav .btn-store { margin: 8px 6px 4px; }
  .mobile-nav .menu { position: static; transform: none; box-shadow: none; border: 0; background: var(--paper-2); min-width: 0; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--paper-2); }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .cards, .cards-5 { grid-template-columns: 1fr; }
  .trust-strip ul { grid-template-columns: 1fr 1fr; padding: 18px; gap: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .home-section { padding: 56px 0; }
  .hero-lede p { font-size: 17px; }
  .hero-visual { min-height: 430px; }
  .phone { width: 200px; }
  .ps-pad { gap: 8px; }
  .ps-pad span { font-size: 18px; }
  .tag { font-size: 12.5px; padding: 7px 10px; }
  .tag b { width: 24px; height: 24px; }
  .tag-1 { left: 0; top: 40px; }
  .tag-2 { right: 0; }
  .tag-3 { left: 2%; bottom: 40px; }
  .cta-band { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
