/* ===========================================================================
   sqfty — public site
   ---------------------------------------------------------------------------
   Standalone stylesheet for the signed-out pages. The authenticated app keeps
   framework.css; nothing here leaks into it. Palette is carried over from the
   original Foundation variables so the brand stays recognisable:
     #2082ff primary · #0a4ea6 deep · #04a63b action · #222 ink
   =========================================================================== */

:root {
  --blue:        #2082ff;
  --blue-deep:   #0a4ea6;
  --blue-darker: #073a7d;
  --green:       #04a63b;
  --green-dark:  #037a2b;
  --green-light: #06c94b;
  --amber:       #ffa20b;

  --ink:         #16202c;
  --ink-soft:    #4a5768;
  --ink-faint:   #7b8794;
  --line:        #e3e8ef;
  --surface:     #ffffff;
  --surface-alt: #f5f8fc;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --r:    10px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16,32,56,.06), 0 1px 3px rgba(16,32,56,.08);
  --shadow-md: 0 4px 6px -1px rgba(16,32,56,.08), 0 10px 20px -6px rgba(16,32,56,.12);
  --shadow-lg: 0 20px 40px -12px rgba(16,32,56,.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  text-wrap: balance;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}
/* Fluid type: scales with viewport instead of snapping at breakpoints */
h1 { font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
a { color: var(--blue-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* The wordmark keeps its original face */
.sqfty { font-family: "Bitstream Charter", Georgia, serif; font-weight: 600; letter-spacing: .01em; }

/* --- header -------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.site-head .brand { display: flex; align-items: center; flex-shrink: 0; }
.site-head .brand { text-decoration: none; }
/* The wordmark is part of the logo artwork and uses a typeface we don't have
   as a webfont, so it is not recreated in HTML. logo64 is 193x63 and displays
   at ~31px tall, giving 2x density. A vector original would be better still. */
.site-head .brand img { height: 31px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.navlink {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav a.navlink:hover { background: var(--surface-alt); color: var(--ink); }
.nav a.navlink.is-active { color: var(--blue-deep); background: rgba(32,130,255,.09); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer;
  font-size: 1.3rem; color: var(--ink-soft); padding: 8px;
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-size: .97rem; font-weight: 600;
  padding: 12px 22px; border: 0; border-radius: var(--r);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-light); color: #fff; box-shadow: var(--shadow-md); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { background: var(--blue-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); border-color: #cfd8e3; }
.btn-on-dark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-on-dark:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 15px 30px; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  /* the 2048px rowhouses photo sits under a blue wash — enough texture to stop
     the gradient reading as flat, dark enough to keep text at full contrast */
  background:
    linear-gradient(160deg, rgba(10,78,166,.94) 0%, rgba(13,95,196,.92) 45%, rgba(32,130,255,.88) 100%),
    url("../img/rowhouses.jpg") center 38% / cover no-repeat;
  color: #fff;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
}
/* soft light bloom, keeps the flat gradient from looking dead */
.hero::after {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { text-wrap: pretty; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 34em; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 18px 0 0; font-size: .9rem; color: rgba(255,255,255,.72); }

.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero-card li { display: flex; gap: 11px; align-items: flex-start; color: rgba(255,255,255,.93); font-size: .96rem; line-height: 1.45; }

/* --- sections ------------------------------------------------------------ */
.section { padding: clamp(52px, 6.5vw, 88px) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin: 0 auto clamp(34px, 4vw, 52px); text-align: center; }
.section-head p { text-wrap: pretty; color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.eyebrow {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 .7em;
}

/* --- cards --------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4dce8; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.15rem; color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.card-icon.is-green { background: linear-gradient(140deg, #06c249 0%, var(--green) 100%); }
.card-icon.is-amber { background: linear-gradient(140deg, #ffb43d 0%, var(--amber) 100%); }

/* --- steps --------------------------------------------------------------- */
.steps { display: grid; gap: 20px; counter-reset: step; max-width: 780px; margin-inline: auto; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(32,130,255,.1); color: var(--blue-deep);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* --- checklist ----------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
/* standalone so it renders identically wherever it is used, not only inside
   .checklist -- scoping it caused mismatched ticks on the pricing list */
.tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; margin-top: 3px;
  background: rgba(4,166,59,.12); color: var(--green);
  display: grid; place-items: center; font-size: .7rem;
}
.hero-card .tick { background: rgba(255,255,255,.2); color: #fff; width: 20px; height: 20px; font-size: .68rem; margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* --- pricing ------------------------------------------------------------- */
.price-card {
  max-width: 460px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.price-head { background: linear-gradient(160deg, var(--blue-deep), var(--blue)); color: #fff; padding: 26px; text-align: center; }
.price-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.price-body { padding: 28px 26px; text-align: center; }
.price-figure { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price-figure small {
  display: block; font-size: .92rem; font-weight: 400;
  color: var(--ink-faint); margin-top: .55em; letter-spacing: 0;
  line-height: 1.5;   /* .price-figure sets line-height:1 for the big number;
                         without resetting it here the two lines overlapped */
}
.price-body input[type="number"], .price-body input[type="text"] {
  font-family: var(--font-head); font-size: 1rem; text-align: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  width: 110px; margin-inline: 8px;
}
.price-body input:focus { outline: 2px solid rgba(32,130,255,.35); outline-offset: 1px; border-color: var(--blue); }
.price-list { list-style: none; margin: 24px 0; padding: 0; text-align: left; display: grid; gap: 12px; }
.price-foot { padding: 0 26px 28px; text-align: center; }

/* --- call to action band ------------------------------------------------- */
.cta {
  background: linear-gradient(160deg, #0a4ea6, #2082ff);
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(34px, 4.5vw, 56px); text-align: center;
}
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { color: rgba(255,255,255,.9); max-width: 40em; margin: 0 auto 1.6em; }

/* --- footer -------------------------------------------------------------- */
.site-foot { background: #0e1826; color: rgba(255,255,255,.62); padding: 40px 0; margin-top: 0; font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-foot a { color: rgba(255,255,255,.85); }
.site-foot a:hover { color: #fff; }

/* --- alerts -------------------------------------------------------------- */
.notice { border-radius: var(--r); padding: 13px 16px; margin-bottom: 14px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.notice-info { background: rgba(32,130,255,.1); color: var(--blue-deep); }
.notice-success { background: rgba(4,166,59,.1); color: var(--green-dark); }
.notice-alert { background: rgba(166,10,39,.09); color: #a60a27; }
.notice .close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; font-size: 1.1rem; line-height: 1; }
.notice .close:hover { opacity: 1; }

/* --- sign-in dialog ------------------------------------------------------ */
dialog.signin {
  border: 0; border-radius: var(--r-lg); padding: 0;
  width: min(92vw, 400px); box-shadow: var(--shadow-lg);
}
dialog.signin::backdrop { background: rgba(14,24,38,.55); backdrop-filter: blur(2px); }
.signin-head { padding: 24px 26px 0; }
.signin-head h3 { margin: 0; }
.signin-body { padding: 20px 26px 26px; }
.signin-body label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; font-family: var(--font-head); }
.signin-body input[type="email"], .signin-body input[type="password"] {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; font-size: 1rem; font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: 8px;
}
.signin-body input:focus { outline: 2px solid rgba(32,130,255,.35); outline-offset: 1px; border-color: var(--blue); }
/* Remember-me sits at .9rem like the other labels, which reads small next to
   the inputs; bumped ~25% with a checkbox scaled to match. */
.signin-body .row-check {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 1.12rem; color: var(--ink);
}
.signin-body .row-check input[type="checkbox"] {
  width: 1.15em; height: 1.15em; margin: 0;
  accent-color: var(--blue); cursor: pointer; flex-shrink: 0;
}
.signin-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px; box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .site-head .wrap { position: relative; }
}
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .site-foot .wrap { flex-direction: column; text-align: center; }
}

@media print {
  .site-head, .site-foot, .hero-cta, .cta { display: none !important; }
  .hero { background: none; color: #000; padding: 0; }
}

/* --- forms (sign-up) ------------------------------------------------------ */
/* RenderForm() in forms.inc.php emits plain label/input/select markup shared
   with the app, so style the elements rather than rewrite the generator. */
.form-panel {
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.form-panel fieldset { border: 0; padding: 0; margin: 0; }
.form-panel legend {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); padding: 0; margin-bottom: 18px;
}
.form-panel label {
  display: block; margin-bottom: 16px;
  font-family: var(--font-head); font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.form-panel input[type="text"], .form-panel input[type="email"],
.form-panel input[type="number"], .form-panel input[type="password"],
.form-panel select, .form-panel textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; font-size: 1rem; font-family: var(--font-body);
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32,130,255,.16);
}
.form-panel select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--ink-faint) 50%),linear-gradient(135deg,var(--ink-faint) 50%,transparent 50%); background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px); background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.form-panel .button, .form-panel button[type="submit"], .form-panel input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .97rem; font-weight: 600;
  padding: 12px 22px; border: 0; border-radius: var(--r);
  background: var(--green); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .15s ease, box-shadow .2s ease;
}
.form-panel .button:hover, .form-panel button[type="submit"]:hover, .form-panel input[type="submit"]:hover {
  background: var(--green-light); box-shadow: var(--shadow-md);
}
.form-note { color: var(--ink-faint); font-size: .88rem; text-align: center; margin-top: 18px; }
