/* tellatribe guides: the sales page's Daylight world set for reading. Poster headings, a calm reading column,
   real screens as evidence, one ink block per article for "how tellatribe does it", blue only for the close. */

/* base, shared with the sales page (kept separate so its section styles do not leak in) */
:root {
  --ground: #F2F4F7; --surface: #FFFFFF; --surface-2: #EEF1F5; --line: #E1E4E9;
  --ink: #12151A; --fg-2: #4A515C; --fg-3: #5C6470;
  --blue: #3761E0; --blue-text: #2F5BDB; --blue-deep: #2748B8; --wash: #EAF0FF; --on-blue-2: #F1F4FF;
  --ok: #18734B; --wash-ok: #E4F3EA; --wait: #925600; --wash-wait: #FFF3DC; --warn: #BA3328; --wash-warn: #FDECEA;
  --ink-2: #171A1F; --ink-3: #2A3039; --on-ink: #ECECEA; --on-ink-2: #A6ABB3;
  --display: "Big Shoulders Display", "Archivo Narrow", "Arial Narrow", sans-serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: #9AA1AC var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--blue); }
::selection { background: var(--blue); color: #fff; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.band-blue :focus-visible, .band-ink :focus-visible, .foot :focus-visible { outline-color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .93; letter-spacing: .004em; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 7.6vw, 6rem); }
h2 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
h3 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 13px; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .94rem; border-radius: 11px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(55, 97, 224, .9); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2A3039; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--surface); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 12px 26px -14px rgba(10, 20, 60, .7); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2)); background: var(--ground); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; line-height: 1; display: inline-flex; align-items: center; min-height: 44px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--fg-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav nav a:hover { color: var(--ink); text-decoration: underline; }

.band-blue :focus-visible, .band-ink :focus-visible, .foot :focus-visible { outline-color: #fff; }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-blue { background: var(--blue); color: #fff; }
.foot { background: var(--ink); color: var(--on-ink-2); padding: 44px max(var(--gutter), calc((100vw - var(--max)) / 2)) 56px; display: grid; gap: 10px; justify-items: start; font-size: .95rem; }
.foot .wordmark { color: #fff; }
.foot a { color: #fff; display: inline-block; padding-block: 12px; }
.foot .fine { font-size: .84rem; max-width: 44rem; }
.band-blue { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.band-blue::before { content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; left: -25vw; top: -35vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 180, 255, .5), rgba(150, 180, 255, 0)); animation: glow 20s ease-in-out infinite alternate; }

/* guides */.g { font-size: 17.5px; }
.g .nav nav { margin-left: auto; }
.g .nav .btn { margin-left: 8px; }
.g-page { --col: 700px; padding-bottom: 0; }
.g-page > * { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }

/* head */
.g-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 44px); display: grid; gap: 18px; max-width: calc(980px + 2 * var(--gutter)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; color: var(--fg-3); align-items: center; }
.crumbs a { color: var(--fg-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.g-head h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); max-width: 17ch; }
.g-dek { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--fg-2); max-width: 40rem; }
.g-by { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: var(--fg-3); }
.g-by span:first-child { color: var(--ink); font-weight: 600; }
.g-hero { margin-bottom: clamp(28px, 4vw, 48px); }
.g-hero img { display: block; width: 100%; max-width: 1240px; height: auto; max-height: 520px; object-fit: cover; object-position: top; border-radius: 22px; box-shadow: 0 40px 70px -46px rgba(18, 21, 26, .55), 0 0 0 1px var(--line); background: var(--surface); }

/* layout: contents rail and reading column */
.g-layout { display: grid; grid-template-columns: 220px minmax(0, var(--col)); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.g-toc { position: sticky; top: 92px; font-size: .9rem; }
.g-toc summary { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); cursor: pointer; list-style: none; padding: 6px 0 10px; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc ol { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.g-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--fg-2); text-decoration: none; line-height: 1.35; }
.g-toc a:hover { color: var(--ink); border-left-color: var(--blue); }

