.count-animated {
  display: inline-grid;
  grid-template-areas: "value";
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.count-animated > span {
  grid-area: value;
}

.count-animated > .count-original {
  opacity: 0;
}

.ios-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: clamp(3px, 0.5vw, 6px) solid #315d59;
  border-radius: 12% / 5.5%;
  background: #f4f7f5;
  box-shadow: 0 12px 26px #173c3730;
}

@media (prefers-reduced-motion: reduce) {
  .count-animated > .count-original {
    opacity: 1;
  }

  .count-animated > [aria-hidden] {
    visibility: hidden;
  }
}

/* Landing interactions */
:root { --motion-ease: cubic-bezier(.22,.7,.22,1); }
.nav { background: var(--bg); backdrop-filter: none; transition: background .3s, box-shadow .3s, border-color .3s; }
.nav.is-scrolled {
  background: #f4f7f5e8;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 5px 20px #173c3712, inset 0 1px #ffffffb3;
  border-color: #d4e2dbd9;
}
.nav a:not(.logo), .mobile-toggle { text-transform: uppercase; }
.navlinks { font-size: 12px; }
.nav .btn { font-size: 12px; }
.impact .stat { transition: transform .36s var(--motion-ease), background .36s, box-shadow .36s; }
@media (hover:hover) and (pointer:fine) {
  .impact .stat:hover, .impact .stat:focus-within {
    position: relative;
    z-index: 2;
    transform: translateY(-7px) scale(1.035);
    background: #274e47;
    box-shadow: 0 16px 28px #081d1a55;
  }
}
.stat .trend-row i, .report .bar-row i {
  transform-origin: left;
  transition: none;
}
.motion-ready .stat:not(.revealed) .ring-fill { stroke-dasharray: 0 100; }
.motion-ready .stat:not(.revealed) .day-grid :is(.full,.partial,.half) {
  opacity: .2;
}
.motion-ready .stat:not(.revealed) .trend-row i,
.motion-ready .report .bar-row:not(.revealed) i { transform: scaleX(0); }

