:root{
	--ink: #12323b;
	--paper:#EFF3F2;
	--surface:#FFFFFF;
	--teal:#2F7D6E;
	--teal-deep:#1F5A50;
	--coral:#234982;
	--muted:#7C8B93;
	--line: rgba(22,33,58,0.10);
	--nav-size: 68px;
	--radius: 18px;
}

#signature-control {
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%!important;
	height: 200px;
}
.controls {
	margin-top: 10px;
}
.controls button {
	margin-right: 8px;
}
#status {
	margin-top: 10px;
}

*{
	box-sizing:border-box;
}
html{
	scroll-behavior:smooth;
}

body{
	margin:0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Hanken Grotesk", sans-serif;
	-webkit-font-smoothing:antialiased;
	padding-bottom: calc(var(--nav-size) + 18px);
}

h1, h2, h3{
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 .4em 0;
	color: var(--ink);
}

.eyebrow{
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--teal-deep);
	margin-bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.eyebrow::before{
	content: "";
	width: 6px;
	height: 6px;
	background: var(--coral);
	border-radius: 50%;
	display: inline-block;
}

a {
	color:inherit;
}

.submit-but {
	display: block;
	color: #FFF;
	font-size: 16px;
	background-color: #2e3192;
	padding: 10px;
	border: none;
	margin-top: 20px;
	cursor: pointer;
	transition: all .5s;
	-webkit-transition: all .5s;
	-moz-transition: all .5s;
	border-radius: 4px;
	width: 49%;
	float: left;
	text-align: center;
	font-weight: 600;
}

.submit-but:hover {
	transform: scale(1.01);	
	-webkit-transform: scale(1.01);	
	-moz-transform: scale(1.01);	
	background-color: #0b3d50;
	color: #FFF;
}



/* ===== NAV ===== */
.nav{
position:fixed;
left:0; right:0;
bottom:0;
height:var(--nav-size);
background:var(--surface);
border-top:1px solid var(--line);
display:flex;
align-items:center;
justify-content:space-around;
z-index:100;
box-shadow: 0 -6px 24px rgba(22,33,58,0.06);
}

.nav-brand{
display:none; /* only shown in desktop top-bar layout */
}

.nav-item{
position:relative;
flex:1;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:4px;
padding:8px 0;
background:none;
border:none;
cursor:pointer;
color:var(--muted);
font-family:'Inter', sans-serif;
font-size:10.5px;
font-weight:600;
letter-spacing:.02em;
-webkit-tap-highlight-color:transparent;
}

.nav-item svg{
width:22px; height:22px;
stroke:var(--muted);
fill:none;
stroke-width:1.7;
transition: stroke .25s ease, transform .25s ease;
}

.nav-item.active{ color:var(--teal-deep); }
.nav-item.active svg{ stroke:var(--teal-deep); transform:translateY(-2px); }

.nav-indicator{
position:absolute;
top:0;
height:3px;
width:32px;
background:var(--coral);
border-radius:0 0 3px 3px;
transition: left .35s cubic-bezier(.65,0,.35,1);
}

/* ===== HERO ===== */
.hero{
padding:64px 24px 48px;
max-width:720px;
margin:0 auto;
}
.hero h1{
font-size:clamp(34px, 7vw, 52px);
line-height:1.05;
}
.hero p.lede{
font-size:17px;
line-height:1.6;
color:var(--muted);
max-width:46ch;
}
.hero-cta{
margin-top:26px;
display:inline-flex;
align-items:center;
gap:10px;
background:var(--ink);
color:var(--surface);
padding:13px 22px;
border-radius:100px;
font-weight:600;
font-size:14px;
text-decoration:none;
transition: transform .2s ease, background .2s ease;
}
.hero-cta:hover{ background:var(--teal-deep); transform:translateY(-1px); }

.ribbon{
margin-top:44px;
display:grid;
grid-template-columns:repeat(3,1fr);
border-top:1px solid var(--line);
border-bottom:1px solid var(--line);
}
.ribbon div{
padding:18px 6px 18px 0;
border-right:1px solid var(--line);
}
.ribbon div:last-child{ border-right:none; padding-right:0; }
.ribbon .num{
font-family:'Fraunces', serif;
font-size:28px;
font-weight:600;
color:var(--teal-deep);
}
.ribbon .label{
font-size:12px;
color:var(--muted);
margin-top:2px;
}

/* ===== SECTIONS ===== */
section{
padding:56px 24px;
max-width:720px;
margin:0 auto;
scroll-margin-top: 90px;
}
section + section{ border-top:1px solid var(--line); }

.card-grid{
display:grid;
gap:14px;
margin-top:22px;
}
.card{
background:var(--surface);
border:1px solid var(--line);
border-radius:var(--radius);
padding:20px;
display:flex;
gap:16px;
align-items:flex-start;
}
.card svg{
width:22px; height:22px;
stroke:var(--teal-deep);
fill:none;
stroke-width:1.7;
flex-shrink:0;
margin-top:2px;
}
.card h3{ font-size:16px; margin-bottom:4px; }
.card p{ margin:0; font-size:14px; color:var(--muted); line-height:1.55; }

