/* SmartSheep site refresh */

:root{
  /* App Surfaces */
  --app-bg: #FBF7F0;          /* warm neutral background */
  --app-bg-soft: #FFFDF9;     /* soft ivory surface */
  --app-bg-depth: #EADFCC;    /* parchment depth */

  /* Primary Actions (Hero CTA) */
  --primary: #2676AF;         /* primaryAction */
  --primary-pressed: #1E5B86; /* primaryActionPressed */
  --primary-soft: #4FA3C7;    /* primaryActionSoft */

  /* Secondary Actions */
  --secondary: #FFF3D6;       /* secondaryAction */
  --secondary-border: #3F6F8F;/* secondaryActionBorder */

  /* Text */
  --text-on-primary: #F2F6F9; /* textOnPrimary */
  --ink: #1E2A33;             /* textPrimary */
  --muted: #5E7484;           /* textSecondary */
  --text-on-light: #1E2A33;   /* textOnLight */

  /* Decorative / World */
  --grass: #6FBFA1;           /* worldGrass */
  --leaf: #3E8F73;            /* worldLeaf */

  /* Status / Feedback */
  --success: #6FBFA1;         /* success */
  --warning: #F2A626;         /* warning (0.95,0.65,0.15) */
  --error: #C96A6A;           /* error */

  /* Focus */
  --focus-ring: #5FA8D3;      /* focusRing */

  /* Layout / Effects (kept) */
  --card: rgba(255,255,255,.72); /* previously #ffffffcc */
  --line: rgba(30,42,51,.16);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1100px;

  --focus: 0 0 0 4px rgba(95,168,211,.25);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(255,255,255,.96) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,241,219,.92) 0%, transparent 58%),
    linear-gradient(180deg, #FCFAF5 0%, var(--app-bg-depth) 42%, #F5EEE3 100%);
}

a{ color:inherit; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px; width:auto; height:auto; padding:10px 14px;
  background:#fff; border-radius:12px; box-shadow: var(--shadow-soft);
  outline: none;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 240, 0.82);
  border-bottom: 1px solid rgba(30,42,51,0.10);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  text-decoration:none;
}
.brand-mark{
  width: 52px;
  height: 56px;
  flex: 0 0 52px;
  background: url("sheep-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(17,24,39,.12));
}
.brand-name{
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 18px;
}
.brand-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  max-width: 28ch;
}

.brand-logo-img{
  width: 330px;
  max-width: 46vw;
  height: auto;
  display: block;
}

.topbar-inner{
  padding: 20px 0;
}

.nav a{
  font-size: 13px;
  padding: 8px 10px;
}

.home-logo {
  width: min(100%, 900px);
  display: block;
  margin: 0 auto 24px;
}

.igl-mark{
  width: 120px;
  height: 120px;
  flex: 0 0 52px;
  background: url("igl-square-icon") center / contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(17,24,39,.12));
}


.nav{
  display:flex; align-items:center; gap: 10px;
  flex-wrap: wrap;
}
.nav a{
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid rgba(30,42,51,.10);
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 16px rgba(17,24,39,.06);
}
.nav a:hover{ transform: translateY(-1px); }
.nav a:focus{ outline:none; box-shadow: var(--focus), 0 8px 16px rgba(17,24,39,.06); }
.nav a[aria-current="page"]{
  border-color: rgba(38,118,175,.35);
  background: rgba(79,163,199,.16);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  font-weight: 900;
  text-decoration:none;
  border-radius: 14px;
  padding: 13px 18px;
  border: 2px solid rgba(30,42,51,.14);
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0px); box-shadow: 0 6px 16px rgba(17,24,39,.12); }
.btn:focus{ outline:none; box-shadow: var(--focus), var(--shadow-soft); }

.btn-primary{
  color: var(--text-on-primary);
  border-color: rgba(30,42,51,.08);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--primary) 100%);
}
.btn-primary:active{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-pressed) 100%);
}

.btn-soft{
  color: var(--text-on-light);
  border-color: rgba(63,111,143,.22);
  background: linear-gradient(180deg, rgba(255,243,214,.85) 0%, rgba(255,243,214,.55) 100%);
}

.hero{
  padding: 28px 0 18px;
}
.hero-shell{
  border-radius: 24px;
  border: 2px solid rgba(30,42,51,.10);
  background: linear-gradient(180deg, rgba(255,253,249,.82) 0%, rgba(255,249,241,.68) 100%);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 22px;
  padding: 26px;
  align-items: center;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 2px solid rgba(30,42,51,.10);
  font-weight: 900;
  width: fit-content;
}
.kicker .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 6px 16px rgba(38,118,175,.28);
}

h1{
    margin: 10px 0 8px;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.05;
    color: #284B35;
}
.hero-art{
  border-radius: 20px;
  border: 2px solid rgba(30,42,51,.10);
  background: linear-gradient(180deg, rgba(255,253,249,.95) 0%, rgba(250,244,235,.84) 100%);
  box-shadow: 0 12px 26px rgba(17,24,39,.10);
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-visual{
  aspect-ratio: auto;
}

.illus-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.illus{
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(30,42,51,.10);
  background: #fff;
  display: block;
}
.illus.tall{ aspect-ratio: auto; }

.caption{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.section{
  padding: 18px 0;
}

.section-tight{
  padding-top: 6px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.62) 100%);
  border: 2px solid rgba(30,42,51,.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.card h2{
  margin: 0 0 8px;
  font-size: 18px;
}
.card p{ margin: 0; color: var(--muted); line-height: 1.6; }

.card-wide{
  grid-column: span 12;
}

.use-cases{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.use-case{
  background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.64) 100%);
  border: 2px solid rgba(30,42,51,.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.use-case h2{
  margin: 0 0 8px;
  font-size: 17px;
}

.use-case p{
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 15px;
}

@media (max-width: 900px){
  .card{ grid-column: span 6; }
}
@media (max-width: 640px){
  .card{ grid-column: span 12; }
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

.list{
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.list li + li{
  margin-top: 6px;
}

/* --- Form layout fixes --- */
#delete-request form { width: 100%; }

#delete-request .form-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

#delete-request label{
  display: block;
  font-weight: 600;
}

#delete-request input,
#delete-request textarea{
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 12px;
  box-sizing: border-box;
  border: 2px solid rgba(63,111,143,.18);
  background: rgba(255,255,255,.85);
  color: var(--ink);
}

#delete-request input:focus,
#delete-request textarea:focus{
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(95,168,211,.65);
}

#delete-request textarea{
  min-height: 120px;
  resize: vertical;
}

.badges{
  display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px;
}
.badge{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 2px solid rgba(30,42,51,.10);
  font-weight: 800;
  font-size: 13px;
}

.footer{
  margin-top: 26px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(30,42,51,0.10);
  color: var(--muted);
}
.footer small{ display:block; line-height: 1.5; }
.footer a{ font-weight: 800; }

.hr-soft{
  height:1px;
  background: rgba(30,42,51,0.10);
  margin: 14px 0;
  border: 0;
}

.notice{
  background: linear-gradient(180deg, rgba(79,163,199,.14) 0%, rgba(255,243,214,.42) 100%);
  border: 2px solid rgba(38,118,175,.18);
  border-radius: 18px;
  padding: 16px;
  color: var(--ink);
}
.notice strong{ font-weight: 900; }

.tool-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
}

.tool-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:14px;
}

@media (max-width: 900px){
  .brand-sub{ max-width: none; }
  .hero-grid{ padding: 20px; }
  .use-cases{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .use-cases{ grid-template-columns: 1fr; }
}
