/* Home v5 (1 Dec 2026): Quriva's own page layout. Real app screenshots in phone frames on soft colour panels,
   in the spirit of thinka.ai and brilliant.org. The header and footer keep the shared styles. */
.h5 { --navy: #0e1b3d; --red: #d23339; --mut: #5e6b83; --line: #e7e0d2;
  --blue: #e8efff; --blue-d: #1f3f9a; --green: #e3f4ea; --green-d: #14573a; --yellow: #fff3c9; --yellow-d: #7a5a00; --pink: #fde6e7; --pink-d: #9c1f25;
  color: var(--navy); }
.h5-wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.h5 h1, .h5 h2, .h5 h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.h5 p { margin: 0; }
.h5-tone-blue { --t: var(--blue); --td: var(--blue-d); } .h5-tone-green { --t: var(--green); --td: var(--green-d); }
.h5-tone-yellow { --t: var(--yellow); --td: var(--yellow-d); } .h5-tone-pink { --t: var(--pink); --td: var(--pink-d); }

/* hero */
.h5-hero { padding: 132px 0 0; text-align: center; background: linear-gradient(#fff, #fff 46%, #f5efe3); overflow: hidden; }
.h5-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--blue); color: var(--blue-d); font-size: 14px; line-height: 20px; font-weight: 500; }
.h5-hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.03; max-width: 15ch; margin: 22px auto 0; }
.h5-hero h1 em { font-style: normal; color: var(--red); }
.h5-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--mut); max-width: 56ch; margin: 22px auto 0 !important; }
.h5-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px !important; }
.h5-btns .btn { min-height: 52px; padding-inline: 26px; font-size: 17px; }
.h5-note { margin-top: 12px !important; font-size: 14px; color: var(--mut); }
.h5-stage { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 56px; height: clamp(300px, 40vw, 500px); }
.h5-cap { font-size: 13px; color: var(--mut); padding: 14px 0 22px; background: #f5efe3; }

/* phone frame */
.ph { margin: 0; width: min(270px, 62vw); aspect-ratio: 600 / 1298; border-radius: 38px; border: 9px solid var(--navy); background: var(--navy); overflow: hidden; box-shadow: 0 24px 60px -18px rgba(14, 27, 61, .35); flex: none; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.h5-stage .ph { width: clamp(170px, 23vw, 290px); align-self: flex-start; }
.h5-stage .ph--l { transform: translate(34px, 54px) rotate(-5deg); }
.h5-stage .ph--c { position: relative; z-index: 1; }
.h5-stage .ph--r { transform: translate(-34px, 54px) rotate(5deg); }

/* the four steps */
.h5-intro { padding: 96px 0 8px; text-align: center; }
.h5-intro h2, .h5-doors h2, .h5-cover h2, .h5-faq h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.h5-loop { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.h5-loop a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--t); color: var(--navy); font-weight: 500; font-size: 18px; text-decoration: none; min-height: 64px; }
.h5-loop b, .h5-step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--td); color: #fff; font-size: 15px; font-weight: 500; flex: none; }
.h5-row { padding: 72px 0; }
.h5-row__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.h5-row--flip .h5-row__text { order: 2; }
.h5-step { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--td); font-size: 16px; }
.h5-row h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.1; margin-top: 16px; max-width: 18ch; }
.h5-p { font-size: 18px; line-height: 1.55; color: var(--mut); margin-top: 16px !important; max-width: 46ch; }
.h5-ticks { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.h5-ticks li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.45; }
.h5-ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%2314573a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.h5-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--navy); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; min-height: 44px; }
.h5-link svg { width: 16px; height: 16px; }
.h5-panel { background: var(--t); border-radius: 36px; padding: 48px 24px 0; display: flex; justify-content: center; align-items: flex-start; gap: 20px; height: 540px; overflow: hidden; }
.h5-panel .ph { width: min(280px, 100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; aspect-ratio: auto; height: 100%; }
.h5-panel--two .ph { width: min(230px, 48%); }
.h5-panel--two .ph:last-child { margin-top: 44px; height: calc(100% - 44px); }
.h5-panel:has(.h5-card) { align-items: center; padding: 40px; height: auto; min-height: 460px; }
.h5-card { margin: 0; width: min(420px, 100%); border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px -22px rgba(14, 27, 61, .4); background: #fff; }
.h5-card img { display: block; width: 100%; height: auto; }

/* who it is for */
.h5-doors { padding: 88px 0 40px; text-align: center; }
.h5-doors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; text-align: left; }
.h5-door { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; background: var(--t); color: var(--navy); text-decoration: none; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.h5-door:hover { transform: translateY(-4px); }
.h5-door__who { font-size: 14px; font-weight: 500; color: var(--td); }
.h5-door h3 { font-size: 26px; line-height: 1.15; }
.h5-door p:not(.h5-door__who) { color: #3b4763; font-size: 16px; line-height: 1.5; flex: 1; }

/* coverage */
.h5-cover { padding: 72px 0; text-align: center; }
.h5-cover__grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left; }
.h5-cover__grid li { border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.h5-cover__grid b { font-family: var(--font-display); font-weight: 500; font-size: 24px; }

.h5-honest { max-width: 70ch; margin: 26px auto 0 !important; font-size: 14px; line-height: 1.55; color: var(--mut); }

/* questions */
.h5-faq { padding: 56px 0 104px; }
.h5-faq__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.h5-q { border-bottom: 1.5px solid var(--line); }
.h5-q summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 500; position: relative; min-height: 44px; }
.h5-q summary::-webkit-details-marker { display: none; }
.h5-q summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--mut); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.h5-q[open] summary::after { transform: rotate(45deg); }
.h5-q p { padding: 0 0 22px; color: var(--mut); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.h5 a:focus-visible, .h5 summary:focus-visible { outline: 3px solid var(--blue-d); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 900px) {
  .h5-hero { padding-top: 104px; }
  .h5-loop { grid-template-columns: 1fr 1fr; }
  .h5-row { padding: 48px 0; }
  .h5-row__in { grid-template-columns: 1fr; gap: 28px; }
  .h5-row--flip .h5-row__text { order: 0; }
  .h5-panel { height: 440px; padding-top: 36px; border-radius: 28px; }
  .h5-panel:has(.h5-card) { padding: 24px; min-height: 0; }
  .h5-doors__grid, .h5-cover__grid { grid-template-columns: 1fr; }
  .h5-faq__in { grid-template-columns: 1fr; gap: 20px; }
  .h5-stage .ph--l { transform: translate(22px, 40px) rotate(-5deg); } .h5-stage .ph--r { transform: translate(-22px, 40px) rotate(5deg); }
}
@media (max-width: 520px) {
  .h5-wrap { width: calc(100% - 40px); }
  .h5-btns .btn { width: 100%; }
  .h5-stage { height: 300px; margin-top: 40px; }
  .h5-stage .ph { width: 150px; border-width: 6px; border-radius: 26px; }
  .h5-stage .ph--l { transform: translate(30px, 34px) rotate(-5deg); } .h5-stage .ph--r { transform: translate(-30px, 34px) rotate(5deg); }
  .h5-loop a { font-size: 16px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .h5-door, .h5-q summary::after { transition: none; } }

/* the shared kit sizes every main > section to whole screens; this page sizes sections by their content */
main.h5 > section { min-height: 0 !important; height: auto !important; max-height: none !important; display: block; }
.h5-cover__grid b { display: block; font-size: 24px; line-height: 1.15; color: var(--navy); }
.h5-hero h1 { font-size: clamp(38px, 6.2vw, 76px) !important; line-height: 1.03 !important; }
.h5-row h2, .h5-intro h2, .h5-doors h2, .h5-cover h2, .h5-faq h2 { font-family: var(--font-display); }
.h5-hero h1 em { display: block; }
.h5-stage { overflow: hidden; padding-top: 18px; }
.h5-cap { position: relative; z-index: 2; margin-top: 0 !important; }
.h5-panel .ph { height: auto; aspect-ratio: 600 / 1298; }
.h5-panel--two .ph:last-child { height: auto; }
.h5-cover__grid li > b { font-size: 24px !important; line-height: 1.15 !important; font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.h5-cover__grid li > b span { font: inherit; color: inherit; }
.h5-cover__grid li > span { color: var(--mut); font-size: 15px; line-height: 1.45; }

/* inner pages (pages5.py) */
.h5-hero__end { height: 72px; }
.h5-card--hero { margin: 48px auto 0; width: min(440px, 100%); position: relative; z-index: 1; }
.h5-hero:has(.h5-card--hero) .h5-stage { height: auto; overflow: visible; padding-bottom: 56px; }
.h5-sub { color: var(--mut); font-size: 18px; line-height: 1.5; margin-top: 14px !important; }
.h5-tiles { padding: 72px 0; text-align: center; }
.h5-tiles h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.h5-tiles__grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.h5-tiles__grid--2 { grid-template-columns: repeat(2, 1fr); }
.h5-tile { background: var(--t); border-radius: 26px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.h5-tile h3 { font-size: 22px; line-height: 1.2; color: var(--navy); }
.h5-tile p { color: #3b4763; font-size: 16px; line-height: 1.5; }
.h5-wide { padding: 72px 0; }
.h5-wide__text { max-width: 720px; }
.h5-wide h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.1; margin-top: 16px; }
.h5-wide .h5-ticks { grid-template-columns: repeat(3, auto); gap: 12px 28px; max-width: none; justify-content: start; }
.h5-browser { margin: 36px 0 0; background: var(--t); border-radius: 32px; padding: 28px 28px 0; overflow: hidden; }
.h5-browser__bar { height: 34px; background: #fff; border-radius: 16px 16px 0 0; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.h5-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcd3c2; }
.h5-browser img { display: block; width: 100%; height: auto; box-shadow: 0 24px 60px -22px rgba(14, 27, 61, .4); }
@media (max-width: 900px) {
  .h5-tiles { padding: 48px 0; } .h5-tiles__grid { grid-template-columns: 1fr; }
  .h5-wide { padding: 48px 0; } .h5-wide .h5-ticks { grid-template-columns: 1fr; }
  .h5-browser { padding: 14px 14px 0; border-radius: 22px; }
}

/* reading pages and the demo form (pages4.py) */
.h5-hero--doc { padding-bottom: 56px; background: linear-gradient(#fff, #f5efe3); }
.h5-hero--doc h1 { max-width: 18ch; }
.h5-doc { padding: 56px 0 96px; }
.h5-doc .doc__grid { margin-top: 0; gap: 16px; }
.h5-doc .doc__card { border: 0; border-radius: 26px; padding: 26px; background: #f5efe3; }
.h5-doc .doc__card:nth-child(4n+1) { background: var(--blue); } .h5-doc .doc__card:nth-child(4n+2) { background: var(--green); }
.h5-doc .doc__card:nth-child(4n+3) { background: var(--yellow); } .h5-doc .doc__card:nth-child(4n) { background: var(--pink); }
.h5-doc .doc__card b, .h5-doc .doc__card .src { color: #3b4763; }
.h5-doc .doc__body { margin-inline: auto; margin-top: 0; }
.h5-doc .doc__grid + .doc__body { margin-top: 56px; }
.h5-doc .cmp { margin-top: 0; border-radius: 24px; overflow: hidden; }
.h5-doc .cmp thead th { background: #f5efe3; font-family: var(--font-display); font-size: 17px; }
.h5-doc .cmp .cmp-q { background: var(--green); color: var(--navy); }
.h5-doc .cmp thead .cmp-q { background: var(--navy); color: #fff; }
.h5-hero--form { text-align: left; padding-bottom: 88px; background: linear-gradient(#fff, #f5efe3); }
.h5-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.h5-hero--form h1 { margin: 20px 0 0; max-width: none; font-size: clamp(36px, 4.6vw, 60px) !important; }
.h5-hero--form .h5-lead { margin: 18px 0 0 !important; }
.h5-loop--col { grid-template-columns: 1fr; margin: 28px 0 24px; }
.h5-loop--col span { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--t); font-size: 17px; }
.h5-hero--form .qv-form { border: 0; border-radius: 28px; padding: 32px; box-shadow: 0 24px 60px -24px rgba(14, 27, 61, .3); }
@media (max-width: 900px) { .h5-formgrid { grid-template-columns: 1fr; gap: 32px; } .h5-hero--form { padding-bottom: 56px; } }
.h5-doc > .doc { padding: 0 !important; min-height: 0 !important; }
.h5-doc .doc__body h2 { margin-top: 32px; } .h5-doc .doc__body h2:first-child { margin-top: 0; }

/* the tools page */
.h5-loop--5 { grid-template-columns: repeat(5, 1fr); max-width: 860px; margin-inline: auto; margin-top: 36px; }
.h5-group { padding: 64px 0; border-top: 1.5px solid var(--line); }
.h5-group__head h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.1; margin-top: 14px; }
.h5-shots { background: var(--t); border-radius: 36px; margin-top: 32px; padding: 40px 24px 0; height: 420px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.h5-shots .ph { width: min(250px, 30%); border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.h5-shots .ph:nth-child(2) { margin-top: 36px; }
.h5-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.h5-list h3 { font-size: 20px; line-height: 1.25; }
.h5-list p { margin-top: 6px !important; color: var(--mut); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) {
  .h5-loop--5 { grid-template-columns: 1fr 1fr; }
  .h5-group { padding: 44px 0; } .h5-shots { height: 300px; padding: 24px 12px 0; gap: 12px; border-radius: 26px; } .h5-shots .ph { width: 46%; border-width: 6px; border-radius: 26px; }
  .h5-shots .ph:nth-child(3) { display: none; }
  .h5-list { grid-template-columns: 1fr; gap: 20px; }
}

/* public sample notes (notes.py) */
.n-doc { max-width: 760px; margin-inline: auto; font-size: 17px; line-height: 1.7; }
.n-doc h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 56px 0 14px; }
.n-doc h3 { font-size: 18px; margin-bottom: 8px; } .n-doc h4 { font: 500 16px/1.4 var(--font-text); margin: 0 0 6px; }
.n-doc p { margin: 0 0 14px !important; } .n-doc ul, .n-doc ol { margin: 0 0 14px; padding-left: 1.3em; } .n-doc li { margin-bottom: 6px; }
.n-honest { background: #f5efe3; border-radius: 18px; padding: 16px 20px; font-size: 15px; line-height: 1.55; color: #3b4763; }
.n-honest b { display: block; color: var(--navy); }
.n-toc { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-top: 16px; font-size: 16px; }
.n-toc p { font-weight: 500; margin-bottom: 6px !important; } .n-toc ol { margin: 0; list-style: none; padding: 0; } .n-toc li { margin: 0; color: var(--mut); }
.n-terms { margin: 0 0 14px; display: grid; gap: 10px; } .n-terms div { background: #f5efe3; border-radius: 14px; padding: 12px 16px; } .n-terms dt { font-weight: 500; } .n-terms dd { margin: 0; color: #3b4763; }
.n-formulas { list-style: none; padding: 0 !important; display: grid; gap: 10px; } .n-formulas li { background: var(--blue); border-radius: 14px; padding: 12px 16px; display: grid; gap: 2px; }
.n-formulas b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.n-fig { margin: 0 0 18px; } .n-fig figcaption { font-size: 14px; color: var(--mut); margin-top: 6px; }
.n-tablewrap { overflow-x: auto; } .n-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.n-table th, .n-table td { border: 1.5px solid var(--line); padding: 8px 12px; text-align: left; } .n-table th { background: #f5efe3; font-weight: 500; }
.n-steps, .n-flow { list-style: none; padding: 0 !important; display: grid; gap: 8px; counter-reset: n; }
.n-steps li, .n-flow li { counter-increment: n; background: #f5efe3; border-radius: 12px; padding: 10px 14px 10px 44px; position: relative; margin: 0; }
.n-steps li::before, .n-flow li::before { content: counter(n); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: grid; place-items: center; }
.n-steps li.is-key { background: var(--green); font-weight: 500; }
.n-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .n-compare > div { background: #f5efe3; border-radius: 14px; padding: 14px 16px; } .n-compare ul { margin: 0; }
.n-inapp { font-size: 15px; color: var(--mut); border-left: 3px solid var(--line); padding-left: 12px; }
.n-box { background: var(--t); border-radius: 18px; padding: 18px 20px; margin: 0 0 16px; } .n-box ul, .n-box ol { margin-bottom: 0; } .n-box h3 { color: var(--td); }
.n-ex { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 0 0 16px; }
.n-ex__lv { font-size: 14px; font-weight: 500; color: var(--mut); margin-bottom: 6px !important; } .n-ex__q { font-weight: 500; } .n-ex__a { margin-bottom: 0 !important; }
.n-sum { background: var(--green); border-radius: 18px; padding: 18px 20px 18px 40px !important; }
.n-next { background: var(--t); border-radius: 28px; padding: 32px; margin-top: 56px; text-align: center; } .n-next h2 { margin-top: 0; } .n-next .h5-btns { margin-top: 18px !important; }
.n-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .n-index a { height: 100%; }
@media (max-width: 900px) { .n-index { grid-template-columns: 1fr; } .n-compare { grid-template-columns: 1fr; } .n-next { padding: 24px 18px; } }
.h5-browser:has(img[height="1200"]) { max-width: 820px; margin-inline: auto; }

/* Touch screens: the logo and, on a landscape tablet, the top menu are finger-sized (44px). */
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
@media (pointer: coarse) {
  .nav__links a, .nav__link, .nav__actions a { min-height: 44px; display: inline-flex; align-items: center; }
}
.h5-q p a, .h5-tile p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
