/* MediLog website styles */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/poppins-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #302e42;
  --ink-soft: #5a5870;
  --blue: #0063a0;
  --blue-deep: #074d78;
  --teal: #01c5a2;
  --teal-deep: #007f69;
  --mint: #eefaf7;
  --mint-line: #cdeee6;
  --paper: #ffffff;
  --line: #dfe6e8;
  --error: #b3261e;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--teal-deep); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand:hover { color: var(--teal-deep); }
.site-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.55rem 0.9rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover { background: var(--mint); color: var(--teal-deep); }
.site-nav a[aria-current="page"] { color: var(--teal-deep); background: var(--mint); }
.site-nav .nav-cta a { background: var(--teal-deep); color: #fff; padding-inline: 1.2rem; margin-left: 0.5rem; }
.site-nav .nav-cta a:hover { background: var(--blue-deep); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.95rem; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(48, 46, 66, 0.35); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.75rem var(--gutter) 1.25rem; }
  .site-nav a { padding: 0.8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .site-nav .nav-cta a { margin: 0.5rem 0 0; text-align: center; border-radius: 999px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--teal-deep); color: #fff; font: inherit; font-weight: 600; padding: 0.85rem 1.6rem; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-deep); color: #fff; }
.play-badge { display: inline-block; border-radius: 10px; }
.play-badge img { width: 190px; height: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--mint); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 2rem; padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-copy { padding-bottom: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--blue); }
.hero h1 span { display: block; color: var(--teal-deep); }
.hero .lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36ch; font-weight: 600; text-wrap: pretty; }
.hero .play-badge { margin-top: 2rem; }
.hero-art { position: relative; align-self: end; min-height: 26rem; display: flex; justify-content: center; align-items: flex-end; }
.hero-art::before { content: ""; position: absolute; width: min(38rem, 120%); aspect-ratio: 1; border-radius: 50%; background: var(--teal); left: 50%; bottom: -42%; transform: translateX(-46%); }
.hero-art::after { content: ""; position: absolute; width: 9rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--teal); right: 2%; top: 4%; opacity: 0.55; }
.hero-art img { position: relative; z-index: 1; width: min(15.5rem, 52%); filter: drop-shadow(0 30px 34px rgba(7, 77, 120, 0.28)); }
.hero-art .phone-back { margin-right: -3.2rem; margin-bottom: 2.2rem; transform: rotate(-6deg); z-index: 0; width: min(13.5rem, 45%); }
.hero-art .phone-front { margin-bottom: -2.5rem; transform: rotate(3deg); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 2.5rem; }
  .hero-art { min-height: 0; padding-top: 1rem; }
  .hero-art::before { bottom: -55%; width: 34rem; max-width: none; }
  .hero-art::after { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; }
.section-intro { margin-top: 1rem; font-size: 1.15rem; max-width: 46rem; }

.features { background: var(--ink); color: #fff; }
.feature-grid { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid li { padding: 0.25rem 1.75rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.feature-grid li:first-child { padding-left: 0; border-left: 0; }
.feature-grid .icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--teal); color: var(--ink); display: grid; place-items: center; margin-bottom: 1.25rem; }
.feature-grid .icon svg { width: 1.75rem; height: 1.75rem; }
.feature-grid h3 { font-size: 1.2rem; font-weight: 600; }
.feature-grid p { margin-top: 0.5rem; color: #d6d5e2; font-size: 1rem; }
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .feature-grid li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; row-gap: 0; }
  .feature-grid li { display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1.1rem; padding: 1.25rem 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .feature-grid li:first-child { border-top: 0; padding-top: 0; }
  .feature-grid .icon { grid-row: span 2; margin-bottom: 0; }
  .feature-grid p { margin-top: 0.25rem; }
}

.why-how .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); }
.why-how h2 { color: var(--blue); }
.why-list, .steps { list-style: none; margin: 2rem 0 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.1rem; align-items: start; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.why-list li:first-child { border-top: 0; padding-top: 0; }
.why-list svg { width: 2.75rem; height: 2.75rem; padding: 0.6rem; border-radius: 12px; background: var(--mint); color: var(--teal-deep); }
.why-list strong { color: var(--blue-deep); font-weight: 600; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.75rem 4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.2rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--teal-deep); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0.2rem; width: 2px; background: var(--mint-line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-weight: 600; color: var(--blue-deep); }
@media (max-width: 760px) { .why-how .wrap { grid-template-columns: 1fr; } }

.multi { background: linear-gradient(115deg, #06595f 0%, #0b8275 60%, #2aa598 100%); color: #fff; overflow: hidden; padding-block: 0; }
.multi .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 2rem; }
.multi-copy { padding-block: clamp(3.5rem, 8vw, 6rem); }
.multi h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.05; }
.multi h2 span { display: block; color: #b9f5e9; }
.multi p { margin-top: 1.4rem; font-size: 1.2rem; max-width: 34rem; }
.multi-art { align-self: end; display: flex; justify-content: center; }
.multi-art img { width: min(17rem, 80%); margin-bottom: -6rem; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.3)); }
@media (max-width: 760px) {
  .multi .wrap { grid-template-columns: 1fr; gap: 0; }
  .multi-copy { padding-bottom: 2.5rem; }
  .multi-art img { margin-bottom: -9rem; }
}