.motion-ready .manifesto-main em {
  color: #fffefa;
  background-image: linear-gradient(var(--sun),var(--sun));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.manifesto-main.revealed em {
  animation: highlight-phrase 1.15s var(--motion-ease) both;
}
@keyframes highlight-phrase {
  to { color: #fffefa00; background-size: 100% 100%; }
}
.motion-ready :is(.step):not(.revealed) {
  opacity: 0;
  transform: translateY(17px);
}
.motion-ready :is(.step) {
  transition: opacity .55s var(--motion-ease), transform .65s var(--motion-ease);
  transition-delay: var(--reveal-delay,0ms);
}
.categories .category { background: #e8f0f2; border-color: #d1e0e3; }
.categories .cat-icon { background: #d5e6e9; }
.cat-icon svg { width: 23px; height: 23px; display: block; }
.motion-ready .category:not(.revealed) .cat-icon { opacity: .25; transform: scale(.86); }
.category.revealed .cat-icon { animation: icon-press .6s var(--motion-ease) both; }
@keyframes icon-press {
  0% { opacity: .25; transform: translateY(7px) scale(.86); }
  45% { opacity: 1; transform: translateY(2px) scale(.97); }
  68% { transform: translateY(-4px) scale(1.13); }
  100% { transform: translateY(0) scale(1); }
}
.insights .split { align-items: start; }
.connection { margin-top: 26px; align-items: center; }
.connection .ambient-willo { width: clamp(66px,11vw,136px); }
.willo-stars path { animation: star-shine 2.4s ease-in-out infinite alternate; }
.willo-stars path:nth-child(2) { animation-delay: .45s; }
.willo-stars path:nth-child(3) { animation-delay: .9s; }
@keyframes star-shine { from { opacity: .48; } to { opacity: 1; } }
.rate { position: relative; }
.rate button { transition: transform .3s var(--motion-ease), background .3s; }
.rate button.previewing {
  background: #e1eeeb;
  transform: translateY(-3px) scale(1.16);
  border-color: #759e90;
}
.rate-gesture {
  position: absolute;
  inset: 27px auto auto 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f3d7b5;
  border: 2px solid #fffefa;
  box-shadow: 0 0 0 1px #956b4377, 0 3px 8px #173c3726;
  pointer-events: none;
  opacity: 0;
}
.shape-choice { transition: transform .32s var(--motion-ease), border-color .3s, background .3s, box-shadow .3s; }
.shape-choice.previewing { transform: translateY(-5px) scale(1.035); box-shadow: 0 7px 16px #173c3720; }
.plans { background: #e2ece6; }
.platform { background: var(--paper); }
.plan { position: relative; overflow: hidden; min-width: 0; }
/* The exposed corner and the underside share the same curved edge. */
.plan-front { height: 100%; padding-bottom: 72px; }
.plan-info {
  --fold-light: #f9fcf9;
  --fold-mid: #dbe8e1;
  --fold-shade: #a4beb3;
  --fold-edge: #9db5a9;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-bottom-right-radius: inherit;
  background: transparent;
  color: #244e49;
  font-weight: 750;
  font-size: 13px;
  isolation: isolate;
}
.plan:nth-child(2) .plan-info {
  --fold-light: #edf7f1;
  --fold-mid: #c9e0d5;
  --fold-shade: #94b4a4;
  --fold-edge: #8ca999;
}
.plan:nth-child(3) .plan-info {
  --fold-light: #9bbcb0;
  --fold-mid: #6c9688;
  --fold-shade: #345f55;
  --fold-edge: #2a554b;
}
.plan-fold {
  position: absolute;
  inset: 0;
  transform-origin: bottom right;
  animation: fold-breathe 4s ease-in-out infinite;
}
.plan-fold::before, .plan-fold::after { content: ''; position: absolute; inset: 0; }
.plan-fold::before {
  background: radial-gradient(ellipse at 75% 70%, #b8cec2, #e2ece6 74%);
  clip-path: path('M 96 8 C 92 37 41 91 8 96 H 96 Z');
}
.plan-fold::after {
  background: linear-gradient(135deg, var(--fold-edge) 19%, var(--fold-light) 37%, var(--fold-mid) 53%, var(--fold-shade) 65%, var(--fold-edge) 74%);
  clip-path: path('M 96 8 C 92 37 41 91 8 96 C 30 92 34 68 34 42 C 62 43 89 33 96 8 Z');
}
.plan-info > span:last-child { position: absolute; right: 13px; bottom: 9px; }
/* Focus follows the label while the folded corner remains a large hit area. */
.plan-info:focus-visible { outline: none; }
.plan-info:focus-visible > span:last-child {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}
.plan-close:focus-visible { outline-offset: -4px; }
.plan:nth-child(2) .plan-fold { animation-delay: .45s; }
.plan:nth-child(3) .plan-fold { animation-delay: .9s; }
@keyframes fold-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}
.plan-page {
  width: min(690px, calc(100% - 32px));
  max-height: min(78dvh, 700px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #afc7bc;
  border-radius: 23px;
  background: #f8fbf8;
  color: var(--ink);
  box-shadow: 0 24px 70px #173c3748;
}
.plan-page[open] { animation: plan-rise .36s var(--motion-ease) both; }
.plan-page::backdrop { background: #173c374d; }
@keyframes plan-rise {
  from { opacity: .45; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
.plan-page-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px 8px;
  background: #f8fbf8;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.plan-page-head h3 { margin: 0; font-size: 22px; }
.plan-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 24px; }
.plan-features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; margin: 0; padding: 8px 24px 24px; font-size: 14px; }
.plan-features > div { display: grid; grid-template-columns: 1fr minmax(0,.64fr); gap: 9px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plan-features > div:last-child { border-bottom: none; }
.plan-features dt { font-weight: 650; }
.plan-features dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.plan-comparison { margin-top: 26px; }
.plan-comparison summary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 17px;
  min-height: 44px;
  border: 1px solid #aac5b9;
  border-radius: 100px;
  background: #f8fbf8;
  cursor: pointer;
  font-weight: 650;
}
.plan-comparison summary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.plan-comparison[open] summary::after { transform: translateY(2px) rotate(225deg); }
.plan-comparison summary::-webkit-details-marker { display: none; }
.plan-comparison summary:focus-visible { outline: 3px solid #bb8553; outline-offset: 4px; }
.plan-comparison .comparison { margin-top: 14px; background: #fbfdfb; }
@media (max-width:600px) {
  .connection { align-items: flex-start; }
  .connection h3 { font-size: 22px; }
  .plan-page { margin: auto 0 0; width: 100%; max-width: none; max-height: 88dvh; border-radius: 24px 24px 0 0; }
  .plan-features { grid-template-columns: 1fr; padding: 6px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .impact .stat,
  .rate button, .shape-choice, .plan-page, .plan-comparison summary::after { transition: none; }
  .plan-fold, .plan-page[open] { animation: none; }
  .impact .stat:hover, .impact .stat:focus-within { transform: none; }
}


body:has(.plan-page[open]) { overflow: hidden; }

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 33px;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 100px;
  text-decoration: none;
}
.language-switch a[aria-current=page] { background: #dcebe4; }
.nav .navlinks a, .nav > .shell > .btn { white-space: nowrap; }
@media (min-width: 701px) and (max-width: 1040px) {
  .nav .shell { gap: 10px; }
  .nav .navlinks { gap: 10px; }
  .nav .brand-img { width: 104px; }
  .nav > .shell > .btn { padding-inline: 13px; }
}
@media (max-width: 780px) {
  .nav .shell { gap: 10px; }
  .nav .logo { margin-right: auto; }
  .nav .language-switch { order: 1; }
  .nav .mobile-toggle { order: 2; }
  .nav > .shell > .btn { display: none; }
  .nav .mobile-toggle { display: inline-flex; }
  .nav .navlinks {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 16px 24px; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
  }
  .nav .navlinks.show { display: flex; }
}

.nav .header-contact {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: background .2s ease;
}
.nav .header-contact:hover { background: #dcebe4; }
.header-contact svg, .signup-contact svg { width: 20px; height: 20px; flex: none; }
.footer .footer-credit { text-decoration: underline; text-underline-offset: 3px; }
.expert-validation {
  display: grid;
  grid-template-columns: clamp(100px,16vw,180px) minmax(0,1fr);
  align-items: center;
  gap: clamp(16px,4vw,45px);
  margin-top: 28px;
  padding: clamp(18px,4vw,34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #e7efe8;
}
.expert-validation h3 { margin-bottom: 9px; font-size: clamp(23px,3vw,32px); }
.expert-validation p { margin: 0; color: var(--muted); }
.expert-validation .ambient-willo { width: 100%; }
@media (max-width:780px) {
  .nav .header-contact { order: 1; }
  .nav .language-switch { order: 2; }
  .nav .mobile-toggle { order: 3; }
}
@media (max-width:380px) {
  .nav .shell { gap: 6px; }
  .nav .brand-img { width: 94px; }
  .nav .mobile-toggle { padding-inline: 8px; }
  .nav .language-switch a { min-width: 29px; }
}
@media (max-width:540px) {
  .expert-validation { display: flow-root; }
  .expert-validation .ambient-willo {
    float: left;
    width: clamp(64px,22vw,96px);
    margin: 0 13px 5px 0;
  }
}