.log-entry{
background:var(--surface);
border:1px solid var(--line);
border-radius:var(--radius);
padding:22px;
margin-top:20px;
}
.log-entry textarea{
width:100%;
min-height:90px;
border:none;
resize:vertical;
font-family:'Inter', sans-serif;
font-size:15px;
color:var(--ink);
background:transparent;
outline:none;
line-height:1.6;
}
.log-entry textarea::placeholder{ color:#B7BFC4; }
.log-meta{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:14px;
padding-top:14px;
border-top:1px dashed var(--line);
}
.mood-row{ display:flex; gap:8px; }
.mood-row button{
width:34px; height:34px;
border-radius:50%;
border:1px solid var(--line);
background:var(--paper);
cursor:pointer;
font-size:16px;
transition: transform .15s ease, border-color .15s ease;
}
.mood-row button.picked{
border-color:var(--teal-deep);
transform:scale(1.12);
background:#E4F0EC;
}
.save-btn{
background:var(--teal-deep);
color:#fff;
border:none;
padding:9px 18px;
border-radius:100px;
font-weight:600;
font-size:13px;
cursor:pointer;
}

.profile-box{
display:flex;
align-items:center;
gap:16px;
margin-top:22px;
background:var(--surface);
border:1px solid var(--line);
border-radius:var(--radius);
padding:20px;
}
.avatar{
width:52px; height:52px;
border-radius:50%;
background: linear-gradient(135deg, var(--teal), var(--teal-deep));
flex-shrink:0;
}
.profile-box h3{ font-size:16px; margin-bottom:2px; }
.profile-box p{ margin:0; font-size:13px; color:var(--muted); }

footer{
	text-align:center;
	padding:36px 24px 24px;
	color:var(--muted);
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
}




/* ===== DESKTOP LAYOUT: nav becomes a top bar ===== */
@media (min-width: 860px){
body{ padding-bottom:0; padding-top: calc(var(--nav-size) + 8px); }

.nav{
  top:0; bottom:auto;
  justify-content:flex-start;
  padding:0 32px;
  border-top:none;
  border-bottom:1px solid var(--line);
  box-shadow:0 6px 24px rgba(22,33,58,0.05);
}

.nav-brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:18px;
  margin-right:48px;
  color:var(--ink);
}
.nav-brand span.dot{
  width:9px; height:9px;
  background:var(--coral);
  border-radius:50%;
  display:inline-block;
}

.nav-item{
  flex:none;
  flex-direction:row;
  gap:8px;
  padding:0 20px;
  height:100%;
  font-size:13.5px;
}
.nav-item svg{ width:19px; height:19px; }
.nav-item.active svg{ transform:none; }

.nav-indicator{
  top:auto;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
}

.nav-spacer{ flex:1; }
.nav-cta{
  background:var(--ink);
  color:#fff;
  padding:9px 18px;
  border-radius:100px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
}
}


  /* ===== LANGUAGE OVERLAY ===== */
  .lang-overlay{
	position:fixed;
	inset:0;
	z-index:1000;
	background:rgba(22,33,58,0.55);
	backdrop-filter: blur(6px);
	display:flex;
	align-items:center;
	justify-content:center;
	padding:24px;
	opacity:1;
	transition: opacity .35s ease;
  }
  .lang-overlay.hidden{
	opacity:0;
	pointer-events:none;
  }
  .lang-card{
	background:var(--surface);
	border-radius:24px;
	padding:32px 28px;
	max-width:420px;
	width:100%;
	box-shadow: 0 24px 60px rgba(22,33,58,0.25);
	transform: translateY(0);
	transition: transform .35s ease;
  }
  .lang-overlay.hidden .lang-card{ transform: translateY(14px); }

  .lang-card h2{
	font-size:22px;
	margin-bottom:4px;
  }
  .lang-card p.lang-sub{
	font-size:13.5px;
	color:var(--muted);
	margin:0 0 20px 0;
  }
  .lang-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
	max-height:44vh;
	overflow-y:auto;
	padding-right:2px;
  }
  .lang-option{
	display:flex;
	align-items:center;
	gap:10px;
	padding:11px 12px;
	border:1px solid var(--line);
	border-radius:12px;
	background:var(--paper);
	cursor:pointer;
	font-size:14px;
	font-weight:600;
	color:var(--ink);
	text-align:left;
	transition: border-color .15s ease, background .15s ease;
  }
  .lang-option:hover{ border-color:var(--teal); }
  .lang-option.picked{
	border-color:var(--teal-deep);
	background:#E4F0EC;
  }
  .lang-option .flag{ font-size:19px; line-height:1; }
  .lang-option .native{
	display:block;
	font-size:11.5px;
	font-weight:400;
	color:var(--muted);
  }

  .lang-continue{
	width:100%;
	margin-top:20px;
	padding:13px;
	border:none;
	border-radius:100px;
	background:var(--ink);
	color:#fff;
	font-weight:600;
	font-size:14.5px;
	cursor:pointer;
	opacity:.4;
	pointer-events:none;
	transition: opacity .2s ease, background .2s ease;
  }
  .lang-continue.ready{ opacity:1; pointer-events:auto; }
  .lang-continue.ready:hover{ background:var(--teal-deep); }

  .lang-switcher{
	position:fixed;
	top:14px;
	right:16px;
	z-index:90;
	background:var(--surface);
	border:1px solid var(--line);
	border-radius:100px;
	padding:6px 12px;
	font-size:12px;
	font-weight:600;
	color:var(--muted);
	cursor:pointer;
	box-shadow:0 4px 14px rgba(22,33,58,0.08);
  }
  @media (min-width:860px){
	.lang-switcher{ top:auto; bottom:16px; }
  }