.download { background: var(--mint); text-align: center; }
.download h2 { color: var(--blue); }
.download p { margin: 1rem auto 0; max-width: 36rem; font-size: 1.15rem; }
.download .play-badge { margin-top: 2rem; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--mint); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.025em; color: var(--blue); }
.page-head p { margin-top: 1rem; font-size: 1.15rem; max-width: 44rem; }
.page-head .meta { color: var(--ink-soft); font-size: 1rem; }
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.narrow > * { max-width: 46rem; }

.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.7rem; color: var(--blue); margin-top: 2.75rem; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.3rem; font-weight: 600; color: var(--blue-deep); margin-top: 2.25rem; }
.prose h4 { font-size: 1.08rem; font-weight: 600; margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin-bottom: 0; padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--teal-deep); }
.prose .signoff { margin-top: 2.5rem; font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font-weight: 600; font-size: 1.2rem; color: var(--blue-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007f69' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1rem no-repeat; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007f69' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.faq .answer { padding: 0 3.4rem 1.5rem 0; }
.faq .answer > * + * { margin-top: 0.8rem; }
.faq .answer ul { margin: 0.8rem 0 0; padding-left: 1.3rem; }
.faq .answer li::marker { color: var(--teal-deep); }
.after-list { margin-top: 2.5rem; }

/* Contact */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field label span { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c4c8; border-radius: 10px; padding: 0.8rem 0.95rem; width: 100%; }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(1, 197, 162, 0.45); outline-offset: 0; border-color: var(--teal-deep); }
.field .btn { align-self: flex-start; min-width: 9rem; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 10px; background: #fdecea; color: var(--error); font-weight: 600; }
.form-note[hidden] { display: none; }
.contact-closing { margin-top: 2.5rem; font-weight: 600; color: var(--blue-deep); }
@media (max-width: 620px) { .contact-form { grid-template-columns: 1fr; } }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.post-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; }
.post-card h2 a { color: var(--blue); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card .meta { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.6rem; }
.post-card .excerpt { margin-top: 0.9rem; }
.post-card .more { display: inline-block; margin-top: 1rem; font-weight: 600; }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }

.promo { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(115deg, #06595f 0%, #0b8275 55%, #55b3ad 100%); color: #fff; padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; }
.promo-brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.5rem; }
.promo-brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.promo-tag { margin-top: 1.5rem; font-style: italic; font-size: 1.15rem; }
.promo-big { margin-top: 0.75rem; font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em; }
.promo-big span { display: block; }
.promo-price { margin-top: 1.25rem; font-size: 1.15rem; }
.promo-phone { width: 11rem; margin-bottom: clamp(-7rem, -12vw, -5rem); filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.3)); transform: rotate(4deg); }
.promo.is-small { padding: 1.5rem; grid-template-columns: 1fr; }
.promo.is-small .promo-brand { font-size: 1.15rem; }
.promo.is-small .promo-brand img { width: 36px; height: 36px; }
.promo.is-small .promo-big { font-size: 1.7rem; margin-top: 1rem; }
.promo.is-small .promo-price { font-size: 1rem; margin-top: 0.9rem; }
@media (max-width: 560px) {
  .promo { grid-template-columns: 1fr; }
  .promo-phone { width: 9.5rem; justify-self: end; margin-top: -1rem; }
}
.post-body { margin-top: 2.5rem; }
.post-body .questions { border-left: 4px solid var(--teal); padding: 0.35rem 0 0.35rem 1.25rem; font-weight: 600; color: var(--blue-deep); font-size: 1.15rem; }
.post-body .questions p + p { margin-top: 0.35rem; }
.post-cta { margin-top: 2.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--mint); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.post-cta p { font-weight: 600; margin: 0; }
.post-cta .play-badge img { width: 165px; }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

.notice { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--mint); border-left: 4px solid var(--teal); }
.notice p + p { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6d5e2; padding-block: 3rem 2.25rem; font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.site-footer .brand { color: #fff; margin: 0; }
.site-footer .brand:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.6rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; }
.social a:hover { background: var(--teal); color: var(--ink); }
.social svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

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