/* prose */
.prose { font-size: 1.06rem; line-height: 1.68; color: var(--ink); min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose li { color: #2A3039; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-top: 2.1em; scroll-margin-top: 96px; max-width: 20ch; }
.prose h2 + * { margin-top: .9em; }
.prose h3 { font-family: var(--sans); text-transform: none; font-size: 1.18rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin-top: 1.6em; }
.prose h3 + * { margin-top: .5em; }
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.prose ol:not(.steps) { counter-reset: n; }
.prose ol:not(.steps) > li { counter-increment: n; position: relative; padding-left: 1.8em; }
.prose ol:not(.steps) > li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; color: var(--blue-text); }
.prose strong, .prose b { color: var(--ink); }
.prose a { font-weight: 500; }

/* the answer and the takeaways */
.prose .answer { font-size: 1.22rem; line-height: 1.55; color: var(--ink); background: var(--surface); border-radius: 18px; padding: 24px 26px; box-shadow: 0 0 0 1px var(--line); }
.prose .keypoints { background: var(--wash); border-radius: 18px; padding: 22px 24px; gap: .65em; }
.prose .keypoints > li { padding-left: 1.7em; }
.prose .keypoints > li::before { width: 14px; height: 14px; top: .4em; left: 0; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* evidence */
.prose .stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; padding: 22px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.prose .stat b { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: .9; color: var(--blue-text); }
.prose .stat p { font-size: 1rem; color: var(--fg-2); }
.prose figure { display: grid; gap: 10px; }
.prose figcaption { font-size: .88rem; color: var(--fg-3); line-height: 1.45; }
.prose .shot img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 50px -36px rgba(18, 21, 26, .5), 0 0 0 1px var(--line); }
.prose .phone { float: right; width: min(260px, 42%); margin: .4em 0 1.2em 32px; }
.prose .phone img { display: block; width: 100%; height: auto; border: 8px solid var(--ink); border-radius: 34px; background: var(--ground); box-shadow: 0 34px 50px -30px rgba(18, 21, 26, .55); }
.prose .phone figcaption { text-align: center; }
.prose h2, .prose .versus, .prose .table-wrap, .prose .stat, .prose .pieces, .prose .shot, .prose .how, .prose .faq, .prose .steps, .prose .example { clear: both; }
.prose .pieces { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.prose .pieces img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--surface-2); box-shadow: 0 22px 34px -26px rgba(18, 21, 26, .55); }
.prose .pieces figcaption { grid-column: 1 / -1; }

/* tables */
.prose .table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; background: var(--surface-2); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { font-weight: 600; color: var(--ink); }
.prose .vs td:nth-child(2) { background: var(--wash); }
.prose .vs span { display: inline-block; font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin: 0 6px 4px 0; }
.prose .vs .y { background: var(--wash-ok); color: var(--ok); }
.prose .vs .p { background: var(--wash-wait); color: var(--wait); }
.prose .vs .n { background: var(--wash-warn); color: var(--warn); }
.prose .vs .nf { background: var(--surface-2); color: var(--fg-3); }

