/* Homepage layout. Strings are in home-copy.js. */
.home-intro { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, .8fr); align-items: end; gap: 60px; padding: 52px 0 42px; }
.home-intro h1 { max-width: 790px; }
.home-intro > p { font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 285px; margin: 0 0 8px auto; }
.home-bento { grid-template-rows: 440px 360px; }
.home-bento .category-card { padding: 32px; }
.home-bento .weight-loss { grid-column: span 7; }
.home-bento .recovery { grid-column: span 5; }
.home-bento .skin-ageing, .home-bento .cognitive, .home-bento .complete-card { grid-column: span 4; }
.home-bento .category-content { max-width: 100%; }
.home-bento .category-card h2 { margin: 12px 0 25px; font-size: clamp(32px, 3.1vw, 44px); max-width: 95%; }
.home-bento .category-card:after { background: linear-gradient(0deg, #0d201ad9, #0d201a08 76%); }
.home-bento .category-card img { object-position: center 42%; }
.home-bento .skin-ageing img { object-position: 58% center; }
.home-bento .cognitive img { object-position: 50% center; }
.home-card-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; font-size: 11px; color: #ffffffeb; }
.home-card-action .round-arrow { position: static; flex-shrink: 0; }
.home-bento .complete-card { background: var(--green); padding: 30px; isolation: isolate; }
.home-bento .complete-card:after { display: none; }
.home-bento .complete-card h2 { font-size: 36px; margin-bottom: 14px; }
.home-bento .complete-card p { color: #e0e7d7; font-size: 12px; line-height: 1.8; margin: 0; max-width: 290px; }
.home-bento .compound-index { margin-top: 20px; max-width: 100%; gap: 7px; }
.home-bento .compound-index span { font-size: 9px; padding: 5px 9px; }
.home-bento .complete-card .home-card-action { margin-top: auto; padding-top: 18px; }
.home-range-mark { position: absolute; font: 300px/1 Georgia, 'Times New Roman', serif; color: #ffffff07; right: -18px; bottom: 18px; z-index: -1; pointer-events: none; }
.home-section { margin-top: 76px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.home-section-heading h2 { font: normal clamp(30px, 3.2vw, 44px)/1.16 Georgia, 'Times New Roman', serif; letter-spacing: -.9px; margin: 14px 0 0; max-width: 620px; }
.home-tools-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.home-tool-card { min-width: 0; min-height: 430px; position: relative; border-radius: 24px; padding: 36px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.home-calculator { background: var(--green); color: var(--paper); }
.home-comparison { background: #e9e5db; color: var(--ink); }
.home-tool-copy { position: relative; margin-top: auto; }
.home-tool-copy h3 { font: normal 35px/1.14 Georgia, 'Times New Roman', serif; letter-spacing: -.7px; margin: 0 0 16px; }
.home-tool-copy p { max-width: 310px; font-size: 13px; line-height: 1.85; margin: 0 0 25px; }
.home-calculator .home-tool-copy { max-width: 53%; margin-top: auto; padding-top: 110px; }
.home-calculator .home-tool-copy p { color: #e0e7d7; }
.home-comparison .home-tool-copy p { max-width: 370px; color: var(--muted); }
.home-tool-card .home-card-action { color: inherit; border-top: 1px solid #ffffff29; padding-top: 20px; margin-top: auto; }
.home-comparison .home-card-action { border-color: #18342f20; }
.home-calculator-art { position: absolute; right: -10px; top: 42px; width: 240px; border-radius: 22px; padding: 20px; transform: rotate(7deg); background: #f4f5ed; color: var(--ink); box-shadow: 0 12px 26px #102d2720; }
.home-measurement { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.home-measurement > span { font-size: 10px; color: var(--muted); }
.home-measurement strong { font: normal 20px/1 Georgia, 'Times New Roman', serif; }
.home-concentration { position: relative; margin-top: 15px; height: 155px; }
.home-concentration svg { display: block; width: 155px; height: 155px; margin: auto; stroke: #d8dfcb; stroke-width: 6; }
.home-concentration svg .home-dial-arc { stroke: var(--green); stroke-dasharray: 285 430; transform: rotate(-90deg); transform-origin: center; }
.home-concentration > div { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
.home-concentration strong { font: normal 30px/1 Georgia, 'Times New Roman', serif; letter-spacing: -.6px; }
.home-concentration > div > span { font-size: 9px; color: var(--muted); }
.home-comparison-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: -12px 15px 30px; }
.home-comparison-column { padding: 15px 18px; border-radius: 14px; background: #ffffff99; border: 1px solid #ffffffbf; }
.home-comparison-column > span { font-size: 10px; }
.home-comparison-column svg { display: block; width: 100%; height: 82px; margin: 10px 0; stroke: #778d74; stroke-width: 1.5; }
.home-comparison-column:nth-child(2) svg { stroke: #988265; transform: scaleX(-1); }
.home-comparison-column svg circle { fill: #f8f8f1; stroke-width: 2; }
.home-comparison-column > div { font-size: 8px; color: var(--muted); margin: 9px 0 0; }
.home-comparison-column i { display: block; width: 70%; height: 3px; background: #d7ddce; border-radius: 5px; margin-top: 5px; }
.home-comparison-column:nth-child(2) i { width: 88%; background: #d9d2c4; }
@media (hover: hover) and (pointer: fine) {
  .home-tool-card:hover .round-arrow { background: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-card-action .round-arrow { transition: transform 160ms var(--ease-out), background-color 160ms ease; }
  .home-tool-card:hover .round-arrow { transform: translate(2px, -2px); }
  .home-tool-card:active .round-arrow { transform: scale(.97); }
  .home-tool-card:focus-visible:active .round-arrow { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .home-bento .category-card:hover .round-arrow { transform: none; transition: none; } }
@media (max-width: 1100px) {
  .home-intro { gap: 35px; }
  .home-bento { grid-template-rows: 410px 355px; }
  .home-bento .category-card { padding: 25px; }
  .home-bento .complete-card h2 { font-size: 32px; }
  .home-bento .compound-index { gap: 5px; }
  .home-bento .compound-index span { font-size: 8px; padding: 4px 7px; }
  .home-tool-card { padding: 28px; }
  .home-calculator-art { width: 190px; right: -12px; }
  .home-calculator .home-tool-copy { max-width: 48%; }
  .home-tool-copy h3 { font-size: 32px; }
  .home-comparison-art { margin-left: 0; margin-right: 0; }
  .home-comparison-column { padding: 13px; }
}
@media (max-width: 850px) {
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  .home-intro > p { max-width: 390px; margin: 0; }
  .home-bento { grid-template-rows: 350px 300px 220px; }
  .home-bento .weight-loss, .home-bento .recovery, .home-bento .skin-ageing, .home-bento .cognitive { grid-column: span 6; }
  .home-bento .complete-card { grid-column: 1 / -1; }
  .home-bento .complete-card p { max-width: 500px; }
  .home-bento .complete-card h2 { margin-bottom: 10px; }
  .home-bento .compound-index { margin-top: 16px; max-width: 75%; }
  .home-bento .compound-index span { font-size: 10px; padding: 5px 10px; }
  .home-bento .complete-card .home-card-action { position: absolute; right: 25px; bottom: 25px; padding-top: 0; }
  .home-bento .complete-card .home-card-action { font-size: 0; }
  .home-tools-grid { grid-template-columns: minmax(0, 1fr); }
  .home-tool-card { min-height: 370px; }
  .home-calculator-art { width: 250px; right: 28px; top: 24px; transform: rotate(5deg); }
  .home-calculator { min-height: 430px; }
  .home-calculator .home-tool-copy { max-width: 48%; padding-top: 90px; }
  .home-comparison { min-height: 450px; }
  .home-comparison-art { max-width: 380px; width: 100%; margin: 0 auto 30px; }
}
@media (max-width: 650px) {
  .home-intro { padding: 36px 0 28px; gap: 20px; }
  .home-intro h1 { font-size: 48px; }
  .home-intro > p { font-size: 13px; max-width: 285px; }
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 370px 285px 335px 245px; gap: 12px; }
  .home-bento .weight-loss { grid-column: 1 / -1; }
  .home-bento .recovery, .home-bento .skin-ageing { grid-column: span 1; }
  .home-bento .cognitive, .home-bento .complete-card { grid-column: 1 / -1; }
  .home-bento .category-card { padding: 22px; }
  .home-bento .category-card h2 { font-size: 32px; max-width: 100%; margin-bottom: 18px; }
  .home-bento .recovery h2, .home-bento .skin-ageing h2 { font-size: clamp(25px, 6.6vw, 30px); }
  .home-bento .recovery .category-content .eyebrow, .home-bento .skin-ageing .category-content .eyebrow { font-size: 8px; }
  .home-bento .recovery .home-card-action, .home-bento .skin-ageing .home-card-action { font-size: 0; min-height: 30px; }
  .home-bento .recovery .round-arrow, .home-bento .skin-ageing .round-arrow { width: 30px; height: 30px; font-size: 18px; }
  .home-bento .recovery img { object-position: 65% center; }
  .home-bento .skin-ageing img { object-position: 62% center; }
  .home-bento .cognitive img { object-position: center 40%; }
  .home-bento .complete-card p { max-width: 270px; }
  .home-bento .compound-index { max-width: 80%; gap: 6px; margin-top: 18px; }
  .home-bento .compound-index span { font-size: 9px; padding: 5px 9px; }
  .home-bento .complete-card .home-card-action { right: 22px; bottom: 22px; }
  .home-section { margin-top: 50px; }
  .home-section-heading { display: block; margin-bottom: 24px; }
  .home-section-heading h2 { font-size: 34px; max-width: 360px; }
  .home-tool-card { padding: 26px; border-radius: 22px; min-height: 560px; }
  .home-calculator-art { top: 30px; right: 30px; width: 230px; transform: rotate(5deg); }
  .home-calculator .home-tool-copy { max-width: 100%; padding-top: 330px; }
  .home-tool-copy h3 { font-size: 34px; }
  .home-tool-copy p { font-size: 12px; margin-bottom: 22px; max-width: 310px; }
  .home-tool-card .home-card-action { margin-top: auto; }
  .home-comparison { min-height: 470px; }
  .home-comparison-art { gap: 10px; margin-bottom: 32px; }
  .home-comparison-column { padding: 13px; }
  .home-comparison-column svg { height: 74px; }
}
@media (max-width: 360px) {
  .home-intro h1 { font-size: 42px; }
  .home-bento .category-card { padding: 18px; }
  .home-bento .category-card h2 { font-size: 29px; }
  .home-bento .recovery h2, .home-bento .skin-ageing h2 { font-size: 24px; }
  .home-bento .complete-card p { font-size: 11px; }
  .home-bento .compound-index { max-width: 84%; }
  .home-bento .compound-index span { font-size: 8px; }
  .home-calculator-art { right: 23px; width: 215px; }
  .home-tool-card { padding: 23px; }
  .home-tool-copy h3 { font-size: 31px; }
  .home-section-heading h2 { font-size: 31px; }
  .home-comparison-column { padding: 10px; }
  .home-comparison-column > span { font-size: 9px; }
}
