/* Perio4Life components. Values come from tokens.css; this file only composes them. */

.p4l-root, .p4l-root * { box-sizing: border-box; }
.p4l-root { background: var(--surface); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

/* Display type: Noto Serif Display is set condensed through its wdth axis. */
.p4l-display { font-family: var(--font-display); font-variation-settings: "wdth" 75; font-kerning: normal; font-variant-numeric: lining-nums; margin: 0; color: var(--text); }
.p4l-display em, .p4l-display i { font-style: italic; font-weight: 400; }
.p4l-display--xl { font-size: 96px; line-height: 88px; font-weight: 450; letter-spacing: -0.035em; }
.p4l-display--l { font-size: 68px; line-height: 66px; font-weight: 450; letter-spacing: -0.03em; font-variation-settings: "wdth" 72; }
.p4l-display--m { font-size: 46px; line-height: 50px; font-weight: 450; letter-spacing: -0.02em; }
.p4l-display--title { font-size: 30px; line-height: 36px; font-weight: 450; letter-spacing: -0.01em; font-variation-settings: "wdth" 85; }
@media (max-width: 720px) {
  .p4l-display--xl { font-size: 60px; line-height: 56px; }
  .p4l-display--l { font-size: 46px; line-height: 46px; }
  .p4l-display--m { font-size: 34px; line-height: 38px; }
}
.p4l-display--accent-color em, .p4l-display--accent-color i { color: var(--accent-text); }

.p4l-standfirst { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 34px; font-weight: 400; color: var(--text-body); margin: 0; max-width: var(--measure); }

/* Label: sentence case, sage text, a short accent rule. */
.p4l-label { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-text); margin: 0; }
.p4l-label__rule { width: 48px; height: 1.5px; background: var(--accent); flex: none; }

/* Buttons */
.p4l-btn { display: inline-flex; align-items: center; gap: 12px; height: var(--button-height); padding: 0 28px; border-radius: var(--radius-pill); border: 0; font-family: var(--font-body); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.p4l-btn svg { flex: none; }
.p4l-btn--pill { background: var(--accent-fill); color: var(--on-accent-fill); }
.p4l-btn--pill:hover { background: var(--sage-deep); }
.p4l-btn--solid { background: var(--inverse); color: var(--on-inverse); }
.p4l-btn--solid:hover { background: var(--graphite); color: var(--porcelain); }
[data-tone="dark"] .p4l-btn--solid:hover { background: var(--stone); color: var(--ink); }
.p4l-btn--link { height: auto; padding: 4px 0; border-radius: 0; background: none; color: var(--text); border-bottom: 1px solid var(--control-border); }
.p4l-btn--link:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
.p4l-btn:focus-visible { outline: 2px solid var(--inverse); outline-offset: 3px; }

/* The Gumline */
.p4l-gumline { display: block; width: 100%; height: var(--gumline-weight); background: var(--gumline); border: 0; margin: 0; }

/* Rule list */
.p4l-rules { list-style: none; margin: 0; padding: 0; border-top: var(--hairline) solid var(--line); }
.p4l-rules__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--line); }
.p4l-rules__title { font-family: var(--font-body); font-size: 18px; line-height: 26px; font-weight: 500; color: var(--text); }
.p4l-rules__meta { font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--text-muted); text-align: right; }
.p4l-rules__num { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1; color: var(--text-muted); }

/* Office card */
.p4l-office { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface-raised); border-radius: var(--radius-card); min-width: 0; }
.p4l-office__address { font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--text-muted); margin: 0; font-style: normal; }
.p4l-office__phone { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: var(--text); text-decoration: none; font-variant-numeric: lining-nums; margin-top: var(--space-1); }
.p4l-office__phone:hover { color: var(--accent-text); }
.p4l-office__foot { margin-top: auto; padding-top: var(--space-3); }
.p4l-office__brand { margin: 0; font-family: var(--font-body); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--accent-text); }
.p4l-office__contact { margin: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--text-muted); }
.p4l-office__contact a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.p4l-office__contact a:hover { color: var(--accent-text); }

/* Offer price */
.p4l-offer { display: flex; flex-direction: column; gap: var(--space-1); }
.p4l-offer__price { font-family: var(--font-display); font-variation-settings: "wdth" 80; font-size: 160px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: lining-nums; color: var(--text); margin: 0; }
.p4l-offer__meta { display: flex; gap: var(--space-3); font-family: var(--font-body); font-size: 16px; line-height: 26px; color: var(--text-muted); }
.p4l-offer__save { color: var(--accent-text); font-weight: 600; }
.p4l-offer__note { font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--text-muted); margin: 0; max-width: var(--measure); }
@media (max-width: 720px) { .p4l-offer__price { font-size: 112px; } }

/* Series marker */
.p4l-series { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
.p4l-series__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.p4l-series__ep { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 18px; color: var(--text-muted); }

/* Logo */
.p4l-logo { display: block; width: auto; }

/* Photo grade: warm mono, shadows toward Ink, highlights toward Porcelain. A stand-in for the real grade on the files. */
.p4l-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-none); filter: grayscale(1) sepia(0.12) contrast(0.96) brightness(1.02); }