/* worked examples, contrasts, steps, callouts */
.prose .example { background: var(--surface); border-radius: 16px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; }
.prose .example > b:first-child { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); }
.prose .versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose .versus > div { border-radius: 16px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.prose .versus h3 { margin: 0; font-size: 1rem; }
.prose .versus .usual { background: #E4E2DC; }
.prose .versus .usual h3, .prose .versus .usual li { color: #3A3A37; }
.prose .versus .usual li::before { background: #8E8B83; }
.prose .versus .better { background: var(--ink); }
.prose .versus .better h3, .prose .versus .better li { color: #F4F5F7; }
.prose .versus .better li::before { background: #7FA0FF; }
.prose .steps { counter-reset: s; gap: 0; }
.prose .steps > li { counter-increment: s; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.prose .steps > li::before { content: counter(s); grid-row: span 9; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: .9; color: var(--blue-text); }
.prose .callout { background: var(--wash-wait); border-radius: 16px; padding: 18px 22px; color: #3B2A08; }
.prose .callout b { color: #3B2A08; }

/* how tellatribe does it: the one ink block */
.prose .how { background: var(--ink); color: var(--on-ink); border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; margin-top: 2.2em; overflow: hidden; }
.prose .how h3 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.9rem; line-height: .95; color: #fff; }
.prose .how p, .prose .how li { color: #D9DCE1; }
.prose .how a { color: #A9BEFF; }
.prose .how .phone, .prose .how .shot { margin-top: 6px; }
.prose .how .phone img { border-color: #2A3039; }
.prose .how figcaption, .prose .how small, .prose .how .stat p { color: var(--on-ink-2); }
.prose .how .stat b { color: #A9BEFF; }
.prose .how .stat { border-top-color: #fff; border-bottom-color: #2A3039; }

/* questions */
.prose .faq { margin-top: 2.6em; display: grid; gap: 0; }
.prose .faq h2 { margin: 0 0 14px; }
.prose .qa { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.prose .qa h3 { margin: 0; font-size: 1.08rem; }
.prose .legal, .prose .fine { font-size: .9rem; color: var(--fg-3); padding-top: 18px; border-top: 1px solid var(--line); }

/* related and the close */
.g-related { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); background: var(--surface); display: grid; gap: 26px; }
.g-related h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.g-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: var(--ground); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--ink), 0 24px 40px -30px rgba(18, 21, 26, .5); }
.g-card-group { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); font-weight: 700; }
.g-card b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: .95; }
.g-card-dek { color: var(--fg-2); font-size: .95rem; line-height: 1.45; }
.g-cta { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.g-cta h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 14ch; }
.g-cta p { color: var(--on-blue-2); font-size: 1.12rem; max-width: 34rem; margin-top: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* hubs */
.hub .hub-group { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); display: grid; gap: 22px; }
.hub-intro { display: grid; gap: 8px; max-width: 44rem; }
.hub-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hub-intro p { color: var(--fg-2); font-size: 1.08rem; }
.hub-lead { display: grid; gap: 10px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .25s var(--ease); }
.hub-lead:hover { transform: translateY(-3px); }
.hub-lead b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: .93; max-width: 20ch; }
.hub-lead span { color: #C9CDD4; max-width: 44rem; }
.hub-lead i { font-style: normal; font-weight: 600; color: #A9BEFF; }
.hub-cards { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.hub-sub { font-family: var(--sans); text-transform: none; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-top: 8px; }
.hub-vs { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-vs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.hub-vs a:hover { box-shadow: 0 0 0 1.5px var(--ink); }

@media (max-width: 1000px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .g-toc { position: static; background: var(--surface); border-radius: 16px; padding: 6px 18px; box-shadow: 0 0 0 1px var(--line); }
  .g-toc details:not([open]) summary { padding-bottom: 6px; }
  .g-toc summary { min-height: 44px; display: flex; align-items: center; }
  .g .nav nav { display: none; }
  .g-cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .prose .phone { float: none; width: min(280px, 100%); margin: 1.2em auto; }
  .prose .versus { grid-template-columns: minmax(0, 1fr); }
  .prose table.vs { min-width: 0; font-size: .88rem; }
  .prose .vs th, .prose .vs td { padding: 11px 10px; }
  .hub-cards { grid-template-columns: minmax(0, 1fr); }
  .hub-cards .g-card { grid-column: auto !important; }
  .prose .stat { grid-template-columns: minmax(0, 1fr); }
  .prose .answer { padding: 20px; font-size: 1.12rem; }
  .g-cta .actions .btn { flex: 1 1 100%; }
}
@keyframes glow { to { transform: translate(75vw, 22vw) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .g-card, .hub-lead, .btn { transition: none; } .band-blue::before { animation: none; } }
