/* AK — Always Kindly. Shared app identity, without changing saved data keys. */
html { scroll-padding-top: 108px; }
.brand span { font-size: 25px; letter-spacing: -.04em; line-height: 1.1; }
.brand small { font-size: 9px; letter-spacing: .16em; margin-top: 5px; }
.brand img { width: 54px; height: 54px; }
.ak-app-hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 28px; border-bottom: 1px solid #ddd; margin-bottom: 28px; }
.ak-app-hero .unified-hero { padding: 18px 0 28px; }
.ak-app-hero .eyebrow { display: block; margin: 20px 0 12px; }
.ak-app-hero h1 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; font-size: clamp(36px, 5vw, 58px); }
.ak-app-hero figure { margin: 0; }
.ak-app-hero figure img { width: 100%; max-width: 320px; margin: auto; display: block; }
.ak-app-hero figcaption { text-align: center; font-size: 10px; letter-spacing: .16em; margin: 10px 0 28px; }
.ak-tools-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.ak-tools-heading p { margin: 0; font-size: 14px; }
.unified-section { border-left-width: 1px; }
.unified-section h2 { font-family: Georgia, serif; font-weight: 400; }
.free-pill { font-size: 10px; letter-spacing: .08em; }
@layer hyvinn-palette {
  html[data-hyvinn-palette="jere"] img[src*="ak-always-kindly.png"] {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    border: 0 !important;
    object-fit: contain !important;
  }
}
@media (max-width: 640px) {
  .ak-app-hero { grid-template-columns: 1fr; gap: 0; }
  .ak-app-hero .unified-hero { padding-bottom: 0; }
  .ak-app-hero figure img { max-width: 190px; }
  .ak-app-hero figcaption { margin: 0 0 22px; }
  .brand span { font-size: 22px; }
  .brand img { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Keep the website return visible in every AK view, including on a phone. */
:root { --ak-topbar-height: calc(128px + env(safe-area-inset-top, 0px)); scroll-padding-top: calc(var(--ak-topbar-height) + 20px); }
body > .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 52px 44px;
  gap: 8px 16px;
  height: var(--ak-topbar-height);
  min-height: var(--ak-topbar-height);
  padding: 12px max(24px, calc((100vw - 1100px) / 2));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.website-return-link {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.website-return-link:hover { text-decoration: underline; text-underline-offset: 4px; }
body > #main { padding-top: calc(var(--ak-topbar-height) + 26px); }
body > .sidebar { top: var(--ak-topbar-height); }
@media (max-width: 700px) {
  :root { --ak-topbar-height: calc(122px + env(safe-area-inset-top, 0px)); }
  body > .topbar { grid-template-rows: 46px 44px; gap: 8px; padding-left: 16px; padding-right: 16px; }
  .website-return-link { font-size: 12px; }
}
