/* ===========================
   Self-hosted fonts: OSMellySans
   =========================== */
@font-face {
  font-family: "OSMellySans";
  src: url("./fonts/OSMellySansv088-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* Used for the logo text mark */
  font-family: "OSMellySansIrregular";
  src: url("./fonts/OSMellySansv088-Irregular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   Base
   =========================== */
:root{
  --bg: #ffffff;
  --fg: #111111;
  --muted: #4a4a4a;
  --line: rgba(0,0,0,.14);
  --max: 860px;

  /* Logo blue (tweak if you want it exact) */
  --melly-blue: #1f4dff;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: "OSMellySans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
}

a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover{ opacity: .75; }

/* ===========================
   Header
   =========================== */
.header{
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: #fff;
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

/* Main-site style “text logo” */
.logo{
  font-family: "OSMellySansIrregular", "OSMellySans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--melly-blue);
  text-decoration: none; /* logo should not be underlined */
  display:inline-flex;
  align-items:center;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 18px;
}

.logo:hover{
  opacity: .85;
}

.toplink{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   Main layout
   =========================== */
.main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 48px;
}

.friends-checkout h1{
  font-size: 42px;
  line-height: 1.05;
  margin: 8px 0 18px;
  letter-spacing: -0.5px;
}

.lead{
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 70ch;
}

/* Card */
.card{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px){
  .grid.two{ grid-template-columns: 1fr 1fr; }
}

/* ===========================
   Forms
   =========================== */
.label{
  display:block;
  font-weight: 600;
}

.friends-checkout .input{
  width:100%;
  margin-top: 6px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--fg);
}

.help{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.checkbox{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 12px;
}

.checkbox-box{
  width:auto;
  margin-top: 4px;
}

/* Button */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  cursor:pointer;
  font-weight: 600;
  margin-top: 14px;
}

.button:hover{ opacity: .85; }

.error{
  color: #b00020;
  margin-top: 10px;
}

.status{
  margin: 0 0 10px;
}

.small{
  color: var(--muted);
  font-size: 14px;
}

.terms{
  margin: 10px 0 0;
}

/* ===========================
   Footer: ONLY centered logo
   =========================== */
.footer{
  padding: 0px 20px;
  background: #fff;
  display:flex;
  justify-content:center;
}

.footer-only-logo .footer-logo{
  font-size: 5px;       /* bigger */
  color: var(--melly-blue);
  text-decoration: none;
}

/* Mobile: even slightly bigger and centered */
@media (max-width: 720px){
  .footer-only-logo .footer-logo{
    font-size: 30px;
  }
}
