:root {
    --ink: #161616;
    --muted: #666664;
    --line: #d8d8d4;
    --soft: #F8F9FC;
    --white: #ffffff;
    --red: #ff6f6c;
    --green: #57c9a1;
    --blue: #5f7cf3;
    --yellow: #ffcd60;
    --max: 1220px;
}

* { box-sizing: border-box; }
html { font-family: "Figtree", Arial, sans-serif; background: var(--white); color: var(--ink); }
body { margin: 0; font-size: 17px; line-height: 1.5; }
a { color: inherit; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hesav-logo-link { display: flex; align-items: center; text-decoration: none; }
.hesav-logo { display: block; width: 116px; height: auto; }
.manage-link { text-decoration: none; font-size: 16px; border-bottom: 1px solid currentColor; }
.manage-link:hover { border-color: transparent; }

.hero { padding: 76px 0 68px; max-width: 820px; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(46px, 7vw, 78px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.intro { max-width: 680px; margin-bottom: 0; font-size: 21px; color: var(--muted); }

.tools-section { padding: 0 0 82px; }
.tools-section--beta { border-top: 1px solid var(--line); padding-top: 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h2 { margin-bottom: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.count { color: var(--muted); font-size: 15px; }
.beta-badge { padding: 5px 8px; border: 1px solid var(--yellow); font-size: 13px; font-weight: 700; letter-spacing: .08em; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool-card { min-height: 214px; display: flex; gap: 24px; padding: 28px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background .16s ease; }
.tool-card:hover, .tool-card:focus-visible { background: var(--soft); outline: none; }
.tool-card__abbr { width: 58px; min-width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--ink);background-color:var(--ink); font-weight: 700; font-size: 16px; letter-spacing: .04em;color: var(--white); }
.tool-card__body { min-width: 0; flex: 1; }
.tool-card__title-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.tool-card h3 { margin: 1px 0 13px; font-size: 21px; line-height: 1.2; font-weight: 600; }
.tool-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tool-card__arrow { font-size: 21px; line-height: 1; transform: translateY(1px); }
.tools-section--beta .tool-card__abbr { border-color: var(--yellow);background-color:var(--yellow);color: var(--link); }

@media (max-width: 920px) {
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .shell { width: min(calc(100% - 32px), var(--max)); }
    .header-inner { min-height: 72px; }
    .hesav-logo { width: 92px; }
    .hero { padding: 54px 0 48px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 0; padding: 24px; }
    .section-heading { align-items: flex-start; }
}

.tools-section--design {
    border-top: 1px solid var(--line);
    padding-top: 58px;
}
.design-badge {
    padding: 5px 8px;
    border: 1px solid var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}
.tools-section--design .tool-card__abbr { border-color: var(--blue);background-color:var(--blue);color: var(--link); }
