/* sardiniabyowner.com — page layout on top of bnf-kit.css */

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; max-width: var(--page-max); margin: 0 auto; }
.sbo-logo {
  display: inline-flex; align-items: center; gap: .0625rem;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.035em; white-space: nowrap;
  text-decoration: none; color: var(--ink); transition: color .15s ease;
}
/* "by" as a badge, the same shape as the "no" in the BookNoFees word mark */
.sbo-logo__by {
  display: inline-grid; place-items: center; border-radius: 50%;
  font-size: .6em; width: 1.62em; height: 1.62em;
  background: var(--coral); color: #fff;
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
  margin-inline: .08em;
}
.sbo-logo:hover { color: var(--coral); }
.sbo-logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.top nav { display: flex; gap: 1.5rem; font-weight: 600; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 48rem) { .top nav { display: none; } }

/* hero */
.hero { display: grid; gap: 2rem; padding: 1.5rem 1.25rem 4rem; max-width: var(--page-max); margin: 0 auto; align-items: center; }
.badge {
  display: inline-block; background: var(--coral-wash); color: var(--coral);
  font-weight: 800; font-size: .95rem; padding: .35rem .8rem; border-radius: var(--r-pill);
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
.hero__lede { font-size: 1.25rem; color: var(--ink-2); max-width: 32rem; margin: 1.25rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__photo { position: relative; margin: 0; min-width: 0; }
.hero picture, .island picture { display: block; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--sh-box); }
.hero__photo figcaption { font-size: .75rem; color: var(--ink-3); margin-top: .6rem; }
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1fr 1.1fr; padding-top: 3rem; }
  .hero__photo img { aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__text { animation: lift .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__photo { animation: lift .8s .15s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes lift { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* key figures band */
.figures { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.figures ul { list-style: none; margin: 0 auto; padding: 2rem 1.25rem; max-width: var(--page-max); display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .figures ul { grid-template-columns: repeat(3, 1fr); } }
.figures strong { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures span { color: var(--ink-2); }

/* sections */
.section { padding: 4.5rem 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.section__lede { color: var(--ink-2); font-size: 1.15rem; max-width: 40rem; margin-bottom: 2.25rem; }

/* the island: four portrait photos with the card shadow */
.island { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 60rem) { .island { grid-template-columns: repeat(4, 1fr); } }
.island figure { margin: 0; }
.island img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--sh-box); }
.island figcaption { margin-top: .75rem; }
.island figcaption strong { display: block; font-weight: 700; }
.island figcaption span { color: var(--ink-3); font-size: .9rem; }

/* the switchable calculator */
.fx { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 60rem) { .fx { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.fx > * { min-width: 0; }
.fx__tabs, .fx__sub { display: flex; flex-wrap: wrap; gap: .75rem; }
.fx__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.fx__inputs label, .fx__label { display: block; font-weight: 600; font-size: .95rem; }
.fx__inputs input {
  display: block; width: 100%; margin-top: .35rem; font: inherit; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.fx__inputs input:focus, .fx input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.fx__detail { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 1.25rem; }
.fx__detail[hidden] { display: none; }
.fx__label { margin: 0 0 .75rem; }
.fx__label output { color: var(--coral); font-variant-numeric: tabular-nums; }
.fx input[type=range] { width: 100%; accent-color: var(--coral); margin: .25rem 0 .75rem; }
.fx__hint { color: var(--ink-3); font-size: .9rem; margin: .75rem 0 0; }
.fx__detail[data-for="bnf"] .fx__hint { margin: 0; }

.fx__result { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-box); padding: clamp(1.25rem, 3vw, 2rem); }
.fx__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: .75rem; }
.fx__brand[hidden] { display: none; }
.fx__brand b { color: var(--coral); }
.fx__name { color: var(--ink-3); font-weight: 600; margin: 0; }
.fx__keep { margin: .25rem 0 1rem; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.fx__keep span { font-size: 1.1rem; color: var(--ink-2); }
.fx__keep strong { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--teal); }
.fx__bar { display: flex; height: 14px; border-radius: var(--r-pill); overflow: hidden; background: var(--line-soft); margin-bottom: 1.25rem; }
.fx__bar span { display: block; height: 100%; transition: width .35s cubic-bezier(.2,.7,.2,1); }
#fxbarkeep { background: var(--teal); }
#fxbarfee { background: #B0B0B0; }
@media (prefers-reduced-motion: reduce) { .fx__bar span { transition: none; } }
.fx__lines { margin: 0 0 1.25rem; }
.fx__lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line-soft); }
.fx__lines dt { color: var(--ink-2); }
.fx__lines dd { margin: 0; font-weight: 700; text-align: right; }
.fx__cta { width: 100%; }

.fx__compare { margin-top: 2rem; background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 1rem 1.5rem 1.25rem; }
.fx__row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.fx__row b { font-size: 1.15rem; }
.fx__row--us b { color: var(--teal); }
.fx__gain { margin: 1rem 0 0; font-size: 1.15rem; }
.fx__gain strong { color: var(--teal); }
.fx__sources { font-size: .8rem; color: var(--ink-3); margin-top: 1.25rem; max-width: 60rem; }
.fx__sources a { color: var(--ink-3); }
@media (max-width: 30rem) { .fx__inputs { grid-template-columns: 1fr; } }

/* steps: a real sequence, so numbers carry meaning */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 1.5rem; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--coral-wash); color: var(--coral);
  font-weight: 800; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* sign-up */
.signup { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; }
.signup h2 { color: #fff; }
.signup p { color: #d8d8d8; max-width: 38rem; margin: 0; }
.signup__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.signup__small { font-size: .9rem; color: #bdbdbd; }
.signup__small a { color: #fff; }

/* not promised */
.honest { background: var(--coral-wash); border-radius: var(--r-card); padding: 1.5rem; margin-top: 2rem; }
.honest h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }
.honest ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }

/* faq */
.faq > * { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }

/* questions + founder */
.qa { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .qa { grid-template-columns: minmax(0, 48rem) 20rem; justify-content: space-between; } }
.founder { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-box); padding: 1.5rem; text-align: center; max-width: 22rem; justify-self: center; }
@media (min-width: 60rem) { .founder { position: sticky; top: 1.5rem; margin-top: 3.5rem; } }
.founder__circle {
  /* the same circle as on booknofees.com/history (globals.css .story__circle) */
  display: block; width: clamp(9rem, 34vw, 12rem); aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden; margin: 0 auto 1rem;
  background: var(--surface); box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.founder__circle img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  transform: scale(1.178) translateX(3.7%);
}
.founder__name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.founder__role { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 600; margin: .25rem 0 1rem; }
.founder__quote { margin: 0 0 .75rem; }
.founder__quote p { font-size: 1.02rem; color: var(--ink); margin: 0; }
.founder__note { font-size: .88rem; color: var(--ink-3); }
.founder__mail { font-size: .9rem; font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: .9rem; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.foot nav a { color: var(--ink-2); }
.foot p { max-width: 52rem; margin-bottom: .5rem; }

/* legal pages */
.legal { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }
.legal h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer — values from the BookNoFees app (globals.css .fz, .logo, .wm) */
.fz { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; }
.fz__inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem 2.5rem; display: grid; gap: 2rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fz__column { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.fz__column h3 { font-size: .875rem; font-weight: 700; margin: 0 0 .25rem; letter-spacing: -.01em; }
.fz__column p { margin: 0; font-size: .875rem; color: var(--ink-3); line-height: 1.5; }
.fz__column a { font-size: .875rem; color: var(--ink-3); text-decoration: none; }
.fz__column a:hover { color: var(--ink); text-decoration: underline; }
.fz__column--brand { grid-column: 1 / -1; }
.fz__small { margin-top: .25rem !important; font-size: .8125rem !important; color: var(--ink-3); }
.fz__brand { display: inline-flex; margin-bottom: .875rem; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--coral); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.wm { font-weight: 800; font-size: 1.25rem; letter-spacing: -.035em; white-space: nowrap; display: inline-flex; align-items: center; gap: .0625rem; color: var(--ink); }
.wm__no { display: inline-grid; place-items: center; border-radius: 50%; font-size: .6em; width: 1.62em; height: 1.62em; background: var(--coral); color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-inline: .05em; }
@media (max-width: 48rem) {
  .fz { margin-top: 2rem; }
  .fz__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; padding: 1.75rem 1.25rem 1.5rem; }
  .fz__column a, .fz__column h3 { font-size: .8125rem; }
}
.fx__lines .fx__total dt, .fx__lines .fx__total dd { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.fx__lines .fx__total dd { color: var(--teal); }
.fx__season { margin-top: -.5rem; padding-top: .25rem; border-top: 2px solid var(--line); }

/* What we want to achieve */
.aim { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .aim { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.aim__text p { color: var(--ink-2); font-size: 1.1rem; max-width: 34rem; margin-top: 1rem; }
.aim__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.aim__cards li { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 1.5rem; }
.aim__cards h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .4rem; }
.aim__cards h3::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); margin-right: .55rem; vertical-align: .18em; }
.aim__cards p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* guest pages: regions as text cards */
.regions { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .regions { grid-template-columns: 1fr 1fr; } }
.region { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 1.5rem; }
.region h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.region p { color: var(--ink-2); margin: 0; }
#barnet { background: var(--teal); }
#barfee { background: #B0B0B0; }
.fx__inputs { align-items: end; }
