/* Kipina Labs: one stylesheet for every page. System fonts only, no third-party requests. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #15191f;
  --muted: #59626f;
  --line: #e7e2d9;
  --spark: #e8822a;
  --spark-soft: #fcebd9;
  --hunch: #0d7b76;
  --hunch-soft: #e1f1ef;
  --s107: #1d5fae;
  --s107-soft: #e4edf9;
  --shadow: 0 1px 2px rgba(21, 25, 31, .05), 0 12px 32px -12px rgba(21, 25, 31, .18);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1114;
    --surface: #161a1f;
    --ink: #eef1f4;
    --muted: #a3acb7;
    --line: #272d34;
    --spark: #f59d4c;
    --spark-soft: #3a2614;
    --hunch: #45c4bb;
    --hunch-soft: #0f2c2a;
    --s107: #74abee;
    --s107-soft: #142439;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
@media (min-width: 640px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* Header */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Home hero */

.hero { padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 820px) { .hero { padding-top: 88px; padding-bottom: 72px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px var(--spark-soft); }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 800; max-width: 12ch; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 36em; margin: 22px 0 0; }

/* App panels on the home page */

.apps { display: grid; gap: 24px; padding-bottom: 32px; }
.panel {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 860px) { .panel { grid-template-columns: 1.05fr .95fr; gap: 0; } }
.panel-text { padding: 32px 24px 8px; }
@media (min-width: 860px) { .panel-text { padding: 56px 48px; align-self: center; } }
.panel-art { position: relative; display: grid; place-items: center; padding: 36px 16px 0; overflow: hidden; min-height: 360px; }
.panel-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--tint) 75%); }
@media (min-width: 860px) { .panel-art::before { background: radial-gradient(110% 85% at 50% 100%, var(--tint) 0%, var(--tint) 35%, transparent 80%); } }
@media (min-width: 860px) { .panel-art { padding: 56px 32px 0; align-items: end; } }
.panel.hunch { --accent: var(--hunch); --tint: var(--hunch-soft); }
.panel.s107 { --accent: var(--s107); --tint: var(--s107-soft); }

.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-icon { width: 60px; height: 60px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px -6px rgba(0, 0, 0, .3); flex: none; }
.app-id h2 { font-size: 28px; }
.app-id p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.panel-text > p { font-size: 19px; margin: 0 0 18px; }

.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .32em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent, var(--spark)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
}
.soon svg { width: 14px; height: 14px; }
.more { font-weight: 600; color: var(--accent, var(--ink)); text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* Phones */

.phone {
  position: relative;
  width: min(290px, 74vw);
  padding: 9px;
  border-radius: 46px;
  background: #0c0e11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 40px 70px -30px rgba(10, 20, 30, .55);
}
.phone > img, .phone > .screen { display: block; width: 100%; border-radius: 37px; }
.panel-art .phone { margin-bottom: -90px; }
@media (min-width: 860px) { .panel-art .phone { margin-bottom: -70px; width: 300px; } }

/* A drawn Sourced 107 screen, from question REG-0001 in the app */
.screen {
  aspect-ratio: 1206 / 2622;
  background: #f2f2f7;
  color: #111;
  padding: 44px 13px 16px;
  font-size: 12.5px;
  line-height: 1.35;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
.screen .bar { text-align: center; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.screen .stem { font-weight: 700; font-size: 15px; line-height: 1.25; margin: 0 2px 12px; }
.screen .choice { display: flex; gap: 9px; align-items: flex-start; background: #fff; border-radius: 13px; padding: 10px 11px; margin-bottom: 7px; border: 1.5px solid transparent; }
.screen .choice b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #e9e9ee; display: grid; place-items: center; font-size: 11px; }
.screen .choice.right { border-color: #1f7a3d; }
.screen .choice.right b { background: #1f7a3d; color: #fff; }
.screen .verdict { background: #e6f1e9; border: 1px solid #b9d8c2; border-radius: 15px; padding: 11px; margin-top: 10px; }
.screen .verdict strong { color: #0a6129; display: block; font-size: 14px; margin-bottom: 4px; }
.screen .src { background: #fff; border-radius: 11px; padding: 9px 10px; margin-top: 9px; }
.screen .src span { font-weight: 700; display: block; margin-bottom: 3px; }
.screen .src q { font-style: italic; color: #3c3c43; }
.screen .next { margin-top: 14px; background: #1d5fae; color: #fff; text-align: center; font-weight: 600; border-radius: 999px; padding: 10px; }

/* Principles */

.section { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 820px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin: 14px 0 0; }

.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card .glyph { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--tint, var(--spark-soft)); color: var(--accent, var(--spark)); }
.card .glyph svg { width: 22px; height: 22px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card li + li { margin-top: 4px; }

/* App pages */

.app-page.hunch { --accent: var(--hunch); --tint: var(--hunch-soft); }
.app-page.s107 { --accent: var(--s107); --tint: var(--s107-soft); }

.app-hero { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 24px; align-items: center; }
@media (min-width: 880px) { .app-hero { grid-template-columns: 1.1fr .9fr; padding-top: 64px; padding-bottom: 40px; } }
.app-hero .app-icon { width: 88px; height: 88px; margin-bottom: 22px; }
.app-hero h1 { font-size: clamp(44px, 7vw, 68px); font-weight: 800; }
.app-hero .sub { font-size: clamp(20px, 2.6vw, 24px); font-weight: 600; color: var(--accent); margin: 8px 0 18px; letter-spacing: -0.01em; }
.app-hero .lead { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.app-hero .fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.hero-art { position: relative; display: grid; place-items: center; padding: 24px 0; }
.hero-art::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--tint), transparent); }

.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; left: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  background: var(--accent); color: var(--bg);
}

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split .phone { justify-self: center; }

.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 24px; margin: 0; scrollbar-width: thin; }
.shots figure { flex: 0 0 220px; margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }

.price { display: grid; gap: 16px; }
@media (min-width: 720px) { .price { grid-template-columns: repeat(3, 1fr); } }
.price .card strong { display: block; font-size: 30px; letter-spacing: -0.02em; margin: 4px 0 6px; color: var(--ink); }
.price .card.featured { border: 2px solid var(--accent); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

.note { border-left: 4px solid var(--accent, var(--spark)); background: var(--surface); border-radius: 0 14px 14px 0; padding: 16px 20px; color: var(--muted); margin: 0; }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.page-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-links a { text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.page-links a:hover { border-color: var(--accent, var(--ink)); }

/* Support and privacy pages */

.prose { max-width: 720px; padding-top: 24px; padding-bottom: 24px; }
.prose .crumb { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 26px; }
.prose .crumb img { width: 32px; height: 32px; border-radius: 22.5%; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-bottom: 10px; }
.prose h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--accent, var(--ink)); }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
